01-Access Volume

06-LLDP Commands

Chapters Download  (107.47 KB)

06-LLDP Commands


LLDP Configuration Commands

LLDP Configuration Commands

display lldp local-information

Syntax

display lldp local-information [ global | interface interface-type interface-number ]

View

Any view

Default level

1: Monitor level

Parameters

global: Displays the global LLDP information to be transmitted.

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

Description

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

If no keyword or argument is specified, this command displays all the 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 the LLDP information to be sent.

<Sysname> display lldp local-information

Global LLDP local-information:

  Chassis ID         : 00e0-fc00-5600

  System name        : H3C

  System description : H3C Comware Platform Software

  System capabilities supported : Bridge,Router

  System capabilities enabled   : Bridge,Router

 

  MED information

  Device class: Connectivity device

 

  HardwareRev               : REV.A

  FirmwareRev               : 109

  SoftwareRev               : 5.20 Alpha 2101

  SerialNum                 : NONE

  Manufacturer name         : H3C

  Model name                : H3C Comware

  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)

  PoE supported: No

  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

Table 1-1 display lldp local-information command output description

Field

Description

Global LLDP local-information

The global LLDP information to be sent

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.

System name

System name

System description

System description

System capabilities supported

Supported capabilities, which can be:

l      Bridge, indicating switching

l      Router, indicating routing

System capabilities enabled

Currently enabled capabilities, which can be:

l      Bridge, indicating switching is currently enabled.

l      Router, indicating routing is currently enabled.

MED information

MED information

Device class

Device type, which can be:

l      Connectivity device, indicating an intermediate device.

l      Class, indicating a normal terminal device. All terminal devices that are LLDP-enabled are of this type.

l      Class , indicating a media terminal device. A device of this type is media-capable. That is, besides the capabilities of a normal terminal device, it also supports media streams.

l      Class , indicating a communication terminal device. A device of this type supports IP communication systems of end user. A device of this type supports all the capabilities of a normal terminal device and a media terminal device and can be used directly by end users.

HardwareRev

Hardware version

FirmwareRev

Firmware version

SoftwareRev

Software version

SerialNum

Serial number

Manufacturer name

Device manufacturer

Model name

Device model

Asset tracking identifier

Asset tracking ID

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 type

Port description

Port description

Management address type

Management address type

Management address

Management address

Management address interface type

Type of the interface identified by the management address

Management address interface ID

ID of the interface identified by the management address

Management address OID

Management address object ID

Port VLAN ID(PVID)

Port VLAN ID

Port and protocol VLAN ID(PPVID)

Port protocol VLAN ID

Port and protocol VLAN supported

Indicates whether protocol VLAN is supported on the port.

Port and protocol VLAN enabled

Indicates whether protocol VLAN is enabled on the port.

VLAN name of VLAN 1

Name of VLAN 1

Auto-negotiation supported

Indicates whether auto-negotiation is supported on the port.

Auto-negotiation enabled

State of auto-negotiation

OperMau

Current speed and duplex state of the port

PoE supported

Indicates whether PoE is supported on the port.

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 if link aggregation is not enabled.

Maximum frame Size

Maximum frame size supported

MED information

MED LLDP information

Media policy type

Media policy type, which can be:

l      unknown

l      voice

l      voiceSignaling

l      guestVoice

l      guestVoiceSignaling

l      softPhoneVoice

l      videoconferencing

l      streamingVideo

l      videoSignaling

Unknown Policy

Indicates whether or not the media policy is unknown.

VLAN tagged

Indicates whether 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, which can be:

l      Invalid, indicating the format of the location information is invalid.

l      Coordinate-based LCI, indicating the location information is coordinate-based.

l      Civic Address LCI, indicating normal address information.

l      ECS ELIN, indicating a telephone number for urgencies.

Location Information

Location information

 

display lldp neighbor-information

Syntax

display lldp neighbor-information [ interface interface-type interface-number ] [ brief ]

View

Any view

Default level

1: Monitor level

Parameters

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

brief: Displays the received LLDP information in brief.

Description

Use the display lldp neighbor-information command to display the received LLDP information about the neighboring devices received through a port.

With no keyword/argument specified, this command displays the LLDP information received through all the ports.

Examples

# Display the LLDP information received through all the 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        : H3C

  System description : H3C Comware Platform Software

  System capabilities supported : Repeater,Bridge,Router

  System capabilities enabled   : Repeater,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

Table 1-2 display lldp neighbor-information command output description

Field

Description

LLDP neighbor-information of port 1

LLDP information received through port 1

Neighbor index

Neighbor index

Update time

Time when the LLDP information about a neighboring device is latest updated.

Chassis type

Chassis information, which can be:

l      Chassis component

l      Interface alias

l      Port component

l      MAC address

l      Network address

l      Interface name

l      Locally assigned (indicating 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, which can be:

l      Interface alias

l      Port component

l      MAC address

l      Network Address

l      Interface name

l      Agent circuit ID

l      Locally assigned (indicating the local configuration)

Port ID

Port ID, the value of which depends on the port ID type

Port description

Port description

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, which can be:

l      Repeater, indicating forwarding

l      Bridge, indicating switching

l      Router, indicating routing

System capabilities enabled

Capabilities currently enabled on the neighboring device, which can be:

l      Repeater, indicating forwarding is currently enabled.

l      Bridge, indicating switching is currently enabled.

l      Router, indicating routing is currently enabled.

Management address type

Management address type

Management address

Management address

Management address interface type

Type of the interface identified by the management address

Management address interface ID

Management address interface ID

Management address OID

Management address object ID

Port VLAN ID

Port VLAN ID

Port and protocol VLAN ID(PPVID)

Port protocol VLAN ID

Port and protocol VLAN supported

Indicates whether protocol VLAN is supported.

Port and protocol VLAN enabled

Indicates whether protocol VLAN is enabled.

VLAN name of VLAN 1

Name of VLAN 1

Auto-negotiation supported

Indicates whether auto-negotiation is supported.

Auto-negotiation enabled

State of auto-negotiation

OperMau

Current speed and duplex state

Power port class

PoE device type, which can be:

l      PSE, indicating a power supply device.

l      PD, indicating a 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, which can be Signal or Spare.

Port power classification

Port power classification of the PD, which can be the following:

l      Class0

l      Class1

l      Class2

l      Class3

l      Class4

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 if link aggregation is not enabled.

Maximum frame Size

Maximum frame size supported

Location format

Location information format, which can be:

l      Invalid, indicating the format of the location information is invalid.

l      Coordinate-based LCI, indicating the location information is coordinate-based.

l      Civic Address LCI, indicating normal address information.

l      ECS ELIN, indicating a telephone for urgencies.

Location Information

Location information

PoE PSE power source

PSE type, which can be:

l      Primary, indicating a primary power supply

l      Backup, indicating a backup power supply

PoE service type

PoE service type

Port PSE Priority

Port PSE priority, which can be:

l      Unknown

l      Critical

l      High

l      Low

Available power value

PoE power

Unknown basic TLV

Unknown basic TLV

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

 

display lldp statistics

Syntax

display lldp statistics [ global | interface interface-type interface-number ]

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.

Description

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

If no keyword/argument is specified, this command displays all the LLDP statistics.

Examples

# Display all the LLDP statistics.

<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 1-3 display lldp statistics command output description

Field

Description

LLDP statistics global information

Global LLDP statistics

LLDP neighbor information last change time

Time the neighbor information is latest 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

The number of LLDP neighbor information aged out

Number of the neighbor information entries that have aged out

LLDP statistics Information of port 1

LLDP statistics of port 1

The number of LLDP frames transmitted

Total number of the LLDP frames transmitted

The number of LLDP frames received

Total number of the LLDP frames received

The number of LLDP frames discarded

Total number of the LLDP frames dropped

The number of LLDP error frames

Total number of the LLDP error frames received

The number of LLDP TLVs discarded

Total number of the LLDP TLVs dropped

The number of LLDP TLVs unrecognized

Total number of the LLDP TLVs that cannot be recognized

The number of LLDP neighbor information aged out

Number of the LLDP neighbor information entries that have aged out

The number of CDP frames transmitted

Total number of the CDP frames transmitted

The number of CDP frames received

Total number of the CDP frames received

The number of CDP frames discarded

Total number of the CDP frames dropped

The number of CDP error frames

Total number of the CDP error frames received

 

display lldp status

Syntax

display lldp status [ interface interface-type interface-number ]

View

Any view

Default level

1: Monitor level

Parameters

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

Description

Use the display lldp status command to display the LLDP status of a port.

If no port is specified, this command displays the LLDP status of all the ports.

Examples

# Display the LLDP status of all the 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

Rolling 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 1-4 display lldp status command output description

Field

Description

Global status of LLDP

Indicating whether or not LLDP is globally enabled

The current number of LLDP neighbors

Total number of the LLDP neighbor devices

The current number of CDP neighbors

The current number of CDP neighbors

LLDP neighbor information last changed time

Time the neighbor information is latest updated

Transmit interval

Interval to send LLDPDU

Hold multiplier

TTL multiplier

Reinit delay

Initialization delay

Transmit delay

Delay period to send LLDPDUs

Trap interval

Interval to send traps

Fast start times

Number of the LLDPDUs to be sent successively when a new neighboring device is detected

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, which can be:

l      TxRx. A port in this mode sends and receives LLDPDUs.

l      Rx_Only. A port in this mode receives LLDPDUs only.

l      Tx_Only. A port in this mode sends LLDPDUs only.

l      Disable. A port in this mode does not send or receive LLDPDUs.

Trap Flag

Indicates whether or not trap is enabled.

Rolling interval

LLDP polling interval. A value of 0 indicates LLDP polling is disabled.

Number of neighbors

Number of the LLDP neighbors connecting to the port

Number of MED neighbors

Number of MED neighbors connecting to the port

Number of CDP neighbors

Number of the CDP neighbors connecting to the port

Number of sent optional TLV

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

Number of received unknown TLV

Number of the unknown TLVs contained in a received LLDPDU

 

display lldp tlv-config

Syntax

display lldp tlv-config [ interface interface-type interface-number ]

View

Any view

Default level

1: Monitor level

Parameters

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

Description

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

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

Examples

# Display the advertisable TLVs of each port.

<Sysname> display lldp tlv-config

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 1-5 display lldp tlv-config command output description

Field

Description

LLDP tlv-config of port 1

Advertisable TLVs of port 1

NAME

TLV type

STATUS

Indicates whether or not TLVs of a specific type are currently sent through a port

DEFAULT

Indicates whether or not TLVs of a specific type are sent through a port by default

Basic optional TLV

Basic TLVs, including:

l      Port description TLV

l      System name TLV

l      System description TLV

l      System capabilities TLV

l      Management address TLV

IEEE 802.1 extended TLV

IEEE 802.1 organizationally specific TLVs, including:

l      Port VLAN ID TLV

l      Port and protocol VLAN ID TLV

l      VLAN name TLV

IEEE 802.3 extended TLV

IEEE 802.3 organizationally specific TLVs, including:

l      MAC-Physic TLV

l      Power via MDI TLV

l      Link aggregation TLV

l      Maximum frame size TLV

LLDP-MED extend TLV

MED related LLDP TLVs, including:

l      Capabilities TLV

l      Network Policy TLV

l      Extended Power-via-MDI TLV

l      Location Identification TLV

l      Inventory TLV, which can be 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 receives LLDPDUs only.

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

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 the ports in a port group.

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

The default 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: LLDP polling interval to be set, in the range 1 to 30 (in 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 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 on a port and disabled globally.

Note that LLDP takes effect on a port only when it 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 [ snap ]

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, Ethernet II encapsulation applies.

 

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: Number of the LLDPDUs to be sent successively when a new neighboring device is detected. This argument ranges from 1 to 10.

Description

Use the lldp fast-count command to set the number of the LLDPDUs to be sent successively when a new neighboring device is detected.

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

By default, the number is 3.

Examples

# Configure to send four LLDP successively when a new neighboring device is detected.

<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: TTL multiplier, in the range 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.

The TTL multiplier defaults to 4.

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

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

TTL multiplier × LLDPDU transmit interval

You can set the TTL of the local device information by configuring the TTL multiplier. Note that the TTL can be up to 65535 seconds. TTLs longer than it 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 configure the encapsulation format of the management address as 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: Management address to be set.

Description

Use the lldp management-address-tlv command to enable the management address sending. This command also sets the management address.

Use the undo lldp management-address-tlv command to disable management address sending.

By default, the management address is sent through LLDPDUs, and the management address is the primary IP address of the VLAN with the smallest VLAN ID among the VLANs whose packets are permitted on the port. If the primary IP address is not configured, the management address is 127.0.0.1.

Note that an LLDPDU carries only one management address. If you set the management address repeatedly, the latest one takes effect.

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 trap for a port or all the ports in a port group.

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

By default, trap is disabled on a port.

Examples

# Enable LLDP trap 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: Interval to send LLDP trap messages, in the range 5 to 3600 (in seconds).

Description

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

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

By default, the interval to send LLDP trap messages is 5 seconds.

Examples

# Set the interval to send LLDP trap messages 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: Initialization delay period to be set, in the range 1 to 10 (in seconds).

Description

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

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

By default, the initialization delay period is 2 seconds.

Examples

# Set the initialization delay period 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: Delay period to send LLDPDUs, in the range 1 to 8192 (in seconds).

Description

Use the lldp timer tx-delay command to set the delay period to send LLDPDUs.

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

By default, the delay period to send LLDPDUs is 2 seconds.

Examples

# Set the delay period to send LLDPDUs 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: Interval to send LLDPDUs, in the range 5 to 32768 (in seconds).

Description

Use the lldp timer tx-interval command to set the interval to send LLDPDUs.

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

By default, the interval to send LLDPDUs is 30 seconds.

To enable local device information to be updated on neighboring devices before being aged out, make sure the interval to send LLDPDUs is shorter than the TTL of the local device information.

Examples

# Set the interval to send LLDPDUs 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: Sends all the basic LLDP TLVs, all the IEEE 802.1 organizationally specific LLDP TLVs, or all the IEEE 802.3 organizationally specific LLDP TLVs when the all keyword is specified for basic-tlv, dot1-tlv, or dot3-tlv; or sends all the MED related LLDP TLVs except location identification TLVs when the all keyword is specified for med-tlv.

basic-tlv: Sends basic LLDP TLVs.

port-description: Sends port description TLVs.

system-capability: Sends system capabilities TLVs.

system-description: Sends system description TLVs.

system-name: Sends system name TLVs.

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

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

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

vlan-name: Sends VLAN name TLVs.

vlan-id: ID of the VLAN in the TLVs (port and protocol VLAN ID TLVs or VLAN name TLVs) to be sent. This argument ranges from 1 to 4094 and defaults to the least protocol VLAN ID.

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

link-aggregation: Sends link aggregation group TLVs.

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

max-frame-size: Sends maximum frame size TLVS.

power: Sends power via MDI TLVs.

med-tlv: Sends MED related LLDP TLVs.

capability: Sends LLDP-MED capabilities TLVs.

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

location-id: Sends location identification TLVS.

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

device-type: Device type value. A value of 0 specifies DHCP server; a value of 1 specifies switch, and a value of 2 specifies LLDP-MED endpoint.

country-code: Country code, confirming to ISO 3166.

{ ca-type ca-value }&<1-10>: Configures address information, where ca-type represents the address information type, in the range 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 ten such parameters.

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

tel-number: Telephone number for urgencies, a string of 10 to 25 characters.

network-policy: Sends network policy TLVs.

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

Description

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

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

By default, all the TLVs except location identification TLVs are advertisable on a port.

Note that:

l          To enable MED related LLDP TLV sending, you need to enable LLDP-MED capabilities TLV sending first. Conversely, to disable LLDP-MED capabilities TLV sending, you need to disable the sending of other MED related LLDP TLV.

l          To disable MAC/PHY configuration/status TLV sending, you need to disable LLDP-MED capabilities TLV sending first.

l          Enabling the sending of LLDP-MED capabilities TLVs also enables the sending of MAC/PHY configuration/status TLVs.

l          You can specify to send multiple types of TLVs by executing the lldp tlv-enable command repeatedly.

Examples

# Enable the sending of link aggregation group 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

H3C reserves the right to modify its collaterals without any prior notice. For the latest information of the collaterals, please consult H3C sales or call 400 hotline.