H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – VLAN
H3C S7500 Series Ethernet Switches Chapter 1
VLAN Configuration Commands
1-21
Caution:
In a VLAN, it is not allowed to configure two templates with the same protocol type and
encapsulation format. The encapsulation defined by a user-defined template is the
same as that defined by a standard template if the parameters of the user-defined
template adopt some special values. In this scenario, the user-defined template and
the standard template cannot be configured in the same VLAN.
Pay attention to the following notices about the template configuration:
z It is not allowed to configure both ipx llc standard template and LLC user-defined
template in the same VLAN.
z It is not allowed to configure both ipx raw standard template and LLC user-defined
template whose dsap and ssap are both ff in the same VLAN.
z It is not allowed to configure both ipx ethernetii standard template and EthernetII
user-defined template whose etype is 8137 in the same VLAN.
z It is not allowed to configure both ipx snap standard template and SNAP
user-defined template whose etype is 8137 in the same VLAN.
z When the values of the dsap-id and ssap-id arguments are AA, the packet
encapsulation type is not llc but snap. To avoid template conflict, the system
disables the value AA for the dsap-id and ssap-id arguments when you configure
LLC user-defined template.
In addition, pay attention to the following notices about IP template:
z If a packet can match both IPv4-based VLAN and the VLAN based on other protocol,
IPv4-based VLAN takes higher priority.
z ip [ ip-address [ net-mask ] ] defines IPv4-based VLAN. If you want to define the
VLANs based on IP or other encapsulation formats, use mode { ethernetii [ etype
etype-id ] } and snap [ etype etype-id ], in which, etype-id is 0x0800.
Related commands: display protocol-vlan vlan.
Examples
# Configure VLAN 3 as a VLAN based on all IP packets.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] vlan 3
[H3C-vlan3] protocol-vlan ip
# Configure VLAN 5 as a VLAN based on network segment 123.34.56.0.
[H3C-vlan3] vlan 5
[H3C-vlan5] protocol-vlan ip 123.34.56.0