159
# Create VLAN 2, and assign Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2 to the VLAN.
[Sysname] vlan 2
[Sysname-vlan2] port ten-gigabitethernet 1/0/1 ten-gigabitethernet 1/0/2
[Sysname-vlan2] quit
# Create VLAN 3, and assign Ten-GigabitEthernet 1/0/3 and Ten-GigabitEthernet 1/0/4 to the VLAN.
[Sysname] vlan 3
[Sysname-vlan3] port ten-gigabitethernet 1/0/3 ten-gigabitethernet 1/0/4
[Sysname-vlan3] quit
# Create VLAN 5, and assign Ten-GigabitEthernet 1/0/5 and Ten-GigabitEthernet 1/0/6 to the VLAN.
[Sysname] vlan 5
[Sysname-vlan5] port ten-gigabitethernet 1/0/5 ten-gigabitethernet 1/0/6
[Sysname-vlan5] quit
# Configure VLAN 10 as a super VLAN, and associate sub VLANs VLAN 2, VLAN 3, and VLAN 5 with
the super VLAN.
[Sysname] vlan 10
[Sysname-vlan10] supervlan
[Sysname-vlan10] subvlan 2 3 5
[Sysname-vlan10] quit
[Sysname] quit
Verifying the configuration
# Display information about super VLANs and their associated sub VLANs.
<Sysname> display supervlan
Super VLAN ID: 10
Sub-VLAN ID: 2-3 5
VLAN ID: 10
VLAN type: Static
It is a super VLAN.
Route interface: Configured
Ipv4 address: 10.0.0.1
Ipv4 subnet mask: 255.255.255.0
Description: VLAN 0010
Name: VLAN 0010
Tagged ports: none
Untagged ports: none
VLAN ID: 2
VLAN type: Static
It is a sub VLAN.
Route interface: Configured
Ipv4 address: 10.0.0.1
Ipv4 subnet mask: 255.255.255.0
Description: VLAN 0002
Name: VLAN 0002
Tagged ports: none