137
Protocol-based VLAN configuration example
Network requirements
In a lab environment, as shown in
, most hosts run the IPv4 protocol, and the rest of the hosts
run the IPv6 protocol for teaching purposes. To avoid interference, isolate IPv4 traffic and IPv6 traffic at
Layer 2.
Figure 45
Network diagram
Configuration consideration
Create VLANs 100 and 200. Associate VLAN 100 with IPv4, and associate VLAN 200 with IPv6.
Configure protocol-based VLANs to isolate IPv4 traffic and IPv6 traffic at Layer 2.
Configuration procedure
1.
Configure Device:
# Create VLAN 100, and assign port Ethernet 1/0/11 to VLAN 100.
<Device> system-view
[Device] vlan 100
[Device-vlan100] description protocol VLAN for IPv4
[Device-vlan100] port ethernet 1/0/11
[Device-vlan100] quit
# Create VLAN 200, and assign port Ethernet 1/0/12 to VLAN 200.
[Device] vlan 200
[Device-vlan200] description protocol VLAN for IPv6
[Device-vlan200] port ethernet 1/0/12
# Create an IPv6 protocol template in the view of VLAN 200, and create an IPv4 protocol template
in the view of VLAN 100.
[Device-vlan200] protocol-vlan 1 ipv6
[Device-vlan200] quit