You are on page 1of 3

switch 1 PC VLAN10_02 ip:

192.168.10.2 VLAN10_03 ip: 192.168.10.3

conf t VLAN20_02 ip:


192.168.20.2 VLAN20_03 ip: 192.168.20.3
vlan 10 VLAN30_02 ip:
192.168.30.2 VLAN30_03 ip: 192.168.30.3
name VLAN10

exit
conf t
vlan 20
name VLAN20

exit
conf t
vlan 30
name VLAN30

exit
interface range fastEtahernet0/3-5
switchport mode access
switchport access vlan 10

exit

interface range fastEtahernet0/12-14


switchport mode access
switchport access vlan 20
exit

interface range fastEtahernet0/19-22


switchport mode access
switchport access vlan 30
exit

ctrl + z
wr

switch 2

conf t
vlan 10
name VLAN10

exit
conf t
vlan 20
name VLAN20

exit
conf t
vlan 30
name VLAN30

exit
interface range fastEtahernet0/3-5
switchport mode access
switchport access vlan 10

exit

interface range fastEtahernet0/12-14


switchport mode access
switchport access vlan 20
exit

interface range fastEtahernet0/19-22


switchport mode access
switchport access vlan 30
exit

ctrl + z
wr

Main switch

conf t
vlan 10
name VLAN10

exit
conf t
vlan 20
name VLAN20

exit
conf t
vlan 30
name VLAN30

exit
interface range fastEtahernet0/3-5
switchport mode access
switchport access vlan 10

exit

interface range fastEtahernet0/12-14


switchport mode access
switchport access vlan 20
exit

interface range fastEtahernet0/19-22


switchport mode access
switchport access vlan 30
exit

ctrl + z
wr

for switch 1 port 1 trunk, switch 2 port 1 trunk and main switch port 1,2,6 trunk
router 0
no
en
conf t
inft g0/0
no ip address
no sh + TAB
inft g0/0.10
encaplsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0

inft g0/0.20
encaplsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0

inft g0/0.30
encaplsulation dot1Q 30
ip address 192.168.30.1 255.255.255.0

You might also like