22CHAPTER 2: VLAN CONFIGURATION GUIDE
[SwitchA] vlan 201
#Configure Ethernet 1/0/3 of Switch A to be a trunk port and to permit the packets carrying the tag of VLAN 101 or VLAN 201 to pass through.
[SwitchA] interface Ethernet 1/0/3
# Create VLAN 101 on Switch B, and add Ethernet 1/0/11 to VLAN 101.
[SwitchB] vlan 101
# Create VLAN 201 on Switch B, and add Ethernet 1/0/12 to VLAN 201.
[SwitchB] vlan 201
#Configure Ethernet 1/0/10 of Switch B to be a trunk port and to permit the packets carrying the tag of VLAN 101 or VLAN 201 to pass through.
[SwitchB] interface Ethernet 1/0/10
Complete Configuration ■ Configuration on Switch A
#
vlan 101
#
vlan 201
#
interface Ethernet1/0/1 port access vlan 101
#
interface Ethernet1/0/2 port access vlan 201
#
interface Ethernet1/0/3 port
port trunk permit vlan 1 101 201
■Configuration on Switch B
#
vlan 101
#
vlan 201
#
interface Ethernet1/0/10 port
port trunk permit vlan 1 101 201