124
Protocol Index Protocol Type
======================================================
1 ipv4
VLAN ID:200
Protocol Index Protocol Type
======================================================
1 ipv6
# Display protocol-based VLAN information on the ports of Device.
[Device-GigabitEthernet1/0/2] display protocol-vlan interface all
Interface: GigabitEthernet 1/0/1
VLAN ID Protocol Index Protocol Type
======================================================
100 1 ipv4
200 1 ipv6
Interface: GigabitEthernet 1/0/2
VLAN ID Protocol Index Protocol Type
======================================================
100 1 ipv4
200 1 ipv6
Configuration guidelines
Protocol-based VLAN configuration applies to hybrid ports only.
IP Subnet-based VLAN configuration
In this approach, packets are assigned to VLANs based on their source IP addresses and subnet masks. A
port configured with IP subnet-based VLANs assigns a received untagged packet to a VLAN based on the
source address of the packet.
This feature is used to assign packets from the specified network segment or IP address to a specific VLAN.
Configuring an IP subnet-based VLAN
This feature is only applicable on hybrid ports.
To configure an IP subnet-based VLAN:
To do… Use the command… Remarks
1. Enter system view
system-view —
2. Enter VLAN view
vlan vlan-id —
3. Associate an IP subnet with the
current VLAN
ip-subnet-vlan [ ip-subnet-
index ] ip ip-address [ mask ]
Required.
The IP network segment or IP
address to be associated with a
VLAN cannot be a multicast
network segment or a multicast
address.
4. Return to system view
quit —