02-Layer 2 Command Reference

HomeSupportWirelessH3C WX3000E Series Wireless SwitchesReference GuidesCommand ReferencesH3C WX3000E Series Wireless Switches Switching Engine Command References(R3507P26)-6W10202-Layer 2 Command Reference
09-LLDP Commands
Title Size Download
09-LLDP Commands 147.01 KB

LLDP configuration commands

The term "switch" or "device" in this chapter refers to the switching engine on a WX3000E wireless switch.

The WX3000E series comprises WX3024E and WX3010E wireless switches.

The port numbers in this chapter are for illustration only.

display lldp local-information

Syntax

display lldp local-information [ global | interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

global: Displays the global LLDP information to be sent.

interface interface-type interface-number: Displays the LLDP information to be sent out the interface specified by its type and number.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters.

Description

Use the display lldp local-information command to display the LLDP information to be sent, which will be contained in the LLDP TLVs and sent to neighbor devices.

If no keyword or argument is specified, this command displays all LLDP information to be sent, including the global LLDP information and the LLDP information about the LLDP-enabled ports in the up state.

Examples

# Display all LLDP information to be sent.

<Sysname> display lldp local-information

Global LLDP local-information:

  Chassis ID         : 00e0-fc00-5600

  System name        : Sysname

  System description : System

  System capabilities supported : Bridge,Router

  System capabilities enabled   : Bridge,Router

 

  MED information

  Device class: Connectivity device

 

  (MED inventory information of master board)

  HardwareRev               : REV.A

  FirmwareRev               : 109

  SoftwareRev               : 5.20 Alpha 2101

  SerialNum                 : NONE

  Manufacturer name         : Manufacturer

  Model name                : Model

  Asset tracking identifier : Unknown

LLDP local-information of port 1[GigabitEthernet1/0/1]:

  Port ID subtype  : Interface name

  Port ID          : GigabitEthernet1/0/1

  Port description : GigabitEthernet1/0/1 Interface

 

  Management address type           : ipv4

  Management address                : 192.168.1.11

  Management address interface type : IfIndex

  Management address interface ID   : 54

  Management address OID            : 0

 

  Port VLAN ID(PVID): 1

 

  Port and protocol VLAN ID(PPVID) : 1

  Port and protocol VLAN supported : Yes

  Port and protocol VLAN enabled   : No

 

  VLAN name of VLAN 1: VLAN 0001

 

  Auto-negotiation supported : Yes

  Auto-negotiation enabled   : Yes

  OperMau                    : speed(1000)/duplex(Full)

 

  Power port class          : PSE

  PSE power supported       : Yes

  PSE power enabled         : Yes

  PSE pairs control ability : Yes

  Power pairs               : Signal

  Port power classification : Class 0

 

  Link aggregation supported : Yes

  Link aggregation enabled   : No

  Aggregation port ID        : 0

 

  Maximum frame Size: 1536

 

  MED information

  Media policy type        : Unknown

  Unknown Policy           : Yes

  VLAN tagged              : No

  Media policy VlanID      : 0

  Media policy L2 priority : 0

  Media policy Dscp        : 0

 

  PoE PSE power source      : Primary

  Port PSE Priority         : Critical

  Port available power value: 30.0(w)

Table 1 Output description

Field

Description

Global LLDP local-information

The global LLDP information to be sent.

Chassis ID

Bridge MAC address of the device.

System capabilities supported

Supported capabilities:

·       Bridge—Switching is supported.

·       Router—Routing is supported.

System capabilities enabled

Enabled capabilities:

·       Bridge—Switching is enabled.

·       Router—Routing is enabled.

Device class

MED device class:

·       Connectivity device—Network device.

·       Class I—Normal terminal device. It requires the basic LLDP discovery services.

·       Class II—Media terminal device. It supports media streams, and can also function as a normal terminal device.

·       Class III—Communication terminal device. It supports the IP communication systems of end users, and can also function as a normal terminal device or media terminal device.

HardwareRev

Hardware version.

FirmwareRev

Firmware version.

SoftwareRev

Software version.

SerialNum

Serial number.

Manufacturer name

Device manufacturer.

Model name

Device model.

LLDP local-information of port 1

LLDP information to be sent out port 1.

Port ID subtype

Port ID type, which can be MAC address or interface name.

Port ID

Port ID, the value of which depends on the port ID subtype.

Management address interface type

Numbering type of the interface identified by the management address.

Management address interface ID

Index of the interface identified by the management address.

Management address OID

Management address object ID.

Port and protocol VLAN ID(PPVID)

Port protocol VLAN ID.

Port and protocol VLAN supported

Indicates whether or not protocol VLAN is supported on the port.

Port and protocol VLAN enabled

Indicates whether or not protocol VLAN is enabled on the port.

VLAN name of VLAN 1

Name of VLAN 1.

Auto-negotiation supported

Indicates whether or not auto-negotiation is supported on the port.

Auto-negotiation enabled

Indicates whether or not auto-negotiation is enabled on the port.

OperMau

Speed and duplex state of the port.

PoE supported

Indicates whether or not PoE is supported on the port.

Power port class

PoE device type:

·       PSE—Power sourcing equipment.

·       PD—Powered device.

PSE power supported

Indicates whether or not the device can operate as a PSE.

PSE power enabled

Indicates whether or not the device is operating as a PSE.

PSE pairs control ability

Indicates whether or not the PSE-PD pair control is available.

Power pairs

PoE mode:

·       Signal—PoE via signal lines.

·       Spare—PoE via spare lines.

Port power classification

Port power classification of the PD:

·       Class 0.

·       Class 1.

·       Class 2.

·       Class 3.

·       Class 4.

Link aggregation supported

Indicates whether or not link aggregation is supported.

Link aggregation enabled

Indicates whether or not link aggregation is enabled.

Aggregation port ID

Aggregation group ID, which is 0 when link aggregation is disabled.

MED information

MED LLDP information.

Media policy type

Media policy type:

·       unknown

·       voice

·       voiceSignaling

·       guestVoice

·       guestVoiceSignaling

·       softPhoneVoice

·       videoconferencing

·       streamingVideo

·       videoSignaling

Unknown Policy

Indicates whether or not the media policy is unknown.

VLAN tagged

Indicates whether or not packets of the media VLAN are tagged.

Media Policy VlanID

ID of the media VLAN.

Media Policy L2 priority

Layer 2 priority.

Media Policy Dscp

DSCP precedence.

Location format

Location information format:

·       Invalid—The format of the location information is invalid.

·       Coordinate-based LCI—The location information is coordinate-based.

·       Civic Address LCI—Typical address information.

·       ECS ELIN—Telephone number for urgencies.

PoE PSE power source

PSE power type:

·       Unknown—Unknown power supply.

·       Primary—Primary power supply.

·       Backup—Backup power supply.

Port PSE Priority

PoE power supply priority of PSE ports:

·       Unknown.

·       Critical.

·       High.

·       Low.

Port available power value

Available PoE power on PSE ports, or power needed on PD ports, in watts.

 

display lldp neighbor-information

Syntax

display lldp neighbor-information [ brief | interface interface-type interface-number [ brief ] | list [ system-name system-name ] ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

brief: Displays the summary of LLDP information sent from the neighboring devices. If this keyword is not specified, this command displays detailed LLDP information sent from the neighboring devices.

interface interface-type interface-number: Displays the LLDP information sent from the neighboring devices received through a port specified by its type and number. If this keyword-argument combination is not specified, this command displays the LLDP information sent from the neighboring devices received through all ports.

list: Displays the LLDP information sent from the neighboring devices in the form of a list.

system-name system-name: Displays the LLDP information sent from a neighboring device specified by its system name. The system-name argument is a character string of 1 to 255 characters. If this keyword-argument combination is not specified, this command displays the LLDP information sent from all neighboring devices in a list.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters.

Description

Use the display lldp neighbor-information command to display the LLDP information carried in LLDP TLVs sent from the neighboring devices.

Examples

# Display the LLDP information sent from the neighboring devices received through all ports.

<Sysname> display lldp neighbor-information

 

LLDP neighbor-information of port 1[GigabitEthernet1/0/1]:

  Neighbor index   : 1

  Update time      : 0 days,0 hours,1 minutes,1 seconds

  Chassis type     : MAC address

  Chassis ID       : 000f-0055-0002

  Port ID type     : Interface name

  Port ID          : GigabitEthernet1/0/1

  Port description : GigabitEthernet1/0/1 Interface

  System name        : Sysname

  System description : System

  System capabilities supported : Bridge,Router

  System capabilities enabled   : Bridge,Router

 

  Management address type           : ipv4

  Management address                : 192.168.1.55

  Management address interface type : IfIndex

  Management address interface ID   : Unknown

  Management address OID            : 0

 

  Port VLAN ID(PVID): 1

 

  Port and protocol VLAN ID(PPVID) : 1

  Port and protocol VLAN supported : Yes

  Port and protocol VLAN enabled   : No

 

  VLAN name of VLAN 1: VLAN 0001

 

  Auto-negotiation supported : Yes

  Auto-negotiation enabled   : Yes

  OperMau                    : speed(1000)/duplex(Full)

 

  Power port class          : PD

  PSE power supported       : No

  PSE power enabled         : No

  PSE pairs control ability : No

  Power pairs               : Signal

  Port power classification : Class 0

 

  Link aggregation supported : Yes

  Link aggregation enabled   : No

  Aggregation port ID        : 0

 

  Maximum frame Size: 1536

# Display the LLDP information sent from all neighboring devices in a list.

<Sysname> display lldp neighbor-information list

 

System Name          Local Interface Chassis ID      Port ID

System1              GE1/0/1         000f-e25d-ee91  GigabitEthernet1/0/5

System2              GE1/0/2         000f-e25d-ee92  GigabitEthernet1/0/6

System3              GE1/0/3         000f-e25d-ee93  GigabitEthernet1/0/7

Table 2 Output description

Field

Description

LLDP neighbor-information of port 1

LLDP information received through port 1.

Update time

Time when LLDP information about a neighboring device was last updated.

Chassis type

Chassis information:

·       Chassis component.

·       Interface alias.

·       Port component.

·       MAC address.

·       Network address (the IP address type, such as ipv4).

·       Interface name.

·       Locally assigned—Indicates the local configuration.

Chassis ID

ID that identifies the LLDP sending device, which can be a MAC address, a network address, an interface or some other value depending on the chassis type.

Port ID type

Port information:

·       Interface alias.

·       Port component.

·       MAC address.

·       Network address (the IP address type, such as ipv4).

·       Interface name.

·       Agent circuit ID.

·       Locally assigned—Indicates the local configuration.

Port ID

Value of the port ID type.

System name

System name of the neighboring device.

System description

System description of the neighboring device.

System capabilities supported

Capabilities supported on the neighboring device:

·       Repeater—Signal repeating is supported.

·       Bridge—Switching is supported.

·       Router—Routing is supported.

System capabilities enabled

Capabilities enabled on the neighboring device:

·       Repeater—Signal repeating is enabled.

·       Bridge—Switching is enabled.

·       Router—Routing is enabled.

Management address OID

Management address object ID.

Port and protocol VLAN ID(PPVID)

Port protocol VLAN ID.

Port and protocol VLAN supported

Indicates whether or not protocol VLAN is supported on the port.

Port and protocol VLAN enabled

Indicates whether or not protocol VLAN is enabled on the port.

VLAN name of VLAN 1

Name of VLAN 1.

Auto-negotiation supported

Indicates whether or not auto-negotiation is supported on the port.

Auto-negotiation enabled

Indicates whether or not auto-negotiation is enabled on the port.

OperMau

Speed and duplex state on the port.

Power port class

PoE device type:

·       PSE—Power sourcing equipment.

·       PD—Powered device.

PSE power supported

Indicates whether or not the device can operate as a PSE.

PSE power enabled

Indicates whether or not the device is operating as a PSE.

PSE pairs control ability

Indicates whether or not the PSE-PD pair control is available.

Power pairs

PoE mode:

·       Signal—PoE via signal lines.

·       Spare—PoE via spare lines.

Port power classification

Port power classification of the PD:

·       Class 0.

·       Class 1.

·       Class 2.

·       Class 3.

·       Class 4.

Link aggregation supported

Indicates whether or not link aggregation is supported.

Link aggregation enabled

Indicates whether or not link aggregation is enabled.

Aggregation port ID

Aggregation group ID, which is 0 when link aggregation is disabled.

Location format

Location information format:

·       Invalid—The format of the location information is invalid.

·       Coordinate-based LCI—The location information is coordinate-based.

·       Civic Address LCI—Typical address information.

·       ECS ELIN—Telephone for urgencies.

PoE PSE power source

PSE power type:

·       Unknown—Unknown power supply.

·       Primary—Primary power supply.

·       Backup—Backup power supply.

PoE PD power source

PD power type:

·       Unknown—Unknown power supply

·       PSE—PSE power supply

·       Local—Local power supply

·       PSE and local—PSE and local power supplies

Port PSE Priority

PoE power supply priority of PSE ports:

·       Unknown.

·       Critical.

·       High.

·       Low.

Port PD Priority

PoE power receiving priority of PD ports:

·       Unknown.

·       Critical.

·       High.

·       Low.

Port available power value

Available PoE power on PSE ports, or power needed on PD ports, in watts.

TLV type

Unknown basic TLV type.

TLV information

Information contained in the unknown basic TLV type.

Unknown organizationally-defined TLV

Unknown organizationally specific TLV.

TLV OUI

OUI of the unknown organizationally specific TLV.

TLV subtype

Unknown organizationally specific TLV subtype.

Index

Unknown organization index.

TLV information

Information contained in unknown organizationally specific TLV.

Local Interface

Local port that receives the LLDP information.

 

display lldp statistics

Syntax

display lldp statistics [ global | interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

global: Displays the global LLDP statistics.

interface interface-type interface-number: Specifies a port by its type and number.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters.

Description

Use the display lldp statistics command to display the global LLDP statistics or the LLDP statistics of a port.

If no keyword or argument is specified, this command displays the global LLDP statistics as well as the LLDP statistics of all ports.

Examples

# Display the global LLDP statistics as well as the LLDP statistics of all ports.

<Sysname> display lldp statistics

LLDP statistics global Information:

LLDP neighbor information last change time:0 days,0 hours,4 minutes,40 seconds

The number of LLDP neighbor information inserted : 1

The number of LLDP neighbor information deleted  : 1

The number of LLDP neighbor information dropped  : 0

The number of LLDP neighbor information aged out : 1

LLDP statistics information of port 1 [GigabitEthernet1/0/1]:

The number of LLDP frames transmitted            : 0

The number of LLDP frames received               : 0

The number of LLDP frames discarded              : 0

The number of LLDP error frames                  : 0

The number of LLDP TLVs discarded                : 0

The number of LLDP TLVs unrecognized             : 0

The number of LLDP neighbor information aged out : 0

The number of CDP frames transmitted             : 0

The number of CDP frames received                : 0

The number of CDP frames discarded               : 0

The number of CDP error frames                   : 0

Table 3 Output description

Field

Description

LLDP statistics global information

Global LLDP statistics.

LLDP neighbor information last change time

Time the neighbor information was last updated.

The number of LLDP neighbor information inserted

Number of times of adding neighbor information.

The number of LLDP neighbor information deleted

Number of times of removing neighbor information.

The number of LLDP neighbor information dropped

Number of times of dropping neighbor information due to lack of available memory space.

 

display lldp status

Syntax

display lldp status [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

interface interface-type interface-number: Specifies a port by its type and number.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters.

Description

Use the display lldp status command to display LLDP status information.

If no port is specified, this command displays the global LLDP status and the LLDP status information for all ports.

Examples

# Display the global LLDP status as well as the LLDP status information of all ports.

<Sysname> display lldp status

Global status of LLDP: Enable

The current number of LLDP neighbors: 0

The current number of CDP neighbors: 0

LLDP neighbor information last changed time: 0 days,0 hours,4 minutes,40 seconds

Transmit interval              : 30s

Hold multiplier                : 4

Reinit delay                   : 2s

Transmit delay                 : 2s

Trap interval                  : 5s

Fast start times               : 3

 

Port 1 [GigabitEthernet1/0/1]:

Port status of LLDP            : Enable

Admin status                   : Tx_Rx

Trap flag                      : No

Polling interval               : 0s

 

Number of neighbors            : 5

Number of MED neighbors        : 2

Number of CDP neighbors        : 0

Number of sent optional TLV    : 12

Number of received unknown TLV : 5

Table 4 Output description

Field

Description

Global status of LLDP

Indicates whether or not LLDP is globally enabled.

LLDP neighbor information last changed time

Time when the neighbor information was last updated.

Transmit interval

LLDPDU transmit interval.

Hold multiplier

TTL multiplier.

Reinit delay

LLDP re-initialization delay.

Transmit delay

LLDPDU transmit delay.

Trap interval

Trap transmit interval.

Fast start times

Number of the LLDPDUs sent each time fast LLDPDU transmission is triggered.

Port 1

LLDP status of port 1.

Port status of LLDP

Indicates whether or not LLDP is enabled on the port.

Admin status

LLDP mode of the port:

·       TxRx—The port sends and receives LLDPDUs.

·       Rx_Only—The port only receives LLDPDUs.

·       Tx_Only—The port only sends LLDPDUs.

·       Disable—The port does not send or receive LLDPDUs.

Trap Flag

Indicates whether or not trapping is enabled.

Polling interval

LLDP polling interval, which is 0 when LLDP polling is disabled.

Number of neighbors

Number of LLDP neighbors connecting to the port.

Number of MED neighbors

Number of MED neighbors connecting to the port.

Number of CDP neighbors

Number of CDP neighbors connecting to the port.

Number of sent optional TLV

Number of optional TLVs contained in an LLDPDU sent through the port.

Number of received unknown TLV

Number of unknown TLVs contained in a received LLDPDU.

 

display lldp tlv-config

Syntax

display lldp tlv-config [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

interface interface-type interface-number: Specifies a port by its type and number.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters.

Description

Use the display lldp tlv-config command to display the types of advertisable optional LLDP TLVs of a port.

If no port is specified, this command displays the types of advertisable optional TLVs of each port.

Examples

# Display the types of advertisable optional LLDP TLVs of interface GigabitEthernet 1/0/1.

<Sysname> display lldp tlv-config interface gigabitethernet 1/0/1

LLDP tlv-config of port 1[GigabitEthernet1/0/1]:

NAME                              STATUS    DEFAULT

Basic optional TLV:

Port Description TLV              YES       YES

System Name TLV                   YES       YES

System Description TLV            YES       YES

System Capabilities TLV           YES       YES

Management Address TLV            YES       YES

 

IEEE 802.1 extend TLV:

Port VLAN ID TLV                  YES       YES

Port And Protocol VLAN ID TLV     YES       YES

VLAN Name TLV                     YES       YES

 

IEEE 802.3 extend TLV:

MAC-Physic TLV                    YES       YES

Power via MDI TLV                 YES       YES

Link Aggregation TLV              YES       YES

Maximum Frame Size TLV            YES       YES

 

LLDP-MED extend TLV:

Capabilities TLV                  YES        YES

Network Policy TLV                YES        YES

Location Identification TLV       NO         NO

Extended Power via MDI TLV        YES        YES

Inventory TLV                     YES        YES

Table 5 Output description

Field

Description

LLDP tlv-config of port 1

Advertisable optional TLVs of port 1.

NAME

TLV type.

STATUS

Indicates whether or not a specific type of TLV is sent through a port.

DEFAULT

Indicates whether or not a specific type of TLV is sent through a port by default.

Basic optional TLV

Basic TLVs:

·       Port description TLV.

·       System name TLV.

·       System description TLV.

·       System capabilities TLV.

·       Management address TLV.

IEEE 802.1 extended TLV

IEEE 802.1 organizationally specific TLVs:

·       Port VLAN ID TLV.

·       Port and protocol VLAN ID TLV.

·       VLAN name TLV.

IEEE 802.3 extended TLV

IEEE 802.3 organizationally specific TLVs:

·       MAC-Physic TLV.

·       Power via MDI TLV.

·       Link aggregation TLV.

·       Maximum frame size TLV.

LLDP-MED extend TLV

LLDP-MED TLVs:

·       Capabilities TLV.

·       Network Policy TLV.

·       Extended Power-via-MDI TLV.

·       Location Identification TLV.

·       Inventory TLV, including hardware revision TLV, firmware revision TLV, software revision TLV, serial number TLV, manufacturer name TLV, model name TLV, and asset id TLV.

 

lldp admin-status

Syntax

lldp admin-status { disable | rx | tx | txrx }

undo lldp admin-status

View

Ethernet interface view, port group view

Default level

2: System level

Parameters

disable: Specifies the Disable mode. A port in this mode does not send or receive LLDPDUs.

rx: Specifies the Rx mode. A port in this mode only receives LLDPDUs.

tx: Specifies the Tx mode. A port in this mode only sends LLDPDUs.

txrx: Specifies the TxRx mode. A port in this mode sends and receives LLDPDUs.

Description

Use the lldp admin-status command to specify the LLDP operating mode for a port or all ports in a port group.

Use the undo lldp admin-status command to restore the default LLDP operating mode.

By default, the LLDP operating mode is TxRx.

Examples

# Configure the LLDP operating mode as Rx for GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] lldp admin-status rx

lldp check-change-interval

Syntax

lldp check-change-interval interval

undo lldp check-change-interval

View

Ethernet interface view, port group view

Default level

2: System level

Parameters

interval: Sets the LLDP polling interval, ranging from 1 to 30 seconds.

Description

Use the lldp check-change-interval command to enable LLDP polling and set the polling interval.

Use the undo lldp check-change-interval command to restore the default.

By default, LLDP polling is disabled.

Examples

# Enable LLDP polling on GigabitEthernet 1/0/1, setting the polling interval to 30 seconds.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] lldp check-change-interval 30

lldp compliance admin-status cdp

Syntax

lldp compliance admin-status cdp { disable | txrx }

View

Ethernet interface view, port group view

Default level

2: System level

Parameters

disable: Specifies the disable mode, where CDP-compatible LLDP cannot receive or transmit CDP packets.

txrx: Specifies the TxRx mode, where CDP-compatible LLDP can send and receive CDP packets.

Description

Use the lldp compliance admin-status cdp command to configure the operating mode of CDP-compatible LLDP on a port or port group.

By default, CDP-compatible LLDP operates in disable mode.

For your device to work with Cisco IP phones, you must enable CDP-compatible LLDP globally and then configure CDP-compatible LLDP to operate in TxRx mode on the specified ports.

Related commands: lldp compliance cdp.

Examples

# Configure CDP-compatible LLDP to operate in TxRx mode on GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] lldp compliance admin-status cdp txrx

lldp compliance cdp

Syntax

lldp compliance cdp

undo lldp compliance cdp

View

System view

Default level

2: System level

Parameters

None

Description

Use the lldp compliance cdp command to enable global CDP compatibility.

Use the undo lldp compliance cdp command to restore the default.

By default, CDP compatibility is globally disabled.

Because the maximum TTL allowed by CDP is 255 seconds, the TTL configuration must be no more than 255 seconds for CDP-compatible LLDP to operate with Cisco IP phones. The TTL configuration is the product of the TTL multiplier and the LLDPDU transmit interval.

Related commands: lldp hold-multiplier and lldp timer tx-interval.

Examples

# Enable LLDP to be compatible with CDP globally.

<Sysname> system-view

[Sysname] lldp compliance cdp

lldp enable

Syntax

lldp enable

undo lldp enable

View

System view, Ethernet interface view, port group view

Default level

2: System level

Parameters

None

Description

Use the lldp enable command to enable LLDP.

Use the undo lldp enable command to disable LLDP.

By default, LLDP is enabled globally and on all ports.

LLDP takes effect on a port only when LLDP is enabled both globally and on the port.

Examples

# Disable LLDP on GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] undo lldp enable

lldp encapsulation snap

Syntax

lldp encapsulation snap

undo lldp encapsulation

View

Ethernet interface view, port group view

Default level

2: System level

Parameters

None

Description

Use the lldp encapsulation snap command to configure the encapsulation format for LLDPDUs as SNAP on a port or a group of ports.

Use the undo lldp encapsulation command to restore the default encapsulation format for LLDPDUs.

By default, the encapsulation format for LLDPDUs is Ethernet II.

 

 

NOTE:

The command does not apply to LLDP-CDP packets, which use only SNAP encapsulation.

 

Examples

# Configure the encapsulation format for LLDPDUs as SNAP on GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] lldp encapsulation snap

lldp fast-count

Syntax

lldp fast-count count

undo lldp fast-count

View

System view

Default level

2: System level

Parameters

count: Sets the number of the LLDPDUs sent each time fast LLDPDU transmission is triggered. The argument ranges from 1 to 10.

Description

Use the lldp fast-count command to set the number of the LLDPDUs sent each time fast LLDPDU transmission is triggered.

Use the undo lldp fast-count command to restore the default.

By default, the number is 3.

Examples

# Configure the device to send four LLDPDUs each time fast LLDPDU transmission is triggered.

<Sysname> system-view

[Sysname] lldp fast-count 4

lldp hold-multiplier

Syntax

lldp hold-multiplier value

undo lldp hold-multiplier

View

System view

Default level

2: System level

Parameters

value: Sets the TTL multiplier, ranging from 2 to 10.

Description

Use the lldp hold-multiplier command to set the TTL multiplier.

Use the undo lldp hold-multiplier command to restore the default.

By default, the TTL multiplier is 4.

You can set the TTL of the local device information by configuring the TTL multiplier.

The TTL configuration of a device is determined by the following expression:

TTL multiplier × LLDPDU transmit interval

The TTL can be up to 65535 seconds. Longer TTLs will be rounded off to 65535 seconds.

Related commands: lldp timer tx-interval.

Examples

# Set the TTL multiplier to 6.

<Sysname> system-view

[Sysname] lldp hold-multiplier 6

lldp management-address-format string

Syntax

lldp management-address-format string

undo lldp management-address-format

View

Ethernet interface view, port group view

Default level

2: System level

Parameters

None

Description

Use the lldp management-address-format string command to encapsulate the management address in the form of strings in TLVs.

Use the undo lldp management-address-format command to restore the default.

By default, the management address is encapsulated in the form of numbers in TLVs.

Examples

# Configure GigabitEthernet 1/0/1 to encapsulate the management address in the form of strings in management address TLVs.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] lldp management-address-format string

lldp management-address-tlv

Syntax

lldp management-address-tlv [ ip-address ]

undo lldp management-address-tlv

View

Ethernet interface view, port group view

Default level

2: System level

Parameters

ip-address: Specifies a management address to be advertised in LLDPDUs.

Description

Use the lldp management-address-tlv command to enable management address advertising and set the management address.

Use the undo lldp management-address-tlv command to disable management address advertising in LLDPDUs.

By default, the management address is advertised through LLDPDUs. For an Ethernet port, the management address is the main IP address of the lowest-ID VLAN carried on the port. If none of the carried VLANs is assigned an IP address, no management address will be advertised.

An LLDPDU carries only one management address TLV. If you set the management address repeatedly, the latest one takes effect.

In Ethernet interface view, if you run the lldp management-address-tlv command without specifying the ip-address argument, the advertised management address is the main IP address of the lowest-ID VLAN carried on the interface. If none of the carried VLANs is assigned an IP address, no management address will be advertised.

Examples

# Set the management address to 192.6.0.1 for GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] lldp management-address-tlv 192.6.0.1

lldp notification remote-change enable

Syntax

lldp notification remote-change enable

undo lldp notification remote-change enable

View

Ethernet interface view, port group view

Default level

2: System level

Parameters

None

Description

Use the lldp notification remote-change enable command to enable LLDP trapping for a port or all ports in a port group.

Use the undo lldp notification remote-change enable command to restore the default.

By default, LLDP trapping is disabled on ports.

Examples

# Enable LLDP trapping for GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] lldp notification remote-change enable

lldp timer notification-interval

Syntax

lldp timer notification-interval interval

undo lldp timer notification-interval

View

System view

Default level

2: System level

Parameters

interval: Sets the LLDP trap transmit interval, ranging from 5 to 3600 seconds.

Description

Use the lldp timer notification-interval command to set the LLDP trap transmit interval.

Use the undo lldp timer notification-interval command to restore the default.

By default, the LLDP trap transmit interval is 5 seconds.

Examples

# Set the LLDP trap transmit interval to 8 seconds.

<Sysname> system-view

[Sysname] lldp timer notification-interval 8

lldp timer reinit-delay

Syntax

lldp timer reinit-delay delay

undo lldp timer reinit-delay

View

System view

Default level

2: System level

Parameters

delay: Sets the LLDP re-initialization delay, ranging from 1 to 10 seconds.

Description

Use the lldp timer reinit-delay command to set the LLDP re-initialization delay.

Use the undo lldp timer reinit-delay command to restore the default.

By default, the LLDP re-initialization delay is 2 seconds.

Examples

# Set the LLDP re-initialization delay to 4 seconds.

<Sysname> system-view

[Sysname] lldp timer reinit-delay 4

lldp timer tx-delay

Syntax

lldp timer tx-delay delay

undo lldp timer tx-delay

View

System view

Default level

2: System level

Parameters

delay: Sets the LLDPDU transmit delay, ranging from 1 to 8192 seconds.

Description

Use the lldp timer tx-delay command to set the LLDPDU transmit delay.

Use the undo lldp timer tx-delay command to restore the default.

By default, the LLDPDU transmit delay is 2 seconds.

Examples

# Set the LLDPDU transmit delay to 4 seconds.

<Sysname> system-view

[Sysname] lldp timer tx-delay 4

lldp timer tx-interval

Syntax

lldp timer tx-interval interval

undo lldp timer tx-interval

View

System view

Default level

2: System level

Parameters

interval: Sets the LLDPDU transmit interval, ranging from 5 to 32768 seconds.

Description

Use the lldp timer tx-interval command to set the LLDPDU transmit interval.

Use the undo lldp timer tx-interval command to restore the default.

By default, the LLDPDU transmit interval is 30 seconds.

Examples

# Set the LLDPDU transmit interval to 20 seconds.

<Sysname> system-view

[Sysname] lldp timer tx-interval 20

lldp tlv-enable

Syntax

lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name } | dot1-tlv { all | port-vlan-id | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] } | dot3-tlv { all | link-aggregation | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | location-id { civic-address device-type country-code { ca-type ca-value }&<1-10> | elin-address tel-number } | network-policy | power-over-ethernet } }

undo lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name } | dot1-tlv { all | port-vlan-id | protocol-vlan-id | vlan-name } | dot3-tlv { all | link-aggregation | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | location-id | network-policy | power-over-ethernet } }

View

Ethernet interface view, port group view

Default level

2: System level

Parameters

all: Advertises all basic LLDP TLVs, IEEE 802.1 organizationally specific LLDP TLVs, or IEEE 802.3 organizationally specific LLDP TLVs when the all keyword is specified for basic-tlv, dot1-tlv, or dot3-tlv; advertises all LLDP-MED TLVs except location identification TLVs when the all keyword is specified for med-tlv.

basic-tlv: Advertises basic LLDP TLVs.

port-description: Advertises port description TLVs.

system-capability: Advertises system capabilities TLVs.

system-description: Advertises system description TLVs.

system-name: Advertises system name TLVs.

dot1-tlv: Advertises IEEE 802.1 organizationally specific LLDP TLVs.

port-vlan-id: Advertises port VLAN ID TLVs.

protocol-vlan-id: Advertises port and protocol VLAN ID TLVs.

vlan-name: Advertises VLAN name TLVs.

vlan-id: Specifies a VLAN ID in the TLVs to be advertised. The argument ranges from 1 to 4094 and defaults to the least VLAN ID on the port.

dot3-tlv: Advertises IEEE 802.3 organizationally specific LLDP TLVs.

link-aggregation: Advertises link aggregation TLVs.

mac-physic: Advertises MAC/PHY configuration/status TLVs.

max-frame-size: Advertises maximum frame size TLVs.

power: Advertises power via MDI TLVs and power stateful control TLVs.

med-tlv: Advertises LLDP-MED TLVs.

capability: Advertises LLDP-MED capabilities TLVs.

inventory: Advertises the following TLVs: hardware revision, firmware revision, software revision, serial number, manufacturer name, model name, and asset ID.

location-id: Advertises location identification TLVs.

civic-address: Inserts the normal address information about the network device in location identification TLVs .

device-type: Sets a device type value, ranging from 0 to 2. Value 0 specifies a DHCP server. Value 1 specifies a switch. Value 2 specifies an LLDP-MED endpoint.

country-code: Sets a country code, corresponding to ISO 3166.

{ ca-type ca-value }&<1-10>: Configures address information, where ca-type represents the address information type, ranging from 0 to 255, ca-value represents address information, a string of 1 to 250 characters, and &<1-10> indicates that you can enter up to 10 parameters.

elin-address: Inserts telephone numbers for emergencies in location identification TLVs.

tel-number: Sets the telephone number for emergencies, a string of 10 to 25 characters.

network-policy: Advertises network policy TLVs.

power-over-ethernet: Advertises extended power-via-MDI TLVs.

Description

Use the lldp tlv-enable command to configure the types of advertisable TLVs for a port or all ports in a port group.

Use the undo lldp tlv-enable command to disable the advertising of specific types of TLVs.

By default, the device can advertise all types of LLDP TLVs, except DCBX TLVs and location identification TLVs.

To enable the device to advertise LLDP-MED TLVs, you must first enable it to advertise LLDP-MED capabilities TLVs.

To disable the device from advertising LLDP-MED capabilities TLVs, you must first disable it from advertising other LLDP-MED TLVs.

To disable the device from advertising MAC/PHY configuration/status TLVs, you must first disable it from advertising LLDP-MED capabilities TLVs.

If you enable the device to advertise LLDP-MED capabilities TLVs, you also enable it to advertise MAC/PHY configuration/status TLVs.

To enable the device to advertise multiple types of TLVs, you can execute the lldp tlv-enable command repeatedly without the all keyword specified.

Examples

# Enable the device to advertise link aggregation TLVs of the IEEE 802.3 organizationally specific TLVs on GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] lldp tlv-enable dot3-tlv link-aggregation

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网