On an IPv6 VXLAN, Layer 2 sub-interfaces are used for service access and can have different encapsulation types configured to transmit various types of data packets. A Layer 2 sub-interface can transmit data packets through a BD after being associated with it.
Traffic Encapsulation Type |
Description |
---|---|
dot1q |
This type of sub-interface accepts only packets with a specified VLAN tag. The dot1q traffic encapsulation type has the following restrictions:
|
untag |
This type of sub-interface accepts only packets that do not carry VLAN tags. When setting the encapsulation type to untag for a Layer 2 sub-interface, note the following:
|
default |
This type of sub-interface accepts all packets, regardless of whether they carry VLAN tags. The default traffic encapsulation type has the following restrictions:
|
qinq |
This type of sub-interface receives packets that carry two or more VLAN tags and determines whether to accept the packets based on the innermost two VLAN tags. |
A service access point needs to be configured on a Layer 2 gateway.
The system view is displayed.
A BD is created, and the BD view is displayed.
A BD description is configured.
Return to the system view.
A Layer 2 sub-interface is created, and the sub-interface view is displayed.
Before running this command, ensure that the involved Layer 2 main interface does not have the port link-type dot1q-tunnel command configuration. If the configuration exists, run the undo port link-type command to delete it.
A traffic encapsulation type is configured for the Layer 2 sub-interface.
The Layer 2 sub-interface is enabled to remove single or double VLAN tags from received packets.
If the received packets each carry a single VLAN tag, specify single.
If the traffic encapsulation type has been specified as qinq using the encapsulation qinq vid pe-vid ce-vid { low-ce-vid [ to high-ce-vid ] | default } command in the preceding step, specify double.
The Layer 2 sub-interface is added to the BD so that it can transmit data packets through this BD.
If a default Layer 2 sub-interface is added to a BD, no VBDIF interface can be created for the BD.
The configuration is committed.