3Com Switch 7750 Configuration Guide Guide

96 CHAPTER 10: VLAN CONFIGURATION
# Configure the protocol-index to be 1, and the associated protocol to be IP.
[SW7750-vlan5] protocol-vlan 1 ip
# Enter Ethernet1/0/5 port view.
[SW7750-vlan5] interface Ethernet 1/0/5
# Configure the port to be a hybrid port.
[SW7750-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.
[SW7750-Ethernet1/0/5] port hybrid vlan 5 untagged
# Associate the port with protocol-index 1.
[SW7750-Ethernet1/0/5] port hybrid protocol-vlan vlan 5 1
User-defined-template-based protocol VLAN configuration example
1 Network requirement
Create VLAN 7 and configure it as a protocol-based VLAN.
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.
Associate Ethernet1/0/7 with the two indexes of the protocol-based VLAN 7.
When packets matching one of the indexes are received by Ethernet1/0/7, the
packets will be tagged with the tag of VLAN 7 automatically.
2 Configuration procedure
# Create VLAN 7 and enter its view.
<SW7750> system-view
[SW7750] vlan 7
[SW7750-vlan7]
# Configure index 1 of VLAN 7 according to the network requirement.
[SW7750-vlan7] protocol-vlan 1 mode llc dsap 01 ssap ac
# Configure index 2 of VLAN 7 according to the network requirement.
[SW7750-vlan7] protocol-vlan 2 mode snap etype abcd
# Enter port view of the Ethernet1/0/7.
[SW7750-vlan7] interface Ethernet 1/0/7
# Configure Ethernet1/0/7 as a hybird port.
[SW7750-Ethernet1/0/7] port link-type hybrid