lldp source-mac vlan

Use lldp source-mac vlan to set the source MAC address of LLDP frames to the MAC address of a VLAN or a Layer 3 Ethernet subinterface.

Use undo lldp source-mac vlan to restore the default.

Syntax

lldp source-mac vlan vlan-id

undo lldp source-mac vlan

Default

The source MAC address of LLDP frames is the MAC address of the Ethernet interface.

Views

Layer 2 Ethernet interface view

Layer 3 Ethernet interface view

Default command level

network-admin

mdc-admin

Parameters

vlan vlan-id: The value range for the vlan-id argument is 1 to 4094.

Examples

# Set the source MAC address of LLDP frames to the MAC address of the Layer 3 Ethernet subinterface.

<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] lldp source-mac vlan 4094

Related commands

lldp management-address arp-learning