First exercise multiple VLANs amongst name, assign multiple ports to them together with then exercise 802.1q body link betwixt the 2 switches to let communication betwixt VLANs.
To exercise a VLAN, starting fourth dimension function inward global configuration trend to run the next commands.
Configuration to exercise VLAN 2 together with iii on switch A
SwitchA(config)#configure finally (enter inward global configuration mode)
SwitchA(config)#vlan 2 (defining the vlan 2)
SwitchA(config)#vlan 2 advert marketing (assigning the advert marketing to vlan 2)
SwitchA(config)#vlan 3 (defining the vlan 3)
SwitchA(config)#vlan iii advert management (assigning the advert administration to vlan 3)
SwitchA(config)#exit (exit from vlan 3)
Now assigning the ports 2 together with iii to VLAN 2, it must move done from the interface mode. Enter the next commands to add together port 2 together with iii to VLAN 2.
SwitchA(config)#configure terminal (enter inward global configuration mode)
SwitchA(config)#interface fastethernet 0/2 (select the Ethernet 0 of port 2)
SwitchA(config-if)#switchport access vlan 2 (allot the membership of vlan 2)
SwitchA(config-if)#exit (exit from interface 2)
SwitchA(config)#interface fastethernet 0/3 (select the Ethernet 0 of port 3)
SwitchA(config-if)#switchport access vlan 2 (allot the membership of vlan 2)
SwitchA(config-if)#exit (exit from interface 3)
Now assigning the ports iv together with v to VLAN 3, function inward the next commands to add together port iv together with v to VLAN 3.
SwitchA(config)#configure terminal (enter inward global configuration mode)
SwitchA(config)#interface fastethernet 0/4 (select the Ethernet 0 of port 4)
SwitchA(config-if)#switchport access vlan 3 (allot the membership of vlan 3)
SwitchA(config-if)#exit (exit from interface 4)
SwitchA(config)#interface fastethernet 0/5 (select the Ethernet 0 of port 5)
SwitchA(config-if)#switchport access vlan 3 (allot the membership of vlan 3)
SwitchA(config-if)#exit (exit from interface 5)
Configuration to exercise VLAN 2 on switch B
SwitchB(config)#configure finally (enter inward global configuration mode)
SwitchB(config)#vlan 2 (defining the vlan 2)
SwitchB(config)#vlan 2 advert marketing (assigning the advert marketing to vlan 2)
SwitchB(config)#vlan 3 (defining the vlan 3)
SwitchB(config)#vlan iii advert management (assigning the advert administration to vlan 3)
SwitchB(config)#exit (exit from vlan 3)
Now assigning the ports 2 together with iii to VLAN 2, it must move done from the interface mode. Enter the next commands to add together port 2 together with iii to VLAN 2.
SwitchB(config)#configure terminal (enter inward global configuration mode)
SwitchB(config)#interface fastethernet 0/2 (select the Ethernet 0 of port 2)
SwitchB(config-if)#switchport access vlan 2 (allot the membership of vlan 2)
SwitchB(config-if)#exit (exit from interface 2)
SwitchB(config)#interface fastethernet 0/3 (select the Ethernet 0 of port 3)
SwitchB(config-if)#switchport access vlan 2 (allot the membership of vlan 2)
SwitchB(config-if)#exit (exit from interface 3)
Now assigning the ports iv together with v to VLAN 3, function inward the next commands to add together port iv together with v to VLAN 3.
SwitchB(config)#configure terminal (enter inward global configuration mode)
SwitchB(config)#interface fastethernet 0/4 (select the Ethernet 0 of port 4)
SwitchB(config-if)#switchport access vlan 3 (allot the membership of vlan 3)
SwitchB(config-if)#exit (exit from interface 4)
SwitchB(config)#interface fastethernet 0/5 (select the Ethernet 0 of port 5)
SwitchB(config-if)#switchport access vlan 3 (allot the membership of vlan 3)
SwitchB(config-if)#exit (exit from interface 5)
Trunking amongst 802.1q
Now exercise 802.1q body link betwixt the 2 switches to let communication betwixt VLANs.
On both switches, SwitchA together with SwitchB type the next ascendency amongst 802.1q at the fastethernet 0/1 interface.
SwitchA(config)#configure terminal (enter inward global configuration mode)
SwitchA(config)#interface fastethernet 0/1 (select the Ethernet 0 of port 1)
SwitchA(config-if)#switchport trend trunk (set port 1 every bit body port)
SwitchA(config-if)#switchport body encapsulation dot1q
SwitchA(config-if)#end (exit from interface 1)
SwitchB(config)#interface fastethernet 0/1 (select the Ethernet 0 of port 1)
SwitchB(config-if)#switchport trend trunk (set port 1 every bit body port)
SwitchA(config-if)#switchport body encapsulation dot1q
SwitchB(config-if)#end (exit from interface 1)
To verify that fastethernet 0/1 has been established every bit body port, type the show interface fastethernet 0/1 switchport at the privileged EXEC mode.

No comments:
Post a Comment