Role of the switch serial port (Trunk:
The following two encapsulation types can be used for relay over Ethernet through the serial port of the switch:
-IEEE 802.1Q
-ISL (Inter Switch Link, Cisco private)
Procedure
Step 1: Add a VLAN to the vswitch
Switch1 # vlan database
Switch1 (vlan) # vlan 2
Switch1 (vlan) # vlan 3
Switch1 (vlan) # exit
Step 2: add the interface to the corresponding VLAN
Swital # config terminal
Switch1 (config) # interface fastEthernet 0/1
Switch1 (config-if-range) # switchport access vlan 2
Switch1 (config) # interface fastEthernet 0/2
Switch1 (config-if-range) # switchport access vlan 3
Step 3: configure the port for interconnection between vswitches as a serial port (Trunk)
Switch1 (config) # interface f0/15
Switch1 (config-if-range) # switchport mode trunk
Other commands
Remove VLAN:
Switch (config-if) # switchport trunk allowed vlan removevlan-list
Add VLAN:
Switch (config-if) # switchport trunk allowed vlan add vlan-list
View port status:
Switch # show interface f0/15 switchport
Check the list of allowed VLANs on the relay Port:
Switch # show interface-id switchport
View VLAN information:
Switch # show vlan brief
View Configuration:
Switch # show running-config