lldp advertise management-address

Advertises a management address.
Syntax
lldp advertise management-address { ipv4 ipv4-address | ipv6 ipv6-address } { ports { all | [ ethernet unit/slot/port [ to unit/slot/port ] ... ] } }
no lldp advertise management-address { ipv4 ipv4-address | ipv6 ipv6-address } { ports { all | [ ethernet unit/slot/port [ to unit/slot/port ] ... ] } }
Command Default

Management address advertising has two modes: default and explicitly configured.

Parameters
ipv4 ipv4-address
Specifies an IPv4 management address to advertise.
ipv6 ipv6-address
Specifies an IPv6 management address to advertise.
ports
Advertises the configured management address for the specified ports.
all
Advertises the configured management address for all LLDP-capable ports.
ethernet unit/slot/port
Advertises link-aggregation information for a specified Ethernet port.
to unit/slot/port
Advertises link-aggregation information for a range of Ethernet ports.
Modes

Global configuration mode

Usage Guidelines

The default mode is used when no addresses are configured to be advertised for a given port. If no management address is explicitly configured to be advertised, the device uses the first available IPv4 address and the first available IPv6 address (so it may advertise IPv4, IPv6 or both). If any addresses are configured to be advertised for a given port, then only those addresses are advertised. If no IP address is configured, the port's current MAC address will be advertised.

If a management address is not explicitly configured to be advertised, the device uses the first available IPv4 address and the first available IPv6 address. A Layer 3 switch selects the first available address of each type from those configured on the following types of interfaces, in the following order of preference:

  • Physical port on which LLDP will be transmitting the packet
  • Virtual router interface (VE) on a VLAN that the port is a member of
  • Dedicated management port
  • Loopback interface
  • Virtual router interface (VE) on any other VLAN
  • Other physical port
  • Other interface

For IPv6 addresses, link-local and anycast addresses are excluded from these searches.

If no IP address is configured on any of the listed interface types, the port's current MAC address is advertised.

You can specify a list of ports, separated by a space, or a range of ports, or you can combine lists and ranges.

The command cannot support LAG virtual interfaces. Attempting to configure them will have no effect.

The no form of the command stops the advertisement of the management interface IP address.

Examples

The following example advertises an IPv4 management address.

device(config)# lldp advertise management-address ipv4 10.157.2.1 ports ethernet 1/1/4

The following example advertises an IPv6 management address.

device(config)# lldp advertise management-address ipv6 2001:DB8::90 ports ethernet 1/1/7