lldp advertise port-vlan-id

Advertises the port VLAN identifier (PVID) that is associated with untagged or priority-tagged frames.
Syntax
lldp advertise port-vlan-id ports { all | [ ethernet unit/slot/port [ to unit/slot/port ] ... ] }
no lldp advertise port-vlan-id ports { all | [ ethernet unit/slot/port [ to unit/slot/port ] ... ] }
Command Default

The port VLAN ID is automatically advertised when Link Layer Discovery Protocol (LLDP) is enabled on a global basis.

Parameters
ports
Advertises the port VLAN ID for the specified ports.
all
Advertises the port VLAN ID for all LLDP-capable ports.
ethernet unit/slot/port
Advertises the port VLAN ID for a specific Ethernet port.
to unit/slot/port
Advertises the port VLAN ID for a range of Ethernet ports.
Modes

Global configuration mode

Usage Guidelines

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 disables the advertisement.

Examples

The following example enables the advertisement of the port VLAN ID on a range of ports.

device(config)# lldp advertise port-vlan-id ports ethernet 1/1/2 to 1/1/5