The encapsulation default command configures a Layer 2 sub-interface to receive packets with any encapsulation type by default.
The undo encapsulation default command disables a Layer 2 sub-interface from receiving packets with any encapsulation type by default.
By default, no encapsulation type is specified on an EVC Layer 2 sub-interface.
Usage Scenario
A Layer 2 Ethernet can transmit untagged, single-tagged, and double-tagged packets. To enable an EVC Layer 2 sub-interface to transmit different types of packets, run the flow-encapsulation command to configure an encapsulation type for the EVC Layer 2 sub-interface. The encapsulation default command configures a Layer 2 sub-interface to receive packets with any encapsulation type by default. When packets cannot meet the requirements of other sub-interfaces, the packets are sent to the Layer 2 sub-interface.
The encapsulation default command mainly applies to Layer 2 networks. When Layer 3 sub-interfaces are deployed on the same main interface, traffic is preferentially matched against the outer VLAN tag based on the fuzzy matching principle. The encapsulation default command takes effect on Layer 2 sub-interfaces only when the outer VLAN tags of the Layer 3 sub-interfaces cannot be matched.Precautions
Only a single encapsulation type can be specified on each EVC Layer 2 sub-interface. Before changing an encapsulation type, run the undo encapsulation command to delete the existing encapsulation type and run the encapsulation to specify an encapsulation type.If an interface has a VLAN configuration, the VLAN configuration does not take effect after the encapsulation default command is run. If an interface has a VLAN configuration, VLAN has to be reconfigured after the encapsulation default command is run.
After an EVC Layer 2 sub-interface with the encapsulation type of default is added to a bridge domain (BD), no BDIF interface can be created in the bridge domain.