The link-protocol transport command configures the type of link-layer-protocol packets that can be transparently transmitted by an interface.
The undo link-protocol transport command deletes the type of link-layer-protocol packets that can be transparently transmitted by an interface.
By default, Layer 2 protocol tunneling is disabled on sub-interfaces.
Parameter | Description | Value |
---|---|---|
lacp |
Indicates that only LACP packets can be transparently transmitted by the sub-interface bound to an L2VPN instance. |
- |
lldp |
Indicates that only LLDP packets can be transparently transmitted by the sub-interface bound to an L2VPN instance. If LLDP is enabled on the physical interface, you must run the undo lldp enable command in the physical interface view before configuring LLDP transparent transmission on the sub-interface. |
- |
bpdu |
Indicates that only BPDU packets can be transparently transmitted by the sub-interface bound to an L2VPN instance. If STP is enabled on the Layer 2 interface, you must run the stp disable command in the Layer 2 interface view before configuring BPDU transparent transmission on the Layer 2 sub-interface. |
- |
cdp |
Indicates that only CDP packets can be transparently transmitted by the sub-interface bound to an L2VPN instance. |
- |
udld |
Indicates that only UDLD packets can be transparently transmitted by the sub-interface bound to an L2VPN instance. |
- |
untag |
No VLAN tag. |
- |
untag-vlan-check |
Checks whether the VLAN tag of a packet matches the port VLAN ID. If yes, the packet is permitted and the VLAN tag of the packet is removed. If not, the packet is discarded. |
- |
Usage Scenario
Untagged link-layer-protocol packets, such as LACP, LLDP, BPDU, CDP, and UDLD packets, can be transparently transmitted over VPLS,VLL,EVPN VXLAN,EVPN and EVPL networks.
link-protocol transport supports VPLS,VLL,EVPN VXLAN,EVPN and EVPL. link-protocol transport untag supports VPLS,VLL,EVPN VXLAN,EVPN and EVPL. The link-protocol transport supports vlan-type dot1q interfaces and evc dot1q interfaces. The link-protocol transport untag supports the following interface types: vlan-type dot1q (In VPLS and VLL scenarios, only common dot1q interfaces are supported.) flex vlan-type dot1q qinq stacking flex qinq stacking dot1q termination flex dot1q termination qinq termination evc dot1q flex evc dot1q evc untag evc default evc qinq terminationPrerequisites
You can run the link-protocol transport command on an Ethernet sub-interface only after the sub-interface has VLAN IDs configured and is bound to a VPWS/VSI/EVPN/EVPL.
You can run the link-protocol transport command on an EVC sub-interface only after the sub-interface has VLAN IDs configured and is bound to a BD-EVPN or a BD-VSI.<HUAWEI> system-view [~HUAWEI] interface loopback 1 [*HUAWEI-loopback1] ip address 1.1.1.1 32 [*HUAWEI-loopback1] quit [*HUAWEI] mpls lsr-id 1.1.1.1 [*HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*HUAWEI] interface GigabitEthernet0/1/0.1 [*HUAWEI-GigabitEthernet0/1/0.1] vlan-type dot1q 1 [*HUAWEI-GigabitEthernet0/1/0.1] mpls l2vc 1.1.1.1 32 [*HUAWEI-GigabitEthernet0/1/0.1] link-protocol transport lldp