To do...
7.
Configure current hybrid ports to
permit the packets of the
specified protocol-based VLANs
to pass through
8.
Associate the hybrid ports with
the specified protocol-based
VLAN
Protocol-based VLAN configuration example
Network requirements
In a lab environment, most hosts run the IPv4 protocol, and the rest of the hosts run the IPv6 protocol for
teaching purpose. To avoid interference, isolate IPv4 traffic and IPv6 traffic at Layer 2.
Figure 40 Network diagram for protocol-based VLAN configuration
L2 Switch A
IPv4 Host A
VLAN 100
Configuration consideration
Create VLANs 100 and 200. Associate VLAN 100 with IPv4, and VLAN 200 with IPv6. Configure
protocol-based VLANs to isolate IPv4 traffic and IPv6 traffic at Layer 2.
Configuration procedure
Configuration on Device
1.
# Create VLAN 100, and assign port GigabitEthernet 1/0/1 1 to VLAN 100.
<Device> system-view
[Device] vlan 100
[Device-vlan100] description protocol VLAN for IPv4
[Device-vlan100] port gigabitethernet 1/0/11
Use the command...
port hybrid vlan vlan-id-list
{ tagged | untagged }
port hybrid protocol-vlan vlan
vlan-id { protocol-index [ to
protocol-end ] | all }
VLAN 100
IPv4 Server
IPv6 Server
GE1/0/11
GE1/0/12
GE1/0/1
GE1/0/2
Device
IPv6 Host A
IPv4 Host B
VLAN 200
VLAN 100
VLAN 200
L2 Switch B
IPv6 Host B
VLAN 200
122
Remarks
Required.
By default, all hybrid ports
permit packets of VLAN 1 to
pass through only.
Required.