13-DLDP Commands
Table of Contents
1 DLDP Configuration Commands··············································································································1-1
DLDP Configuration Commands·············································································································1-1
display dldp······································································································································1-1
dldp ··················································································································································1-2
dldp authentication-mode ················································································································1-3
dldp interval ·····································································································································1-4
dldp reset·········································································································································1-5
dldp unidirectional-shutdown···········································································································1-5
dldp work-mode ·······························································································································1-6
dldp delaydown-timer ······················································································································1-7
i
1
DLDP Configuration Commands
Currently, only S3100-EI series Ethernet switches support the DLDP feature.
DLDP Configuration Commands
display dldp
Syntax
display dldp { unit-id | interface-type interface-number }
View
Any view
Parameters
unit-id: Unit number of a device.
interface-type: Port type.
interface-number: Port number.
Description
Use the display dldp command to display the DLDP configuration of a unit or a port.
Examples
# Display information about all DLDP-enabled ports on unit 1.
<Sysname> display dldp 1
dldp interval 10
dldp work-mode enhance
dldp authentication-mode none
dldp unidirectional-shutdown manual
dldp delaydown-timer 1
The port number of unit 1 with DLDP is 1.
interface GigabitEthernet1/1/1
dldp port state : advertisement
dldp link state : up
The neighbor number of the port is 1.
1-1
neighbor mac address : 000f-e20f-7201
neighbor port index : 98
neighbor state : two way
neighbor aged time : 24
Table 1-1 Description on the fields of the display dldp command
Field
Description
dldp interval
Interval for sending DLDP advertisement packets (in
seconds)
dldp work-mode
DLDP work mode (enhance or normal)
dldp authentication-mode
DLDP authentication mode (none, simple, or md5)
password
Password for DLDP authentication
dldp unidirectional-shutdown
DLDP action to be performed on detecting a
unidirectional link (auto or manual)
dldp delaydown-timer
Setting of the DelayDown timer
The port number of unit 1 with DLDP
Number of the DLDP-enabled ports on unit 1
interface GigabitEthernet1/1/1
Port type and port number
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 neighbor ports
neighbor mac address
MAC address of a neighbor port
neighbor port index
Neighbor port index
neighbor state
Neighbor state (unknown, one way, or two way)
neighbor aged time
Neighbor aging time
dldp
Syntax
dldp { enable | disable }
View
System view/Ethernet port view
Parameters
None
Description
In system view:
Use the dldp enable command to enable DLDP on all optical ports of the switch.
Use the dldp disable command to disable DLDP on all optical ports of the switch.
In Ethernet port view:
1-2
Use the dldp enable command to enable DLDP on the current port.
Use the dldp disable command to disable DLDP on the current port.
The dldp command can apply to a non-optical port as well as an optical port.
By default, DLDP is disabled.
When you use the dldp enable/dldp disable command in system view to enable/disable DLDP on all
optical ports of the switch, the configuration takes effect on the existing optical ports, instead of those
added subsequently.
Examples
# Enable DLDP on all optical ports of the switch.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] dldp enable
# Enable DLDP on fiber-optic port GigabitEthernet 1/1/1.
[Sysname] interface GigabitEthernet 1/1/1
[Sysname-GigabitEthernet1/1/1] dldp enable
dldp authentication-mode
Syntax
dldp authentication-mode { none | simple simple-password | md5 md5-password }
undo dldp authentication-mode
View
System view
Parameters
none: Sets the authentication mode on the port to none (Performs no authentication on the port).
simple: Sets the authentication mode on the port to plain text.
simple-password: Plain text authentication password, a string in plain text consisting of 1 to 16
characters.
md5: Sets the authentication mode on the port to MD5.
md5-password: MD5 authentication password, a string in plain text consisting of 1 to 16 characters or a
string in cipher text corresponding to the string in plain text.
Description
Use the dldp authentication-mode command to set the DLDP authentication mode and password on
the current port.
1-3
Use the undo dldp authentication-mode to remove the DLDP authentication mode and password on
the current port.
By default, the authentication mode on the current port is none.
Note that:
When you configure a DLDP authentication mode and authentication password on a port, make sure
that the same DLDP authentication mode and password are set on the ports connected with a fiber
cable or copper twisted pair. Otherwise, DLDP authentication fails. DLDP cannot work before DLDP
authentication succeeds.
Related commands: dldp unidirectional-shutdown.
Examples
# Set the DLDP authentication mode and password to plain text and abc respectively on the ports
connected with a fiber cable or copper twisted pair between Switch A and Switch B.
z
Configure Switch A
<SwitchA> system-view
System View: return to User View with Ctrl+Z.
[SwitchA] dldp authentication-mode simple abc
z
Configure Switch B
<SwitchB> system-view
System View: return to User View with Ctrl+Z.
[SwitchB] dldp authentication-mode simple abc
dldp interval
Syntax
dldp interval timer-value
undo dldp interval
View
System view
Parameters
timer-value: Interval between sending advertisement packets in seconds, in the range of 1 to 100. It is 5
by default.
Description
Use the dldp interval command to set the interval between sending advertisement packets for all
DLDP-enabled ports in the advertisement state.
Use the undo dldp interval command to restore the interval to the default value.
By default, the interval between sending advertisement packets is 5 seconds.
A device in Advertisement state periodically sends out Advertisement packets to notify the neighbors of
its existence. Meanwhile, the device also retrieves neighbor information from the received
Advertisement packets and maintains its own neighbor entries. When the device receives an
Advertisement packet from a device that does not match any of its neighbor entries, it transits from
Advertisement state to Probe state and sends DLDP Probe packets to detect unidirectional links.
1-4
Note that:
z
The interval takes effect on all DLDP-enabled ports.
z
It is recommended that you set the interval shorter than one-third of the STP convergence time
(usually 30 seconds). If too long an interval is set, an STP loop may occur before DLDP shuts down
unidirectional links. On the contrary, if too short an interval is set, network traffic increases,
unnecessarily consuming port bandwidth.
Examples
# Set the interval between sending advertisement packets to 6 seconds for all DLDP-enabled ports in
the advertisement state.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] dldp interval 6
dldp reset
Syntax
dldp reset
View
System view/Ethernet port view
Parameters
None
Description
In system view:
Use the dldp reset command to reset the DLDP status of all the ports disabled by DLDP.
In Ethernet port view:
Use the dldp reset command to reset the DLDP status of the current port disabled by DLDP.
After the dldp reset command is executed, the DLDP status of a port changes from disable to active
and DLDP restarts to detect the link status of the fiber cable or copper twisted pair.
Related commands: dldp and dldp unidirectional-shutdown.
Examples
# Reset the DLDP status of all the ports disabled by DLDP.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] dldp reset
dldp unidirectional-shutdown
Syntax
dldp unidirectional-shutdown { auto | manual }
undo dldp unidirectional-shutdown
1-5
View
System view
Parameters
auto: Disables automatically the corresponding port when DLDP detects an unidirectional link or finds
in the enhanced mode that the peer port is down.
manual: Generates log and traps and prompts the user to disable manually the corresponding port
when DLDP detects an unidirectional link or finds in the enhanced mode that the peer port is down. After
the port is disabled, it stops sending and receiving DLDP packets.
Description
Use the dldp unidirectional-shutdown command to set the DLDP handling mode after a unidirectional
link is found.
Use the undo dldp unidirectional-shutdown command to restore the default DLDP handling mode
after a unidirectional link is found.
By default, the DLDP handling mode after a unidirectional link is found is auto.
Related commands: dldp work-mode.
Examples
# Configure DLDP to automatically disable the corresponding port when a unidirectional link is found.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] dldp unidirectional-shutdown auto
dldp work-mode
Syntax
dldp work-mode { enhance | normal }
undo dldp work-mode
View
System view
Parameters
enhance: Configures DLDP to work in enhanced mode. In this mode, DLDP detects whether neighbors
exist when neighbor tables are aging.
normal: Configures DLDP to work in normal mode. In this mode, DLDP does not detect whether
neighbors exist when neighbor tables are aging.
Description
Use the dldp work-mode command to set the DLDP operating mode.
Use the undo dldp work-mode command to restore the default DLDP operating mode.
By default, DLDP works in normal mode.
1-6
z
When DLDP works in normal mode, the system can identify only the unidirectional link caused by
fiber cross-connection.
z
When the DLDP protocol works in enhanced mode, the system can identify two types of
unidirectional links: one is caused by fiber cross-connection and the other is caused by one fiber
being not connected or being broken. To detect unidirectional links that are of the latter type, you
need to configure the ports to operate at specific speed and in full duplex mode. Otherwise, DLDP
cannot take effect.
Examples
# Configure DLDP to work in enhanced mode.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] dldp work-mode enhance
dldp delaydown-timer
Syntax
dldp delaydown-timer delaydown-time
undo dldp delaydown-timer
View
System view
Parameters
delaydown-time: Delaydown timer to be set (in seconds). This argument ranges from 1 to 5.
Description
Use the dldp delaydown-timer command to set the delaydown timer.
Use the undo dldp delaydown-timer command to restore the default delaydown timer setting.
By default, the DelayDown timer is set to 1 second. A period of 5 seconds is recommended.
When a device in the active, advertisement, or probe DLDP state receives a port down message, it
does not remove the corresponding neighbor immediately, nor does it transit to the inactive state.
Instead, it transits to the delaydown state and starts the DelayDown timer. In delaydown state, the
device retains the related DLDP neighbor information. When the DelayDown timer expires, the DLDP
neighbor information is removed.
1-7
Examples
# Set the delaydown timer to 5 seconds.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] dldp delaydown-timer 5
1-8
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement