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.
In Layer 2 Ethernet interface view, specify the ID of a VLAN to which the interface belongs. The specified VLAN must have a VLAN interface configured.
In Layer 3 Ethernet interface view, specify the ID of a Layer 3 Ethernet subinterface. If the Layer 3 Ethernet subinterface does not exist, the MAC address of the Layer 3 Ethernet interface is used as the source MAC address of LLDP frames.
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