!
S0
en
conf t
interface Vlan1
ip address 192.168.10.2 255.255.255.0
no shut
enable secret class
line vty 0 15
password cisco
login
end
copy run start
!S1
en
conf t
interface Vlan1
ip address 192.168.11.2 255.255.255.0
no shut
ip default-gateway 192.168.11.1
enable secret class
line vty 0 15
password cisco
login
end
copy run start
en
conf t
ip default-gateway 192.168.10.1
end
copy run start
!R1
en
conf t
service password-encryption
hostname R1
enable secret class
interface GigabitEthernet0/0/0
description Lan1
ip address 192.168.10.1 255.255.255.0
no shut
interface GigabitEthernet0/0/1
description Lan2
ip address 192.168.11.1 255.255.255.0
no shut
banner motd # Authorised Access Only #
line con 0
password cisco
login
line aux 0
line vty 0 4
password cisco
login
end
copy run start