Switch>en
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#hostname R4
R4(config)#ip routing
R4(config)#int fa0/1
R4(config-if)#no switchport 
R4(config-if)#ip address 10.4.0.253 255.255.0.0
R4(config-if)#no shut
R4(config-if)#int fa0/2
R4(config-if)#no switchport 
R4(config-if)#ip address 10.6.0.254 255.255.0.0
R4(config-if)#no shut
R4(config-if)#exit
R4(config)#router rip
R4(config-router)#network 10.0.0.0
R4(config-router)#exit
R4(config)#exit
R4#