Configuring routed port on a physical port like as following:

Here,give an example of it.
Switch#conf t
switch(config)#ip routing
Switch(config)#int f1/2
Switch(config-if)#no switchport
Switch(config-if)#ip add 10.1.10.1 255.255.255.0
Switch(config-if)#no shut
switch(config)#router rip
switch(config-router)#version 2
switch(config-router)#network 10.1.10.0
switch(config-router)#end
switch#write