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