7-7
# Create VLAN 200, specify its descriptive string as
Dept2
and add Ethernet 1/0/11 and Ethernet 1/0/12
to VLAN 200.
[SwitchB] vlan 200
[SwitchB-vlan200] description Dept2
[SwotchB-vlan200] port Ethernet1/0/11 Ethernet 1/0/12
[SwitchB-vlan200] quit
z
Configure the link between Switch A and Switch B.
Because the link between Switch A and Switch B needs to transmit data of both VLAN 100 and VLAN
200, you can configure the ports at both ends of the link as trunk ports and permit packets of the two
VLANs to pass through the two ports.
# Configure Ethernet 1/0/2 of Switch A.
[SwitchA] interface Ethernet 1/0/2
[SwitchA-Ethernet1/0/2] port link-type trunk
[SwitchA-Ethernet1/0/2] port trunk permit vlan 100
[SwitchA-Ethernet1/0/2] port trunk permit vlan 200
# Configure Ethernet 1/0/10 of Switch B.
[SwitchB] interface Ethernet 1/0/10
[SwitchB-Ethernet1/0/10] port link-type trunk
[SwitchB-Ethernet1/0/10] port trunk permit vlan 100
[SwitchB-Ethernet1/0/10] port trunk permit vlan 200