en
conf t
no ip routing
int f 0/0
ip add 192.168.11.2 255.255.255.0
no shutdown
exit
ip default-gatemay 192.168.10.254
exit
PC2
en
conf t
no ip routing
int f 0/0
ip add 192.168.12.2 255.255.255.0
no shutdown
exit
ip default-gatemay 192.168.20.254
exit
PC3
en
conf t
no ip routing
int f 0/0
ip add 192.168.23.2 255.255.255.0
no shutdown
exit
ip default-gatemay 192.168.10.254
exit
MS1
VLAN database
vlan 10
vlan 20
exit
conf t
int f 0/1
switchport mode access
switchport access vlan 10
exit
int f 0/2
switchport mode access
switchport access vlan 20
exit
int f 0/15
switchport trunk encapsulation dot1q
switchport mode trunk
exit
MS2
VLAN database
vlan 10
vlan 20
exit
conf t
int f 0/1
switchport mode access
switchport access vlan 10
exit
int f 0/2
switchport mode access
switchport access vlan 20
exit