H3C S3600 Series EPON OLT Switches Command Manual-Release 3103-6W100

09-DLDP-Fiber Backup Commands

Chapters Download  (67.22 KB)

09-DLDP-Fiber Backup Commands


DLDP Configuration Commands

DLDP Configuration Commands

display dldp

Syntax

display dldp [ interface-type interface-number ]

View

Any view

Default Level

1: Monitor level

Parameters

interface-type interface-number: Port type and port number.

Description

Use the display dldp command to display the DLDP configuration of a port.

If you do not provide the interface-type or interface-number arguments, this command displays the DLDP configuration of all the DLDP-enabled ports.

Examples

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

<Sysname> display dldp

 DLDP global status : enable

 DLDP interval : 5s

 DLDP work-mode : enhance

 DLDP authentication-mode : simple, password is 123

 DLDP unidirectional-shutdown : auto

 DLDP delaydown-timer : 2s

 The number of enabled ports is 2.

 

Interface GigabitEthernet1/1/2

 DLDP port state : advertisement

 DLDP link state : up

 The neighbor number of the port is 1.

    Neighbor mac address : 0000-0000-0100

    Neighbor port index : 79

    Neighbor state : two way

    Neighbor aged time : 13

 

Interface GigabitEthernet1/1/4

 DLDP port state : advertisement

 DLDP link state : up

 The neighbor number of the port is 1.

    Neighbor mac address : 0000-0000-1100

    Neighbor port index : 81

    Neighbor state : two way

    Neighbor aged time : 12

# Display the DLDP configuration of GigabitEthernet 1/1/2.

<Sysname> display dldp gigabitethernet 1/1/2

Interface GigabitEthernet1/1/2

 DLDP port state : advertisement

 DLDP link state : up

 The neighbor number of the port is 1.

    Neighbor mac address : 0000-0000-0100

    Neighbor port index : 79

    Neighbor state : two way

    Neighbor aged time : 13

Table 1-1 display dldp command output description

Field

Description

DLDP global status

Global DLDP state (enable or disable)

DLDP interval

Interval for sending Advertisement packets (in seconds)

DLDP work-mode

DLDP mode (enhance or normal)

DLDP authentication-mode

DLDP authentication mode (none, simple, or md5)

password

Password for DLDP authentication

DLDP unidirectional-shutdown

Port shutdown mode (auto or manual)

DLDP delaydown-timer

Setting of the DelayDown timer

The number of enabled ports

Number of the DLDP-enabled ports

Interface

Index of a DLDP-enabled port

DLDP port state

DLDP state on a port (initial, inactive, active, advertisement, probe, disable, or delaydown)

DLDP link state

Port state (up or down)

The neighbor number of the port

Number of the neighbors of a port

Neighbor mac address

MAC address of a neighbor

Neighbor port index

Neighbor port index

Neighbor state

Neighbor state (unknown, one way, or two way)

Neighbor aged time

Neighbor aging time

 

display dldp statistics

Syntax

display dldp statistics [ interface-type interface-number ]

View

Any view

Default Level

1: Monitor level

Parameters

interface-type interface-number: Port type and port number.

Description

Use the display dldp statistics command to display the statistics on the DLDP packets passing through a port.

If you do not provide the interface-type or interface-number argument, this command displays the statistics on the DLDP packets passing through all the DLDP-enabled ports.

Examples

# Display the statistics on the DLDP packets passing through all the DLDP-enabled ports.

<Sysname> display dldp statistics

Interface GigabitEthernet1/1/2

 Packets sent : 6

 Packets received : 5

 Invalid packets received : 2

 Loop packets received : 0

 Authentication failed packets received : 0

 Valid packets received : 3

 

Interface GigabitEthernet1/1/4

 Packets sent : 7

 Packets received : 7

 Invalid packets received : 3

 Loop packets received : 0

 Authentication failed packets received : 0

 Valid packets received : 4

# Display the statistics on the DLDP packets passing through GigabitEthernet1/1/2.

<Sysname> display dldp statistics gigabitethernet 1/1/2

Interface GigabitEthernet1/1/2

 Packets sent : 6

 Packets received : 5

 Invalid packets received : 2

 Loop packets received : 0

 Authentication failed packets received : 0

 Valid packets received : 3

Table 1-2 display dldp statistics command output description

Field

Description

Interface

Port index

Packets sent

Total number of DLDP packets sent

Packets received

Total number of DLDP packets received

Invalid packets received

Number of the invalid packets received

Loop packets received

Number of the loopback packets received

Authentication failed packets received

Number of the received packets that failed to pass the authentication

Valid packets received

Number of the valid packets received

 

dldp authentication-mode

Syntax

dldp authentication-mode { md5 md5-password | none | simple simple-password }

undo dldp authentication-mode

View

System view

Default Level

2: System level

Parameters

md5 md5-password: Specifies to perform MD5 authentication and sets the password. The md5-password argument is the password, a string of 1 to 16 characters or a 24-bit string. The former indicates a plain text password and the latter indicates a cipher text password. Note that this argument is case-sensitive.

None: Specifies not to perform authentication.

simple simple-password: Specifies to perform plain text authentication and sets the password. The simple-password argument is the password, a case-sensitive string of 1 to 16 characters.

Description

Use the dldp authentication-mode command to configure DLDP authentication.

Use the undo dldp authentication-mode command to restore the default.

By default, DLDP authentication is not performed.

To enable DLDP to operate properly, make sure the DLDP authentication modes and the passwords of the both sides of a link are the same.

Examples

# Configure to perform plain text authentication, setting the password as abc (assuming that Device A and Device B are connected by the DLDP link).

l          Configuration on Device A

<DeviceA> system-view

[DeviceA] dldp authentication-mode simple abc

l          Configuration on Device B

<DeviceB> system-view

[DeviceB] dldp authentication-mode simple abc

dldp delaydown-timer

Syntax

dldp delaydown-timer time

undo dldp delaydown-timer

View

System view

Default Level

2: System level

Parameters

Time: Setting of the DelayDown timer, in the range 1 to 5 (in seconds).

Description

Use the dldp delaydown-timer command to set the DelayDown timer.

Use the undo dldp delaydown-timer command to restore the default.

By default, the setting of the DelayDown timer is 1 second.

Note that these two commands apply to all the DLDP-enabled ports.

Examples

# Set the DelayDown timer to 2 seconds.

<Sysname> system-view

[Sysname] dldp delaydown-timer 2

dldp enable

Syntax

dldp enable

undo dldp enable

View

System view, Ethernet port view, port group view

Default Level

2: System level

Parameters

None

Description

Use the dldp enable command to enable DLDP.

Use the undo dldp enable command to disable DLDP.

When executed in system view, these two commands enables/disables DLDP globally; when executed in Ethernet port view, these two commands enables/disables DLDP on the current port; when executed in port group view, these two commands enables/disables DLDP on all the ports in the port group.

By default, DLDP is disabled globally or on a port.

 

l          These two commands are applicable to Layer 2 Ethernet ports, including optical ports and electrical ports.

l          DLDP can take effect only when it is enabled both globally and on a port.

 

Examples

# Enable DLDP globally.

<Sysname> system-view

[Sysname] dldp enable

# Enable DLDP on GigabitEthernet 1/1/2.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/1/2

[Sysname-GigabitEthernet1/1/2] dldp enable

dldp interval

Syntax

dldp interval time

undo dldp interval

View

System view

Default Level

2: System level

Parameters

time: Interval for sending Advertisement packets, in the range 1 to 100 (in seconds).

Description

Use the dldp interval command to set the interval for sending Advertisement packets.

Use the undo dldp interval command to restore the default.

By default, the interval for sending Advertisement packets is 5 seconds.

Note that:

l          These two commands apply to all the DLDP-enabled ports.

l          Set the interval for sending Advertisement packets to a value not longer than one-third of the STP convergence time. If the interval is too long, STP loops may occur before unidirectional links are torn down; if the interval is too short, network traffic may increase in vain due to excessive Advertisement packets.

Examples

# Set the interval for sending Advertisement packets to 20 seconds.

<Sysname> system-view

[Sysname] dldp interval 20

dldp reset

Syntax

dldp reset

View

System view, Ethernet port view, port group view

Default Level

2: System level

Parameters

None

Description

Use the dldp reset command to reset DLDP state for ports shut down by DLDP to enable them to perform unidirectional link detect.

When executed in system view, this command applies to all the ports shut down by DLDP; when executed in Ethernet port view, this command applies to the current port; when executed in port group view, this command applies to all the ports in the port group shut down by DLDP.

Related commands: dldp enable, dldp unidirectional-shutdown.

Examples

# Reset DLDP state for all the ports shut down by DLDP.

<Sysname> system-view

[Sysname] dldp reset

# Reset DLDP state for GigabitEthernet 1/1/2 (assuming that GigabitEthernet 1/1/2 is shut down by DLDP).

<Sysname> system-view

[Sysname] interface gigabitethernet 1/1/2

[Sysname-GigabitEthernet1/1/2] dldp reset

dldp unidirectional-shutdown

Syntax

dldp unidirectional-shutdown { auto | manual }

undo dldp unidirectional-shutdown

View

System view

Default Level

2: System level

Parameters

auto: Sets the port shutdown mode as auto mode, where, when a unidirectional link is detected, the port involved is shut down by DLDP.

manual: Sets the port shutdown mode as manual mode, where, when a unidirectional link is detected, DLDP prompts you to shut down the involved port instead of doing so automatically.

Description

Use the dldp unidirectional-shutdown command to set the port shutdown mode.

Use the undo dldp unidirectional-shutdown command to restore the default.

By default, the port shutdown mode is auto mode.

Related commands: dldp work-mode.

Examples

# Set the port shutdown mode as auto mode.

<Sysname> system-view

[Sysname] dldp unidirectional-shutdown auto

dldp work-mode

Syntax

dldp work-mode { enhance | normal }

undo dldp work-mode

View

System view

Default Level

2: System level

Parameters

enhance: Specifies the enhanced DLDP mode. When a device operates in this mode and a neighbor entry it maintains expires, the device detects the neighbor before removing the neighbor entry.

normal: Specifies the normal DLDP mode. When a device operates in this mode and a neighbor entry it maintains expires, the device removes the neighbor entry directly.

Description

Use the dldp work-mode command to set the DLDP mode.

Use the undo dldp work-mode command to restore the default DLDP mode.

By default, a device operates in normal DLDP mode.

Note that:

l          In normal DLDP mode, only fiber cross-connected unidirectional links can be detected.

l          In enhanced DLDP mode, two types of unidirectional links can be detected. One is fiber cross-connected links. The other refers to fiber pairs with one fiber not connected or disconnected.

Examples

# Configure the device to operate in enhanced DLDP mode.

<Sysname> system-view

[Sysname] dldp work-mode enhance

reset dldp statistics

Syntax

reset dldp statistics [ interface-type interface-number ]

View

User view

Default Level

1: Monitor level

Parameters

interface-type interface-number: Port type and port number.

Description

Use the reset dldp statistics command to clear the statistics on DLDP packets passing through a port.

If you do not provide the interface-type or interface-number argument, this command clears the statistics on the DLDP packets passing through all the DLDP-enabled ports.

Examples

# Clear the statistics on the DLDP packets passing through all the DLDP-enabled ports.

<Sysname> reset dldp statistics


Fiber Backup Configuration Commands

display fiber-backup group

Syntax

display fiber-backup group { all | group-number }

View

Any view

Default Level

2: System level

Parameters

all: Specifies all the fiber backup groups.

group-number: Fiber backup group number, in the range 1 to 80.

Description

Use the display fiber-backup group command to display the information of the member OLT ports, their roles and states in the specified or all fiber backup groups.

Examples

# Display the information of the member OLT ports, their roles and states in fiber backup group 1.

<Sysname> display fiber-backup group 1

 fiber backup group 1 information:

 Member         Role       State

----------------------------------

 Olt1/0/1       MASTER     ACTIVE

 Olt1/0/2       SLAVE      READY

Table 2-1 display fiber-backup group command output description

Field

Description

fiber backup group 1 information:

Information about fiber backup group 1

Member

Member port information of the fiber backup group

Role

Role of the OLT port in the backup group:

l      MASTER: master port

l      SLAVE: slave port

State

OLT port state:

l      ACTIVE: The master port is active (the chip is active and the optical module is plugged in).

l      READY: The slave port is ready and a master-slave switchover can be performed.

l      DOWN: Any other condition.

 

fiber-backup group

Syntax

fiber-backup group group-number

undo fiber-backup group group-number

View

FTTH view

Default Level

2: System level

Parameters

group-number: Fiber backup group number, in the range 1 to 80.

Description

Use the fiber-backup group command to create a fiber backup group and enter fiber backup group view or directly enter fiber backup group view if the fiber backup group already exists.

Use the undo fiber-backup group command to delete a fiber backup group.

 

You can only delete a fiber backup group without any member ports.

 

Examples

# Create fiber backup group 1 and enter fiber backup group view.

<Sysname> system-view

[Sysname] ftth

[Sysname-ftth] fiber-backup group 1

 Create group 1 successfully.

[Sysname-fiber-group1]

group member

Syntax

group member interface-type interface-number

undo group member interface-type interface-number

View

Fiber backup group view

Default Level

2: System level

Parameters

interface-type: Port type. It is OLT

interface-number: OLT port number.

Description

Use the group member command to add an OLT port to a fiber backup group (the group must exist).

Use the undo group member command to remove an OLT port from a fiber backup group.

Related commands: fiber-backup group.

Examples

# In fiber backup group view, add OLT 1/0/1 to fiber backup group 1.

<Sysname> system-view

[Sysname] ftth

[Sysname-ftth] fiber-backup group 1

Create group ID successfully.

[Sysname-fiber-group1] group member olt1/0/1

port fiber-backup group

Syntax

port fiber-backup group group-number

undo port fiber-backup group

View

OLT port view

Default Level

2: System level

Parameters

group-number: Fiber backup group number, in the range 1 to 80.

Description

Use the port fiber-backup group command to add the OLT port to the specified fiber backup group (the group must exist).

Use the undo group member command to remove the OLT port from the fiber backup group.

Related commands: fiber-backup group.

Examples

# In OLT port view, add OLT 1/0/1 to fiber backup group 1.

<Sysname> system-view

[Sysname] ftth

[Sysname-ftth] fiber-backup group 1

Create group ID successfully.

[Sysname-fiber-group1] quit

[Sysname] interface olt 1/0/1

[Sysname-Olt1/0/1] port fiber-backup group 1

port switch-over

Syntax

port switch-over

View

Fiber backup group view

Default Level

2: System level

Parameters

None

Description

Use the port switch-over command to perform a master/slave switchover between the two OLT ports in the fiber backup group.

After this command is executed, the original master OLT port becomes the new slave, while the original slave OLT port becomes the new master.

Note that the slave OLT must be in the ready state for a switchover to happen.

Related commands: display fiber-backup group.

Examples

# Perform a manual master/slave switchover between the two OLT ports in fiber backup group 1.

<Sysname> system-view

[Sysname] ftth

[Sysname-ftth] fiber-backup group 1

[Sysname-fiber-group1] port switch-over

 

H3C reserves the right to modify its collaterals without any prior notice. For the latest information of the collaterals, please consult H3C sales or call 400 hotline.