< Home

lldp compliance cdp txrx

Function

The lldp compliance cdp txrx command enables an interface to exchange information with CDP-capable devices.

The undo lldp compliance cdp txrx command disables an interface from exchanging information with CDP-capable devices.

By default, an interface cannot exchange information with CDP-capable devices.

Format

lldp compliance cdp txrx

undo lldp compliance cdp txrx

Parameters

None

Views

MEth interface view, Ethernet interface view, GE interface view, XGE interface view, 25GE interface view, MultiGE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Some IP phones send proprietary protocol packets but not DHCP packets to apply for IP addresses. After you run the lldp compliance cdp txrx command on an interface, the switch can identify proprietary protocol packets sent from such the IP phone connected to the interface and respond to the proprietary protocol packets. In addition, the switch assigns the voice VLAN configured on the LLDP module to the IP phone.

Prerequisites

  1. LLDP has been enabled globally using the lldp enable command.
  2. LLDP has been enabled on the interface using the lldp enable command.

Precautions

An Ethernet interface supports this command no matter whether it works in Layer 2 or Layer 3 mode.

When a switch connects the IP phones of some vendors, you are advised to run the lldp tlv-enable med-tlv network-policy voice-vlan vlan vlan-id command to specify the voice VLAN ID in the MED TLVs advertised from the interface.

Example

# Enable GigabitEthernet0/0/1 to exchange information with CDP-capable voice devices.

<HUAWEI> system-view
[HUAWEI] interface GigabitEthernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] lldp tlv-enable med-tlv network-policy voice-vlan vlan 10
[HUAWEI-GigabitEthernet0/0/1] lldp compliance cdp txrx
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >