1). Configure the VLAN Port Number of the switch named Switch1 as follows:
Switch1(config)#int e0/2
Switch1(config-if)#vlan-membership static 2
Switch1(config-if)#int e0/3
Switch1(config-if)#vlan-membership static 2
Switch1(config-if)#int e0/4
Switch1(config-if)#vlan-membership static 2
……
Switch1(config-if)#int e0/20
Switch(config-if)#vlan-membership static 3
Switch1(config-if)#int e0/21
Switch1(config-if)#vlan-membership static 3
Switch1(config-if)# |
Note: int is the abbreviation of the nterface command, which is the meaning of the interface. E0/3 stands for ethernet 0/2, which represents Port 2 of Module 0 of the switch.
2) the VLAN Port Number of the switch named Switch2 is configured as follows:
Switch2(config)#int e0/2
Switch2(config-if)#vlan-membership static 3
Switch2(config-if)#int e0/3
Switch2(config-if)#vlan-membership static 3
Switch2(config-if)#int e0/4
Switch2(config-if)#vlan-membership static 3
……
Switch2(config-if)#int e0/15
Switch2(config-if)#vlan-membership static 3
Switch2(config-if)#int e0/16
Switch2(config-if)#vlan-membership static 3
Switch2(config-if)# |
3). The VLAN Port Number of the switch named Switch3 is configured as follows (it includes the configurations of two VLAN groups). Check VLAN 4 Huma first). The configuration code is as follows:
Switch3 (config) # int e0/2
Switch3 (config-if) # vlan-membership static 4
Switch3 (config-if) # int e0/3
Switch3 (config-if) # vlan-membership static 4
Switch3 (config-if) # int e0/4
Switch3 (config-if) # vlan-membership static 4
......
Switch3 (config-if) # int e0/8
Switch3 (config-if) # vlan-membership static 4
Switch3 (config-if) # int e0/9
Switch3 (config-if) # vlan-membership static 4
Switch3 (config-if )#
The configuration code of VLAN5Info is as follows:
Switch3 (config) # int e0/10
Switch3 (config-if) # vlan-membership static 5
Switch3 (config-if) # int e0/11
Switch3 (config-if) # vlan-membership static 5
Switch3 (config-if) # int e0/12
Switch3 (config-if) # vlan-membership static 5
......
Switch3 (config-if) # int e0/20
Switch3 (config-if) # vlan-membership static 5
Switch3 (config-if) # int e0/21
Switch3 (config-if) # vlan-membership static 5
Switch3 (config-if )# |
We have defined all VLANs on the ports of the corresponding vswitch as required in table 1. To verify our configuration, you can use the show vlan command in privileged mode to display the configuration you just made and check whether it is correct.
The above describes the VLAN configuration of the Cisco Catalyst 1900 switch. The VLAN configuration methods of other switches are similar. Refer to the relevant switch specification.
Related Articles]
- CISCO switch VLAN configuration guide (1)
- CISCO switch VLAN Configuration Guide (2)
- PVLAN configuration instructions for 3COM vswitches