link-protocol transport

Function

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.

Format

link-protocol transport { lacp | lldp | bpdu | cdp | udld }

link-protocol transport { lacp | lldp | bpdu | cdp | udld } untag

link-protocol transport { lacp | lldp | bpdu | cdp | udld } untag-vlan-check

undo link-protocol transport { lacp | lldp | bpdu | cdp | udld }

Parameters

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.

-

Views

Eth-Trunk sub-interface view, GE sub-interface view, Layer 2 sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-base write

Usage Guidelines

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 termination

Prerequisites

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.

Example

# Configure GE 0/1/0.1 to transparently transmit LLDP packets.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >