ip 192.168.1.2submask 255.255.255.0gateway 192.168.1.1
pc2
ip 192.168.2.2submask 255.255.255.0gateway 192.168.2.1
s3560
enconf thostname s3560vlan 10exitvlan 20exitinterface fa 0/10switchport access vlan 10exitinterface fa 0/20switchport access vlan 20exitendshow vlanconf tinterface vlan 10ip address 192.168.1.1 255.255.255.0no shutdownexitinterface vlan 20ip address 192.168.3.1 255.255.255.0no shutdownendshow ip routeshow runningconf tip routingrouter ripnetwork 192.168.1.0network 192.168.3.0version 2endshow ip route
r1
en conf thostname r1interface fa 0/0no shutdownip address 192.168.3.2 255.255.255.0interface serial 2/0no shutdownip address 192.168.4.1 255.255.255.0clock rate 64000end show ip routeconf trouter ripnetwork 192.168.3.0network 192.168.4.0version 2exit
r2
en conf thostname r2interface fa 0/0no shutdownip address 192.168.2.1 255.255.255.0interface serial 2/0no shutdownip address 192.168.4.2 255.255.255.0end show ip routeconf trouter ripnetwork 192.168.2.0network 192.168.4.0version 2end