10-High Availability Configuration Examples

00-S12500_DLDP_Configuration_Examples

Chapters Download  (116.97 KB)

00-S12500_DLDP_Configuration_Examples
Title Size Download
00-S12500_DLDP_Configuration_Examples 116.97 KB

Introduction

This document provides DLDP configuration examples.

DLDP provides the following functions:

·     Monitor the link state of optical fibers or copper twisted pairs.

·     Detect whether the link is correctly connected at the link layer and whether the two ends can exchange packets correctly.

When DLDP detects a unidirectional link, it does one of the following to prevent network problems:

·     Automatically shuts down the ports involved.

·     Prompts you to shut down the ports (according to your port shutdown mode setting).

DLDP cooperates with physical layer protocols to monitor link status and avoid physical and logical unidirectional links.

Prerequisites

The configuration examples in this document were created and verified in a lab environment, and all the devices were started with the factory default configuration. When you are working on a live network, make sure you understand the potential impact of every command on your network.

This document assumes that you have basic knowledge of H3C DLDP.

Example: Automatically shutting down unidirectional links

Network requirements

As shown in Figure 1, Device A and Device B are connected with two fiber pairs.

Configure DLDP to automatically shut down the faulty port upon detecting a unidirectional link, and automatically bring up the port after you clear the fault.

Figure 1 Network diagram

 

Software version used

This configuration example was created and verified on S12500-CMW710-R7129.

Configuration restrictions and guidelines

When you configure DLDP to automatically shut down unidirectional links, follow these restrictions and guidelines:

·     DLDP is available only for Ethernet ports.

·     Enable DLDP globally and on each port.

·     Configure the full duplex mode for the ports at the two ends of the link, and configure the same speed for the two ports.

·     Before enabling DLDP, make sure optical fibers or copper twisted pairs are connected because DLDP can detect unidirectional links only when all links are physically connected.

Configuration procedures

Configuring Device A

# Enable DLDP globally.

<DeviceA> system-view

[DeviceA] dldp global enable

# Configure GigabitEthernet 3/0/1 to operate in full duplex mode and at 1000 Mbps, and enable DLDP on the port.

[DeviceA] interface gigabitethernet 3/0/1

[DeviceA-Gigabitethernet3/0/1] undo shutdown

[DeviceA-GigabitEthernet3/0/1] duplex full

[DeviceA-GigabitEthernet3/0/1] speed 1000

[DeviceA-GigabitEthernet3/0/1] dldp enable

[DeviceA-GigabitEthernet3/0/1] quit

# Configure GigabitEthernet 3/0/2 to operate in full duplex mode and at 1000 Mbps, and enable DLDP on the port.

[DeviceA] interface gigabitethernet 3/0/2

[DeviceA-Gigabitethernet3/0/2] undo shutdown

[DeviceA-GigabitEthernet3/0/2] duplex full

[DeviceA-GigabitEthernet3/0/2] speed 1000

[DeviceA-GigabitEthernet3/0/2] dldp enable

[DeviceA-GigabitEthernet3/0/2] quit

Configuring Device B

# Enable DLDP globally.

<DeviceB> system-view

[DeviceB] dldp global enable

# Configure GigabitEthernet 3/0/1 to operate in full duplex mode and at 1000 Mbps, and enable DLDP on it.

[DeviceB] interface gigabitethernet 3/0/1

[DeviceB-Gigabitethernet3/0/1] undo shutdown

[DeviceB-GigabitEthernet3/0/1] duplex full

[DeviceB-GigabitEthernet3/0/1] speed 1000

[DeviceB-GigabitEthernet3/0/1] dldp enable

[DeviceB-GigabitEthernet3/0/1] quit

# Configure GigabitEthernet 3/0/2 to operate in full duplex mode and at 1000 Mbps, and enable DLDP on it.

[DeviceB] interface gigabitethernet 3/0/2

[DeviceB-Gigabitethernet3/0/2] undo shutdown

[DeviceB-GigabitEthernet3/0/2] duplex full

[DeviceB-GigabitEthernet3/0/2] speed 1000

[DeviceB-GigabitEthernet3/0/2] dldp enable

[DeviceB-GigabitEthernet3/0/2] quit

Verifying the configuration

After the configurations are complete, you can use the display dldp command to display the DLDP configuration globally and on ports.

# Display the DLDP configuration globally and on all the DLDP-enabled ports of Device A.

[DeviceA] display dldp

 DLDP global status: Enabled

 DLDP advertisement interval: 5s

 DLDP authentication-mode: None

 DLDP unidirectional-shutdown mode: Auto

 DLDP delaydown-timer value: 1s

 Number of enabled ports: 2

 

Interface GigabitEthernet3/0/1

 DLDP port state: Bidirectional

 Number of the port’s neighbors: 1

  Neighbor MAC address: 0023-8956-3600

  Neighbor port index: 1

  Neighbor state: Confirmed

  Neighbor aged time: 11s

 

Interface GigabitEthernet3/0/2

 DLDP port state: Bidirectional

 Number of the port’s neighbors: 1

  Neighbor MAC address: 0023-8956-3600

  Neighbor port index: 2

  Neighbor state: Confirmed

  Neighbor aged time: 12s

The output shows that both GigabitEthernet 3/0/1 and GigabitEthernet 3/0/2 are in Bidirectional state, which means both links are bidirectional.

# Enable the monitoring of logs on the current terminal on Device A, and set the lowest level of the logs that can be output to the current terminal to 6.

[DeviceA] quit

<DeviceA> terminal monitor

<DeviceA> terminal logging level 6

The following log information is displayed on Device A:

<DeviceA>%Jul 11 17:40:31:089 2012 DeviceA IFNET/3/PHY_UPDOWN: GigabitEthernet3/0/1 link status is DOWN.

%Jul 11 17:40:31:091 2012 DeviceA IFNET/5/LINK_UPDOWN: Line protocol on the interface GigabitEthernet3/0/1 is DOWN.

%Jul 11 17:40:31:677 2012 DeviceA IFNET/3/PHY_UPDOWN: GigabitEthernet3/0/2 link status is DOWN.

%Jul 11 17:40:31:678 2012 DeviceA IFNET/5/LINK_UPDOWN: Line protocol on the interface GigabitEthernet3/0/2 is DOWN.

%Jul 11 17:40:38:544 2012 DeviceA IFNET/3/PHY_UPDOWN: GigabitEthernet3/0/1 link status is UP.

%Jul 11 17:40:38:836 2012 DeviceA IFNET/3/PHY_UPDOWN: GigabitEthernet3/0/2 link status is UP.

The output shows that the port status of both GigabitEthernet 3/0/1 and GigabitEthernet 3/0/2 is down and then up, but the link status of them is always down.

# Display the DLDP configuration globally and of all the DLDP-enabled ports.

<DeviceA> display dldp

 DLDP global status: Enabled

 DLDP advertisement interval: 5s

 DLDP authentication-mode: None

 DLDP unidirectional-shutdown mode: Auto

 DLDP delaydown-timer value: 1s

 Number of enabled ports: 2

 

Interface GigabitEthernet3/0/1

 DLDP port state: Unidirectional

 Number of the port’s neighbors: 0 (Maximum number ever detected: 1)

 

Interface GigabitEthernet3/0/2

 DLDP port state: Unidirectional

 Number of the port’s neighbors: 0 (Maximum number ever detected: 1)

The output shows that the DLDP port status of both GigabitEthernet 3/0/1 and GigabitEthernet 3/0/2 is unidirectional. Unidirectional indicates that DLDP detects unidirectional links on them and automatically shuts down the two ports.

# Remove the unidirectional condition.

The ports shut down by DLDP automatically recover, and Device A displays the following log information:

<DeviceA>%Jul 11 17:42:57:709 2012 DeviceA IFNET/3/PHY_UPDOWN: GigabitEthernet3/0/1 link status is DOWN.

%Jul 11 17:42:58:603 2012 DeviceA IFNET/3/PHY_UPDOWN: GigabitEthernet3/0/2 link status is DOWN.

%Jul 11 17:43:02:342 2012 DeviceA IFNET/3/PHY_UPDOWN: GigabitEthernet3/0/1 link status is UP.

%Jul 11 17:43:02:343 2012 DeviceA DLDP/6/DLDP_NEIGHBOR_CONFIRMED: A neighbor was confirmed on interface GigabitEthernet3/0/1. The neighbor's system MAC is 0023-8956-3600, and the port index is 1.

%Jul 11 17:43:02:344 2012 DeviceA DLDP/6/DLDP_LINK_BIDIRECTIONAL: DLDP detected a bidirectional link on interface GigabitEthernet3/0/1.

%Jul 11 17:43:02:353 2012 DeviceA IFNET/5/LINK_UPDOWN: Line protocol on the interface GigabitEthernet3/0/1 is UP.

%Jul 11 17:43:02:357 2012 DeviceA IFNET/3/PHY_UPDOWN: GigabitEthernet3/0/2 link status is UP.

%Jul 11 17:43:02:362 2012 DeviceA DLDP/6/DLDP_NEIGHBOR_CONFIRMED: A neighbor was confirmed on interface GigabitEthernet3/0/2. The neighbor's system MAC is 0023-8956-3600, and the port index is 2.

%Jul 11 17:43:02:362 2012 DeviceA DLDP/6/DLDP_LINK_BIDIRECTIONAL: DLDP detected a bidirectional link on interface GigabitEthernet3/0/2.

%Jul 11 17:43:02:368 2012 DeviceA IFNET/5/LINK_UPDOWN: Line protocol on the interface GigabitEthernet3/0/2 is UP.

The output shows that the port status and link status of both GigabitEthernet 3/0/1 and GigabitEthernet 3/0/2 are now up and their DLDP neighbors are determined. Both links are bidirectional.

Configuration files

·     Device A:

#

 dldp global enable

#

 interface GigabitEthernet3/0/1

 port link-mode bridge

 speed 1000

 duplex full

 dldp enable

#

interface GigabitEthernet3/0/2

 port link-mode bridge

 speed 1000

 duplex full

 dldp enable

#

·     Device B:

#

 dldp global enable

#

interface GigabitEthernet3/0/1

 port link-mode bridge

 speed 1000

 duplex full

 dldp enable

#

interface GigabitEthernet3/0/2

 port link-mode bridge

 speed 1000

 duplex full

 dldp enable

#

Example: Manually shutting down unidirectional links

Network requirements

As shown in Figure 2, Device A and Device B are connected with two fiber pairs.

Configure DLDP to detect unidirectional links. When a unidirectional link is detected, the administrator must manually shut down the port.

Figure 2 Network diagram

 

Requirements analysis

To manually shut down the faulty port, set the port shutdown mode to manual. The default port shutdown mode is auto.

Software version used

This configuration example was created and verified on S12500-CMW710-R7129.

Configuration restrictions and guidelines

When you configure DLDP to ask you to manually shut down unidirectional links, follow these restrictions and guidelines:

·     DLDP is available only for Ethernet ports.

·     To correctly configure DLDP on the device, you must enable DLDP globally and on each port.

·     For DLDP to operate correctly, configure the full duplex mode for the ports at the two ends of the link, and configure the same speed for the two ports.

·     DLDP can detect unidirectional links only after all links are physically connected. Before enabling DLDP, make sure optical fibers or copper twisted pairs are connected.

Configuration procedures

Configuring Device A

# Enable DLDP globally.

<DeviceA> system-view

[DeviceA] dldp global enable

# Configure GigabitEthernet 3/0/1 to operate in full duplex mode and at 1000 Mbps, and enable DLDP on the port.

[DeviceA] interface gigabitethernet 3/0/1

[DeviceA-GigabitEthernet3/0/1] undo shutdown

[DeviceA-GigabitEthernet3/0/1] duplex full

[DeviceA-GigabitEthernet3/0/1] speed 1000

[DeviceA-GigabitEthernet3/0/1] dldp enable

[DeviceA-GigabitEthernet3/0/1] quit

# Configure GigabitEthernet 3/0/2 to operate in full duplex mode and at 1000 Mbps, and enable DLDP on the port.

[DeviceA] interface gigabitethernet 3/0/2

[DeviceA-GigabitEthernet3/0/2] undo shutdown

[DeviceA-GigabitEthernet3/0/2] duplex full

[DeviceA-GigabitEthernet3/0/2] speed 1000

[DeviceA-GigabitEthernet3/0/2] dldp enable

[DeviceA-GigabitEthernet3/0/2] quit

# Set the port shutdown mode to manual.

[DeviceA] dldp unidirectional-shutdown manual

Configuring Device B

# Enable DLDP globally.

<DeviceB> system-view

[DeviceB] dldp global enable

# Configure GigabitEthernet 3/0/1 to operate in full duplex mode and at 1000 Mbps, and enable DLDP on it.

[DeviceB] interface gigabitethernet 3/0/1

[DeviceB-GigabitEthernet3/0/1] undo shutdown

[DeviceB-GigabitEthernet3/0/1] duplex full

[DeviceB-GigabitEthernet3/0/1] speed 1000

[DeviceB-GigabitEthernet3/0/1] dldp enable

[DeviceB-GigabitEthernet3/0/1] quit

# Configure GigabitEthernet 3/0/2 to operate in full duplex mode and at 1000 Mbps, and enable DLDP on it.

[DeviceB] interface gigabitethernet 3/0/2

[DeviceB-GigabitEthernet3/0/2] undo shutdown

[DeviceB-GigabitEthernet3/0/2] duplex full

[DeviceB-GigabitEthernet3/0/2] speed 1000

[DeviceB-GigabitEthernet3/0/2] dldp enable

[DeviceB-GigabitEthernet3/0/2] quit

# Set the port shutdown mode to manual.

[DeviceB] dldp unidirectional-shutdown manual

Verifying the configuration

After the configurations are complete, you can use the display dldp command to display the DLDP configuration globally and on ports.

# Display the DLDP configuration globally and on all the DLDP-enabled ports of Device A.

[DeviceA] display dldp

 DLDP global status: Enabled

 DLDP advertisement interval: 5s

 DLDP authentication-mode: None

 DLDP unidirectional-shutdown mode: Manual

 DLDP delaydown-timer value: 1s

 Number of enabled ports: 2

 

Interface GigabitEthernet3/0/1

 DLDP port state: Bidirectional

 Number of the port’s neighbors: 1

  Neighbor MAC address: 0023-8956-3600

  Neighbor port index: 1

  Neighbor state: Confirmed

  Neighbor aged time: 11s

 

Interface GigabitEthernet3/0/2

 DLDP port state: Bidirectional

 Number of the port’s neighbors: 1

  Neighbor MAC address: 0023-8956-3600

  Neighbor port index: 2

  Neighbor state: Confirmed

  Neighbor aged time: 12s

The output shows that both GigabitEthernet 3/0/1 and GigabitEthernet 3/0/2 are in Bidirectional state, which means both links are bidirectional.

# Enable the monitoring of logs on the current terminal on Device A, and set the lowest level of the logs that can be output to the current terminal to 6.

[DeviceA] quit

<DeviceA> terminal monitor

<DeviceA> terminal logging level 6

The following log information is displayed on Device A:

<DeviceA>%Jul 12 08:29:17:786 2012 DeviceA IFNET/3/PHY_UPDOWN: GigabitEthernet3/0/1 link status is DOWN.

%Jul 12 08:29:17:787 2012 DeviceA IFNET/5/LINK_UPDOWN: Line protocol on the interface GigabitEthernet3/0/1 is DOWN.

%Jul 12 08:29:17:800 2012 DeviceA IFNET/3/PHY_UPDOWN: GigabitEthernet3/0/2 link status is DOWN.

%Jul 12 08:29:17:800 2012 DeviceA IFNET/5/LINK_UPDOWN: Line protocol on the interface GigabitEthernet3/0/2 is DOWN.

%Jul 12 08:29:25:004 2012 DeviceA IFNET/3/PHY_UPDOWN: GigabitEthernet3/0/1 link status is UP.

%Jul 12 08:29:25:005 2012 DeviceA IFNET/5/LINK_UPDOWN: Line protocol on the interface GigabitEthernet3/0/1 is UP.

%Jul 12 08:29:25:893 2012 DeviceA IFNET/3/PHY_UPDOWN: GigabitEthernet3/0/2 link status is UP.

%Jul 12 08:29:25:894 2012 DeviceA IFNET/5/LINK_UPDOWN: Line protocol on the interface GigabitEthernet3/0/2 is UP.

The output shows that the port status of both GigabitEthernet 3/0/1 and GigabitEthernet 3/0/2 is down and then up.

# Display the DLDP configuration globally and of all the DLDP-enabled ports.

<DeviceA> display dldp

 DLDP global status: Enabled

 DLDP advertisement interval: 5s

 DLDP authentication-mode: None

 DLDP unidirectional-shutdown mode: Manual

 DLDP delaydown-timer value: 1s

 Number of enabled ports: 2

 

Interface GigabitEthernet3/0/1

 DLDP port state: Unidirectional

 Number of the port’s neighbors: 0 (Maximum number ever detected: 1)

 

Interface GigabitEthernet3/0/2

 DLDP port state: Unidirectional

 Number of the port’s neighbors: 0 (Maximum number ever detected: 1)

The output shows that the DLDP port status of both GigabitEthernet 3/0/1 and GigabitEthernet 3/0/2 is unidirectional. Unidirectional indicates that DLDP detects unidirectional links on them but does not shut down the two ports.

The unidirectional links are caused by cross-connected fibers. Manually shut down the two ports.

# Shut down GigabitEthernet 3/0/1.

<DeviceA> system-view

[DeviceA] interface gigabitethernet 3/0/1

[DeviceA-GigabitEthernet3/0/1] shutdown

The following log information is displayed on Device A:

[DeviceA-GigabitEthernet3/0/1]%Jul 12 08:34:23:717 2012 DeviceA IFNET/3/PHY_UPDOWN: GigabitEthernet3/0/1 link status is DOWN.

%Jul 12 08:34:23:718 2012 DeviceA IFNET/5/LINK_UPDOWN: Line protocol on the interface GigabitEthernet3/0/1 is DOWN.

%Jul 12 08:34:23:778 2012 DeviceA IFNET/3/PHY_UPDOWN: GigabitEthernet3/0/2 link status is DOWN.

%Jul 12 08:34:23:779 2012 DeviceA IFNET/5/LINK_UPDOWN: Line protocol on the interface GigabitEthernet3/0/2 is DOWN.

The output shows that the port status and link status of both GigabitEthernet 3/0/1 and GigabitEthernet 3/0/2 are now down.

# Shut down GigabitEthernet 3/0/2.

[DeviceA-GigabitEthernet3/0/1] quit

[DeviceA] interface gigabitethernet 3/0/2

[DeviceA-GigabitEthernet3/0/2] shutdown

Correct the fiber connections and bring up the two ports:

# Bring up GigabitEthernet 3/0/2.

[DeviceA-GigabitEthernet3/0/2] undo shutdown

The following log information is displayed on Device A:

[DeviceA-GigabitEthernet3/0/2]%Jul 12 08:46:17:677 2012 DeviceA IFNET/3/PHY_UPDOWN: GigabitEthernet3/0/2 link status is UP.

%Jul 12 08:46:17:678 2012 DeviceA IFNET/5/LINK_UPDOWN: Line protocol on the interface GigabitEthernet3/0/2 is UP.

%Jul 12 08:46:17:959 2012 DeviceA DLDP/6/DLDP_NEIGHBOR_CONFIRMED: A neighbor was confirmed on interface GigabitEthernet3/0/2. The neighbor's system MAC is 0023-8956-3600, and the port index is 2.

%Jul 12 08:46:17:959 2012 DeviceA DLDP/6/DLDP_LINK_BIDIRECTIONAL: DLDP detected a bidirectional link on interface GigabitEthernet3/0/2.

The output shows that the port status and link status of GigabitEthernet 3/0/2 are now up and its DLDP neighbors are determined. The link is bidirectional.

# Bring up GigabitEthernet 3/0/1.

[DeviceA-GigabitEthernet3/0/2] quit

[DeviceA] interface gigabitethernet 3/0/1

[DeviceA-GigabitEthernet3/0/1] undo shutdown

The following log information is displayed on Device A:

[DeviceA-GigabitEthernet3/0/1]%Jul 12 08:48:25:952 2012 DeviceA IFNET/3/PHY_UPDOWN: GigabitEthernet3/0/1 link status is UP.

%Jul 12 08:48:25:952 2012 DeviceA DLDP/6/DLDP_NEIGHBOR_CONFIRMED: A neighbor was confirmed on interface GigabitEthernet3/0/1. The neighbor's system MAC is 0023-8956-3600, and the port index is 1.

%Jul 12 08:48:25:953 2012 DeviceA IFNET/5/LINK_UPDOWN: Line protocol on the interface GigabitEthernet3/0/1 is UP.

%Jul 12 08:48:25:953 2012 DeviceA DLDP/6/DLDP_LINK_BIDIRECTIONAL: DLDP detected a bidirectional link on interface GigabitEthernet3/0/1.

The output shows that the port status and link status of GigabitEthernet 3/0/1 are now up and its DLDP neighbors are determined. The link is bidirectional.

Configuration files

·     Device A:

#

 dldp global enable

 dldp unidirectional-shutdown manual

#

 interface GigabitEthernet3/0/1

 port link-mode bridge

 speed 1000

 duplex full

 dldp enable

#

interface GigabitEthernet3/0/2

 port link-mode bridge

 speed 1000

 duplex full

 dldp enable

#

·     Device B:

#

 dldp global enable

 dldp unidirectional-shutdown manual

#

interface GigabitEthernet3/0/1

 port link-mode bridge

 speed 1000

 duplex full

 dldp enable

#

interface GigabitEthernet3/0/2

 port link-mode bridge

 speed 1000

 duplex full

 dldp enable

#

Related documentation

·     H3C S12500 Routing Switch Series High Availability Configuration Guide

·     H3C S12500 Routing Switch Series High Availability Command Reference