< Home

dldp compatible-mode local-mac

Function

The dldp compatible-mode local-mac command configures the switch to send DLDP packets containing source MAC addresses in the DLDP compatible mode.

The undo dldp compatible-mode local-mac command restores the source MAC addresses of the DLDP packets to the default MAC address.

By default, the MAC address of a DLDP packet is the system MAC address.

Format

dldp compatible-mode local-mac mac-address

undo dldp compatible-mode local-mac [ mac-address ]

Parameters

Parameter

Description

Value

mac-address

Specifies the source MAC address of the DLDP packets sent in the DLDP compatible mode.

The value is in H-H-H format. H contains 1 to 4 hexadecimal digits.

NOTE:

The source MAC address cannot be a multicast MAC address, a broadcast MAC address, or a reserved address.

Views

Ethernet interface view, GE interface view, XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, MultiGE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can run dldp compatible-mode local-mac command to configure the source MAC addresses for DLDP packets sent in DLDP compatible mode. This prevents the DLDP flapping due to discovery of multiple neighbors when the device needs to work with the following Huawei switches:

  • S8500

  • S7800

  • S6500

  • S5600 series switches

  • S5100-EI

  • S3900 series switches

  • S3500 series switches

  • S3100 series switches

Prerequisites

The DLDP compatible mode has been enabled using the dldp compatible-mode enable command.

Precautions

When the configuration is complete, the newly configured MAC address is used as the source MAC addresses of the sent DLDP packets.

Example

# Set the source MAC address of the DLDP packets sent by interface GE0/0/1 in DLDP compatible mode to 00e0-0000-9211.

<HUAWEI> system-view
[HUAWEI] dldp enable
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] dldp enable
[HUAWEI-GigabitEthernet0/0/1] dldp compatible-mode enable
[HUAWEI-GigabitEthernet0/0/1] dldp compatible-mode local-mac 00e0-0000-9211
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >