Operation Manual

Configuring Protocol VLAN Configuration Example
Configuration Guide
195
Figure 3-9 Protocol VLAN configuration
6) Click Save Config to save the settings.
3.4 Using the CLI

Configurations for Switch 1
1) Create VLAN 10 and VLAN 20.
Switch_1#configure
Switch_1(config)#vlan 10
Switch_1(config-vlan)#name IPv4
Switch_1(config-vlan)#exit
Switch_1(config)#vlan 20
Switch_1(config-vlan)#name IPv6
Switch_1(config-vlan)#exit
2) Set port 1/0/3 as untagged port, and add it to both VLAN 10 and VLAN 20.
Switch_1(config)#interface ten-gigabitEthernet 1/0/3
Switch_1(config-if)#switchport general allowed vlan 10,20 untagged
Switch_1(config-if)#exit
3) Set port 1/0/1 and port 1/0/2 as untagged ports, and add them to VLAN 10 and VLAN
20 respectively.
Switch_1(config)#interface ten-gigabitEthernet 1/0/1
Switch_1(config-if)#switchport general allowed vlan 10 untagged
Switch_1(config-if)#exit
Switch_1(config)#interface ten-gigabitEthernet 1/0/2
Switch_1(config-if)#switchport general allowed vlan 20 untagged
Switch_1(config-if)#exit
Switch_1(config)#end