Operation Manual – VLAN
H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2
VLAN Configuration
2-7
z Create VLAN 5 and configure it to be a protocol-based VLAN, with the
protocol-index being 1 and the protocol being IP.
z Associate Ethernet1/0/5 port with the protocol-based VLAN to enable IP packets
received by this port to be tagged with the tag of VLAN 5 and be transmitted in
VLAN 5.
2) Configuration procedure
# Create VLAN 5 and enter its view.
<H3C> system-view
[H3C] vlan 5
[H3C-vlan5]
# Configure the protocol-index to be 1, and the associated protocol to be IP.
[H3C-vlan5] protocol-vlan 1 ip
# Enter Ethernet1/0/5 port view.
[H3C-vlan5] interface Ethernet 1/0/5
# Configure the port to be a hybrid port.
[H3C-Ethernet1/0/5] port link-type hybrid
# Add the port to VLAN 5 and add VLAN 5 to the untagged VLAN list of the port.
[H3C-Ethernet1/0/5] port hybrid vlan 5 untagged
# Associate the port with protocol-index 1.
[H3C-Ethernet1/0/5] port hybrid protocol-vlan vlan 5 1
II. User-defined-template-based protocol VLAN configuration example
1) Network requirement
z Create VLAN 7 and configure it as a protocol-based VLAN.
z Create two indexes in VLAN 7. Index 1 is used to match the packets with DSAP
and SSAP value being 01 and ac respectively in 802.2 LLC encapsulation; Index 2
is used to match the packets with the type value being 0xabcd in 802.2 SNAP
encapsulation.
z Associate Ethernet1/0/7 port with the two indexes of the protocol-based VLAN 7 to
enable IP packets matching one of the indexes received by this port to be tagged
with the tag of VLAN 7.
2) Configuration procedure
# Create VLAN 7 and enter its view.
<H3C> system-view
[H3C] vlan 7
[H3C-vlan7]
# Configure index 1 of VLAN 7 according to the network requirement.
[H3C-vlan7] protocol-vlan 1 mode llc dsap 01 ssap ac