The user-vlan command configures a user-VLAN sub-interface. After the user-VLAN sub-interface receives matched tagged packets, it deletes the VLAN tags from the packets for Layer 3 forwarding.
The undo user-vlan command deletes the configured user-VLAN sub-interface.
By default, no user-VLAN sub-interface is configured.
user-vlan { start-vlan-id [ end-vlan-id ] | cevlan }
user-vlan { start-vlan-id [ end-vlan-id ] | cevlan } qinq { start-pe-vlan [ end-pe-vlan ] | pevlan }
undo user-vlan { start-vlan-id [ end-vlan-id ] | cevlan }
undo user-vlan { start-vlan-id [ end-vlan-id ] | cevlan } qinq { start-pe-vlan [ end-pe-vlan ] | pevlan }
Parameter | Description | Value |
---|---|---|
start-vlan-id |
Specifies the start VLAN ID in a single or inner VLAN tag. |
The value is an integer ranging from 1 to 4094. |
end-vlan-id |
Specifies the end VLAN ID in a single or inner VLAN tag. |
The value is an integer ranging from 1 to 4094. |
cevlan |
Specifies the VLAN ID in a single or inner VLAN tag. |
The value is an integer ranging from 1 to 4094. |
qinq |
Indicates that a user-VLAN sub-interface is encapsulated in QinQ mode. |
- |
start-pe-vlan |
Specifies the start VLAN ID in the outer VLAN tag. |
The value is an integer ranging from 1 to 4094. |
end-pe-vlan |
Specifies the end VLAN ID in the outer VLAN tag. |
The value is an integer ranging from 1 to 4094. |
pevlan |
Specifies the VLAN ID in the outer VLAN tag. |
The value is an integer ranging from 1 to 4094. |
100ge sub-interface view, 10GE sub-interface view, 200GE sub-interface view, 25GE sub-interface view, 400GE sub-interface view, 40GE sub-interface view, 50GE sub-interface view, Eth-Trunk sub-interface view, GE sub-interface view, Global VE sub-interface view, PW-VE sub-interface view, VE sub-interface view
Usage Scenario
When VLAN users access an IP core network through a BRAS, the VLAN tags carried in the user VLAN packets must be deleted as the IP core network cannot identify user VLAN information.
If a Layer 2 network connects to an IP core network through a BRAS, it is recommended that you run the user-vlan command on the BRAS's user-side sub-interface to remove the VLAN tags before sending the VLAN packets to the IP core network. If a Layer 3 network connects to an IP core network through a BRAS, it is recommended that run the dot1q termination vid or qinq termination pe-vid ce-vid command on the BRAS's user-side sub-interface to remove the VLAN tags before sending the VLAN packets to the IP core network.Configuration Impact
After the user-vlan command is configured on the BRAS's user-side sub-interface:
Precautions