VLAN TRUNK
A VLAN (virtual LAN) is a subnetwork which can
group together collections of devices on separate physical local area networks
(LANs).
Switch -0
Switch>en
Switch#show vlan
Switch#
Switch#config t
Enter configuration commands, one
per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name teacher
Switch(config-vlan)#do show vlan
VLAN Name Status Ports
---- --------------------------------
--------- -------------------------------
10 teacher active
Switch(config-vlan)#
Switch(config-vlan)#int fa0/2
Switch(config-if)#switchport mode
access
Switch(config-if)#switchport access
vlan 10
Switch(config-if)#int fa0/1
Switch(config-if)#switchport mode
access
Switch(config-if)#switchport access
vlan 10
Switch(config-if)#do show vlan
VLAN Name Status Ports
----
-------------------------------- --------- -------------------------------
10 teacher active Fa0/1, Fa0/2
Switch(config-if)#vlan 20
Switch(config-vlan)#name student
Switch(config-vlan)#int fa0/1
Switch(config-if)#switchport mode
access
Switch(config-if)#switchport access
vlan 20
------At Last
step--------
Switch(config-if)#int
fa0/3
Switch(config-if)#switchport
mode trunk
Switch(config-if)#^Z
Switch-1
Switch>
Switch>en
Switch#config t
Enter configuration commands, one
per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name teacher
Switch(config-vlan)#vlan 20
Switch(config-vlan)#name student
Switch(config-vlan)#int fa0/2
Switch(config-if)#switchport mode
access
Switch(config-if)#switchport access
vlan 20
Switch(config-if)#int fa0/3
Switch(config-if)#switchport mode
access
Switch(config-if)#switchport access
vlan 10
Switch(config-if)#do show vlan
VLAN Name Status Ports
----
-------------------------------- --------- -------------------------------
10 teacher active Fa0/3
20 student active Fa0/2
------At Last step--------
Switch(config-if)#int
fa0/1
Switch(config-if)#switchport
mode trunk
Switch(config-if)#^Z
No comments:
Post a Comment