Operation Manual – VLAN
H3C S9500 Series Routing Switches
Chapter 1 VLAN Configuration
1-14
z
Through protocol-based VLAN configuration, make Ethernet 1/1/1 to forward the
received IPv4 packets to VLAN 2, and IPv6 packets to VLAN 6.
II. Network diagram
Eth1/1/1
Switch A
Host A
Switch B
IP network
Host B
Eth1/1
/2
Figure 1-5
Network diagram for protocol-based VLAN configuration
III. Configuration procedure
# Create VLAN 2 and VLAN 6 and configure them as protocol-based VLANs.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] protocol-vlan ipv4
[Sysname-vlan2] quit
[Sysname] vlan 6
[Sysname-vlan6] protocol-vlan ipv6
[Sysname-vlan6] quit
# Configure Ethernet 1/1/1 and Ethernet 1/1/2 as hybrid ports which permit packets of
VLAN 2 and VLAN 6 to pass, and associate Ethernet 1/1/1 with the protocol-based
VLANs.
[Sysname] interface ethernet 1/1/1
[Sysname-Ethernet1/1/1] port link-type hybrid
[Sysname-Ethernet1/1/1] port hybrid vlan 2 6 untagged
[Sysname-Ethernet1/1/1] port hybrid protocol-vlan vlan 2 all
[Sysname-Ethernet1/1/1] port hybrid protocol-vlan vlan 6 all
[Sysname-Ethernet1/1/1] quit
[Sysname] interface ethernet 1/1/2
[Sysname-Ethernet1/1/2] port link-type hybrid
[Sysname-Ethernet1/1/2] port hybrid vlan 2 6 tagged