lldp neighbor-identity port-id

Use lldp neighbor-identity port-id to configure the port ID TLV criterion for neighbor validation.

Use undo lldp neighbor-identity port-id to restore the default.

Syntax

lldp neighbor-identity port-id port-id-subtype port-id

undo lldp neighbor-identity port-id

Default

No port ID TLV criterion is configured on an interface for neighbor validation.

Views

Layer 2 Ethernet interface view

Layer 3 Ethernet interface view

Predefined user roles

network-admin

Parameters

port-id-subtype: Specifies the port ID subtype. The value is an integer in the range of 1 to 7. The port ID subtype indicates the type of identifier used for the port. Table 65 lists the available port ID subtypes and the ID bases.

Table 65: Port ID subtypes

Port ID subtype

ID basis

1

Interface alias

2

Port component

3

MAC address

4

Network address

5

Interface name

6

Agent circuit ID

7

Locally assigned

port-id: Specifies the port ID, a case-sensitive string of 1 to 255 characters.

Usage guidelines

The port ID TLV criterion configured on an interface takes effect only after the lldp neighbor-protection validation command is configured on the interface.

If you execute this command multiple times for an interface, the most recent configuration takes effect.

Examples

# Configure the port ID TLV on Ten-GigabitEthernet1/0/1 for neighbor validation.

<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] lldp neighbor-identity port-id 5 ten-gigabitethernet1/0/1

Related commands

lldp neighbor-protection validation