Syntax
display ndp
[ interface interface-list ]
View
Any view
Parameters
interface
interface-list: Specifies a port list. You need to
provide the interface-list argument in the form of { interface-type
interface-number [ to interface-type interface-number ] } &<1-10>,
where to is used to specify a port range, and &<1-10> means
that you can provide up to ten port indexes/port index ranges for this
argument. The interface-number argument is in the format of unit ID/slot
number/port number.
Description
Use the display ndp command to
display all NDP configuration and operating information, including the global
NDP status, the interval to send NDP packets, the holdtime of NDP information,
and the NDP status and neighbor information on all ports.
If executed with the interface
keyword, the display ndp command will display the NDP status of the
specified interfaces and the related information of the peer device. If
executed without the interface keyword, the command will display the
global NDP configuration information and the statistics on NDP packets received
on and sent by each port.
Examples
# Display all NDP configuration and
operating information.
<aaa_0.Sysname> display ndp
Neighbor Discovery Protocol
is enabled.
Neighbor Discovery Protocol
Ver: 1, Hello Timer: 60(s), Aging Timer: 180(s)
Interface: GigabitEthernet1/0/1
Status: Enabled, Pkts Snd:
15835, Pkts Rvd: 2879, Pkts Err: 0
Interface: GigabitEthernet1/0/2
Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0
Interface: GigabitEthernet1/0/3
Status: Enabled, Pkts Snd:
0, Pkts Rvd: 0, Pkts Err: 0
……(Omitted)
# Display NDP information about GigabitEthernet
1/0/1.
<aaa_0.Sysname>
display ndp interface GigabitEthernet 1/0/1
Interface: GigabitEthernet1/0/1
Status: Enabled, Pkts Snd:
15835, Pkts Rvd: 2879, Pkts Err: 0
Neighbor 1: Aging Time:
147(s)
MAC Address : 000f-e20f-1234
Port Name : GigabitEthernet1/0/1
Software Ver: V100R002B01D001
Device Name : Sysname S5600
Port
Duplex : AUTO
Product Ver : 5600
Table 1-1
Description on the fields of the two commands
|
Field
|
Description
|
|
Neighbor Discovery Protocol is enabled
|
NDP is enabled globally on the switch.
|
|
Neighbor Discovery Protocol Ver: 1
|
NDP version 1 is running.
|
|
Hello Timer
|
Interval for the switch to send NDP
packets, which is configured through the ndp timer hello command
|
|
Aging Timer
|
Holdtime for neighbors to keep the NDP
information of the switch, which is configured through the ndp timer aging
command
|
|
Interface
|
Port index, used to identify a port
|
|
Status
|
NDP state on the port (enabled/disabled)
|
|
Pkts Snd:
|
Number of NDP packets sent by the port
|
|
Pkts Rvd:
|
Number of NDP packets received by the
port
|
|
Pkts Err:
|
Number of error NDP packets received by
the port
|
|
Neighbor 1: Aging Time
|
Holdtime for this switch to keep the NDP
information of the neighbor connected to the port
|
|
MAC Address
|
MAC address of the neighbor device
|
|
Port name
|
Port name of the neighbor device
|
|
Software Ver
|
Software version of the neighbor device
|
|
Device Name
|
Device name of the neighbor device
|
|
Port Duplex
|
Port (full/half) duplex mode of the
neighbor device
|
|
Product Ver
|
Product version of the neighbor device
|
Syntax
ndp enable [
interface interface-list ]
undo ndp enable [ interface interface-list ]
View
System view, Ethernet port view
Parameters
interface-list: Ethernet port list, in the format of { interface-type interface-number
[ to interface-type interface-number ] } &<1-10>, where
to is used to specify a port range, and &<1-10> means that you
can provide up to ten port indexes/port index ranges for this argument. The interface-number
argument is in the format of unit ID/slot number/port number.
Description
Use the ndp enable command to enable
NDP globally or on a port.
Use the undo ndp enable command to
disable NDP globally or on a port.
If you execute the ndp enable
command in system view without the interface keyword specified, NDP will
be enabled globally; if you specify the interface keyword in the
command, NDP will be enabled on the specified ports. In Ethernet port view, the
interface keyword is unavailable, and execution of the command will
enable NDP on the current port only.
By default, NDP is enabled both globally
and on ports.
Note that NDP can take effect on a port only
when NDP is enabled both globally and on the port.
Examples
# Enable NDP globally, and then enable NDP
on port GigabitEthernet 1/0/1.
<Sysname> system-view
System View: return to User View
with Ctrl+Z.
[Sysname] ndp enable
[Sysname] interface GigabitEthernet
1/0/1
[Sysname-GigabitEthernet1/0/1]
ndp enable
Syntax
ndp timer aging aging-in-seconds
undo ndp timer aging
View
System view
Parameters
aging-in-seconds: Holdtime of the NDP information, ranging from 5 to 255 seconds.
Description
Use the ndp timer aging command to
set the holdtime of the NDP information. This command specifies how long an adjacent
device should hold the NDP neighbor information received from the local switch
before discarding the information.
Use the undo timer aging command to
restore the default holdtime of NDP information.
By default, the holdtime of NDP information
is 180 seconds.
You can specify how long the adjacent
devices should hold the NDP information received from the local switch. When an
adjacent device receives an NDP packet from the local switch, it learns how
long it should keep the NDP information of the switch according to the holdtime
carried in the NDP packet, and discards the NDP information when the holdtime
expires.
Note that NDP information holdtime should
be longer than the interval between sending NDP packets. Otherwise, a neighbor
entry will be generated and age out frequently, resulting in instability of the
NDP port neighbor table.
Examples
# Set the holdtime of the NDP information
sent by the switch to 60 seconds.
<Sysname> system-view
System View: return to User View
with Ctrl+Z.
[Sysname] ndp timer aging 60
Syntax
ndp timer hello timer-in-seconds
undo ndp timer hello
View
System view
Parameters
timer-in-seconds: Interval between sending NDP packets, ranging from 5 to 254
seconds.
Description
Use the ndp timer hello command to
set the interval between sending NDP packets.
Use the undo ndp timer hello command
to restore the default interval.
By default, this interval is 60 seconds.
A switch should update the NDP information
of its neighbors regularly, so that the switch can get the updated information
of the neighbors in time. You can use the ndp timer hello command to specify
the interval at which the switch sends hello packets to its neighbors for NDP
information update.
Note that NDP information holdtime should
be longer than the interval between sending NDP packets. Otherwise, a neighbor
entry will be generated and age out frequently, resulting in instability of the
NDP port neighbor table.
Examples
# Set the interval between sending NDP
packets to 80 seconds.
<Sysname> system-view
System View: return to User View
with Ctrl+Z.
[Sysname] ndp timer hello 80
Syntax
reset ndp statistics [ interface interface-list ]
View
User view
Parameters
interface-list: Ethernet port list, in the format of { interface-type interface-number
[ to interface-type interface-number ] } &<1-10>, where
to is used to specify a port range, and &<1-10> means that you
can provide up to ten port indexes/port index ranges for this argument. The
interface-number argument is in the format of unit ID/slot number/port number.
Description
Use the reset ndp statistics command
to clear the NDP statistics on specific ports. When executing the command, if
you specify the interface keyword, the command will clear NDP statistics
on the specified ports; if you do not specify the interface keyword, the
command will clear NDP statistics on all ports.
You can use the display ndp command
to view the NDP statistics before and after the execution of the reset ndp
statistics command to verify the execution result.
Examples
# Display the NDP statistics on port GigabitEthernet
1/0/6.
<Sysname> display ndp interface
GigabitEthernet 1/0/6
Interface: GigabitEthernet1/0/6
Status: Enabled, Pkts Snd: 1,
Pkts Rvd: 2, Pkts Err: 0
# Clear the NDP statistics on port GigabitEthernet
1/0/6.
<Sysname> reset ndp
statistics interface GigabitEthernet 1/0/6
# Re-display the NDP statistics on port GigabitEthernet
1/0/6.
<Sysname> display ndp interface
ethernet 1/0/6
Interface: GigabitEthernet1/0/6
Status: Enabled, Pkts Snd: 0,
Pkts Rvd: 0, Pkts Err: 0
Syntax
display ntdp
View
Any view
Parameters
None
Description
Use the display ntdp command to
display the global NTDP information.
The displayed information includes topology
collection range (hop count), topology collection interval (NTDP timer),
device/port forwarding delay of topology collection requests, and time used by
the last topology collection.
Examples
# Display the global NTDP information.
<Sysname>
display ntdp
NTDP is running.
Hops : 4
Timer : 0 min(disable)
Hop Delay : 100 ms
Port Delay: 10 ms
Last collection total time:
92ms
Table 1-2 Description on the fields of
the display ntdp
command
|
Field
|
Description
|
|
NTDP is running.
|
NTDP is enabled globally on this device.
|
|
Hops
|
Hop count for topology collection, which
is configured through the ntdp hop command
|
|
Timer
|
Interval to collect topology information,
which is configured through the ntdp timer command
"disable" means this switch is
not a management device and does not perform periodic topology collection.
|
|
Hop Delay
|
Delay for other devices to forward
topology collection requests, which is configured through the ntdp timer
hop-delay command
|
|
Port Delay
|
Delay for ports on other devices to
forward topology collection requests, which is configured through the ntdp
timer port-delay command
|
|
Last collection total time
|
Time used by the last topology collection
|
Syntax
display ntdp device-list [ verbose ]
View
Any view
Parameters
verbose:
Displays the detailed information of devices in a cluster.
Description
Use the display ntdp device-list
command to display the cluster device information collected by NTDP.
Examples
# Display the list of devices collected by NTDP.
<Sysname> display ntdp device-list
MAC HOP
IP PLATFORM
000f-e20f-3901 0
100.100.1.1/24 S5600
000f-e20f-3190 1
16.1.1.1/24 S5600
Table 1-3
Description on the fields of the display ntdp device-list command
|
Field
|
Description
|
|
MAC
|
MAC address of a device collected by NTDP
|
|
HOP
|
Hops from this device to the collected
device
|
|
IP
|
IP address and mask length of the
management VLAN interface on the collected device
|
|
PLATFORM
|
Platform information about the collected
device
|
# Display detailed device information collected by NTDP.
<Sysname> display ntdp device-list
verbose
Hostname : H3C
MAC : 000f-e20f-1234
Hop : 0
Platform : S5600
IP : 100.100.1.1/24
Version:
H3C Comware Platform
Software.
Comware Software, Version
3.10
Copyright(c) 2004-2007
Hangzhou H3C Tech. Co., Ltd. All rights reserved.
S5600 S5600-1545
Cluster : Candidate switch
Peer MAC Peer Port
ID Native Port ID Speed Duplex
000f-e20f-3190 GigabitEthernet1/0/22
GigabitEthernet3/0/21 100 FULL
--------------------------------------------------------------------------
Hostname : 5600-3
MAC : 000f-e20f-3190
Hop : 1
Platform : S5600
IP : 16.1.1.1/24
Version:
H3C Comware Platform Software.
Comware Software, Version 3.10
Copyright(c) 2004-2007
Hangzhou H3C Tech. Co., Ltd. All rights reserved.
S5600 S5600-1545
Cluster : Candidate switch
Peer MAC Peer Port
ID Native Port ID Speed Duplex
000f-e20f-1234 GigabitEthernet3/0/21
GigabitEthernet1/0/22 100 FULL
5600-0000-3334
GigabitEthernet1/0/32 GigabitEthernet1/0/4 100 FULL
Table 1-4
Description on the fields of display ntdp
device-list verbose
|
Field
|
Description
|
|
Hostname
|
System
name of a device collected by NTDP
|
|
MAC
|
MAC
address of the collected device
|
|
Hop
|
Hops from
this device to the collected device
|
|
Platform
|
Software
platform of the collected device
|
|
IP
|
IP address
and mask length of the cluster management VLAN interface on the collected
device
|
|
Version
|
Software
version of the collected device
|
|
Cluster
|
The role
of the collected device for the cluster
|
|
Peer MAC
|
MAC
address of a neighbor device connected to the collected device
|
|
Peer Port ID
|
Index of the port on the neighbor device
connected to the collected device
|
|
Native Port ID
|
Index of the port on the collected device
connected to the neighbor device
|
|
Speed
|
Speed of the neighbor device port
|
|
Duplex
|
Duplex mode of the neighbor device port
|
Syntax
ntdp enable
undo ntdp enable
View
System view, Ethernet port view
Parameters
None
Description
Use the ntdp enable command to
enable NTDP globally or on a port.
Use the undo ntdp enable command to
disable NTDP globally or on a port.
By default, NTDP is enabled both globally
and on ports.
Note that NTDP can take effect on a port only
when NTDP is enabled both globally and on the port.
Examples
# Enable NTDP globally, and then enable
NTDP on port GigabitEthernet 1/0/1.
<Sysname>
system-view
System View: return to User View
with Ctrl+Z.
[Sysname] ntdp enable
[Sysname] interface GigabitEthernet
1/0/1
[Sysname-GigabitEthernet1/0/1]
ntdp enable
Syntax
ntdp explore
View
User view
Parameters
None
Description
Use the ntdp explore command to manually
start a topology collection process.
NTDP is able to periodically collect
topology information. In addition, you can use this command to manually start a
topology collection process at any moment. If you do this, NTDP collects NDP
information from all devices in a specific network range (which can be set
through the ntdp hop command) as well as the connection information of
all its neighbors. Through this information, the management device or the
network management software knows the topology in the network range, and thus
it can manage and monitor the devices in the range.
Examples
# Start a topology collection process.
<Sysname> ntdp explore
Syntax
ntdp hop hop-value
undo ntdp hop
View
System view
Parameters
hop-value:
Maximum hops to collect topology information, namely, the topology collection
range, in the range of 1 to 16.
Description
Use the ntdp hop command to set the
topology collection range.
Use the undo ntdp hop command
to restore the default topology collection range.
By default, the topology collection range
is three hops.
With the ntdp hop command, you can
specify to collect topology information from the devices within a specified
range to avoid infinite collection. That is, you can limit the range of topology collection by setting
the maximum hops from the collecting device to the collected devices. For
example, if you set the maximum hops to two, the switch initiating the topology
collection collects topology information from the switches within two hops.
Note that:
l
The topology collection range set by this
command is applicable to both the periodic and manual topology collection.
l
This command is only applicable to
topology-collecting device, and a wider collection range requires more memory
of the topology-collecting device.
Examples
# Set the topology collection range to 5
hops.
<aaa_0.Sysname>
system-view
System View: return to User View
with Ctrl+Z.
[aaa_0.Sysname] ntdp hop 5
Syntax
ntdp timer interval-in-minutes
undo ntdp timer
View
System view
Parameters
interval-in-minutes: Interval (in minutes) to collect topology information, ranging
from 0 to 65,535. A value of 0 disables topology information collection.
Description
Use the ntdp timer command to
configure the interval to collect topology information periodically.
Use the undo ntdp timer command to
restore the default interval.
By default, this interval is one minute.
After the interval is set to a non-zero
value, the switch will collect topology information periodically at this
interval. You can also use the ndp explore command to start a topology
collection process manually.
Note that:
l
Only the management switch can collect topology
periodically, and a member switch cannot. However, you can use the ndp
explore command on the member switch to start a topology collection process
manually.
l
After a cluster is set up, the management switch
will collect the topology information of the network at the topology collection
interval you set and automatically add the candidate switches it discovers into
the cluster.
l
If you do not want the candidate switches to be
automatically added into the cluster, you can set the topology collection
interval to zero, and use the add-member command to add the candidate
switches to the cluster manually.
Examples
# Set the topology collection interval to 30 minutes.
<aaa_0.Sysname>
system-view
System View: return to User View
with Ctrl+Z.
[aaa_0.Sysname] ntdp timer 30
Syntax
ntdp timer hop-delay time
undo ntdp timer hop-delay
View
System view
Parameters
time: Device
forwarding delay in milliseconds. This argument ranges from 1 to 1,000.
Description
Use the ntdp timer hop-delay command
to set the delay for devices to forward topology collection requests.
Use the undo ntdp timer hop-delay
command to restore the default device forwarding delay.
By default, the device forwarding delay is
200 ms.
Network congestion may occur if large
amount of topology response packets reach the collecting device in a short
period. To avoid this case, each collected switch in the network delays for a
period before it forwards a received topology collection request through each
NTDP-enabled port.
You can use the ntdp timer hop-delay
command to set the delay on a collecting switch. The delay value you set by the
command is carried in the topology collection requests sent by the collecting
switch, and is used by collected devices to determine how long they should wait
before they can forward the received topology collection requests.
Examples
# Set the delay for collected switches to forward topology collection
requests to 300 ms.
<aaa_0.Sysname>
system-view
System View: return to User View
with Ctrl+Z.
[aaa_0.Sysname] ntdp timer
hop-delay 300
Syntax
ntdp timer port-delay time
undo ntdp timer port-delay
View
System view
Parameters
time: Port forwarding
delay in milliseconds. This argument ranges from 1 to 100.
Description
Use the ntdp timer port-delay
command to configure the topology request forwarding delay between two ports,
that is, the interval at which the device forwards the topology requests
through the NTDP-enabled ports one after another.
Use the undo ntdp timer port-delay
command to restore the default port forwarding delay.
By default, the port forwarding delay is 20
ms.
Network congestion may occur if large
amount of topology response packets reach the collecting device in a short
period. To avoid this case, after a collected switch forwards a received
topology collection request through a port, it delays for a period before it
forwards the request through the next port. You can use the ntdp timer
port-delay command to set the delay.
You can use the command on a collecting
switch. The delay value you set by the ntdp timer port-delay command is
carried in the topology collection requests sent by the collecting switch, and
is used by collected devices to determine the topology collection request
forwarding delay between two ports.
Examples
# Set the port forwarding delay for collected switches to forward NTDP requests
to 40 ms.
<aaa_0.Sysname>
system-view
System View: return to User View
with Ctrl+Z.
[aaa_0.Sysname] ntdp timer
port-delay 40
Syntax
add-member [
member-number ] mac-address H-H-H [ password password
]
View
Cluster view
Parameters
member-number: Member number assigned to the candidate device to be added to the
cluster. This argument ranges from 1 to 255.
H-H-H: MAC
address of the candidate device to be added (in hexadecimal).
password: Super
password of the candidate device, a string of 1 to 256 characters. Password authentication
is required when you add a candidate device to a cluster. If the input password
is not consistent with the super password configured on the candidate device
(through the super password command, refer to the CLI part of the
manual), you cannot add the candidate device to the cluster. If a candidate
device is not configured with a super password, you can add it to the cluster
without providing the password argument).
Description
Use the add-member command to add a
candidate device to the cluster.
You can only use this command on the
management device of a cluster.
If you do not specify the member number
when adding a new cluster member, the management device assigns the next
available member number to the new member. If you want to specify the member
manually, you need to specify a number that is never used by a member device of
the cluster.
After you add a candidate device to the
cluster, the super password of the device automatically changes to the super
password of the management device. If the management device changes its super
password, the member devices will automatically synchronize their super
passwords to the new super password of the management device.
Examples
# Add a candidate device, whose MAC address and user password are
000f-e20f-35e7 and 123456 respectively, to the cluster, and set the member
number to 6.
<aaa_0.Sysname>
system-view
System View: return to User View
with Ctrl+Z.
[aaa_0.Sysname] cluster
[aaa_0.Sysname-cluster]
add-member 6 mac-address 000f-e20f-35e7 password 123456
Syntax
administrator-address mac-address name name
undo administrator-address
View
Cluster view
Parameters
mac-address:
MAC address of the management device to be specified.
name: Name
of an existing cluster, a string of up to 8 characters. Note that the name of a
cluster can only contain alphanumeric characters, minus signs (-), and
underscores (_).
Description
Use the administrator-address command
to specify the management device MAC address and the cluster name on a device
to add the device to the cluster.
Use the undo administrator-address
command to remove the management device MAC address from the MAC address list
of a member device, that is, remove the member device from the cluster.
Normally, this command is used for debugging and restoring purpose.
By default, a switch is not a member of any
cluster.
A cluster has one and only one management
device. Setting the management device MAC address on a device can add the device
to the cluster and enable the device to identify the management device even if
it restarts.
You can add a device to a cluster using the
administrator-address command no matter whether the super password of
the device is consistent with that of the management device.
Normally it is recommended to use the delete-member
command on the management device to remove a member device from the
cluster.
Examples
# Remove the current member device from the cluster.
<aaa_1.Sysname> system-view
System View: return to User View
with Ctrl+Z
[aaa_1.Sysname] cluster
[aaa_1.Sysname-cluster] undo
administrator-address
Syntax
auto-build [
recover ]
View
Cluster view
Parameters
recover:
Recovers all member devices.
Description
Use the auto-build command to start
an automatic cluster building process.
You can execute this command on a management
device or on a switch to be configured as a management device.
When you execute this command on a
candidate device, you are prompted to enter a cluster name to build a cluster. The
candidate device will automatically become the management device of the
cluster. Then, the management device will collect candidate devices and add
them to the cluster automatically.
When you execute this command on a
management device, the system directly collects candidate devices ant
automatically adds them to the cluster.
The recover keyword is used
to recover a cluster. After you execute the auto-build recover command,
the system looks for the down members in the member list and add them to the
cluster again.
Note that, the collection of
candidate/member devices are based on NTDP. Therefore, you must first enable
NTDP. In addition, you can use the ntdp hop command in system
view to change the collection range.
When the system automatically adds a device
to the cluster, if the user password configured for the device is different
from that of the management device, the device cannot be added to the cluster.
l
After a cluster is built automatically, ACL 3998
and ACL 3999 will automatically generate a rule respectively to prohibit packets
whose source and destination addresses are private IP addresses of the cluster
from being sent to or received from the public network. The two ACL rules will
be automatically applied to all ports of the cluster members.
l
After a cluster is built automatically, ACL 3998
and ACL 3999 can neither be configured/modified nor removed.
Examples
# Start an automatic cluster building
process.
<Sysname> system-view
System View: return to User
View with Ctrl+Z.
[Sysname] cluster
[Sysname-cluster] auto-build
There is no base topology,
if set up from local flash file?(Y/N)
n
Please input cluster
name:aaa
Collecting candidate list,
please wait...
#Apr 3 08:12:32:832 2000
aaa_0.Sysname CLST/5/Cluster_Trap:- 1 -
OID:1.3.6.1.4.1.2011.6.7.1.0.3(hgmpMemberStatusChange):member
00.00.00.00.00.12.
a9.90.22.40 role change,
NTDPIndex:0.00.00.00.00.00.12.a9.90.22.40, Role:1
Candidate list:
Name
Hops MAC Address Device
H3C
2 0016-e0c0-c201 H3C S3600-28F-EI
H3C 2
000f-e221-616e H3C S3600-28F-EI
H3C
2 000f-e202-2180 H3C S3600-28P-SI
SwitchA
2 0016-e0be-e200 H3C S5600-26C
H3C 3
000f-e200-1774 H3C S5600-26F
H3C 2
000f-e200-5600 H3C S5600-26F
H3C
3 000f-e200-5104 H3C S3600-28P-SI
H3C
2 000f-e200-2420 H3C S3600-28P-SI
Processing...please wait
%Apr 3 08:12:37:813 2000
aaa_0.Sysname CLST/5/LOG:- 1 -
Member 000f-e200-2200 is
joined in cluster aaa.
%Apr 3 08:12:37:831 2000
aaa_0.Sysname CLST/5/LOG:- 1 -
Member 000f-e200-0000 is
joined in cluster aaa.
%Apr 3 08:12:37:847 2000
aaa_0.Sysname CLST/5/LOG:- 1 -
Member 000f-e200-7800 is
joined in cluster aaa.
%Apr 3 08:12:37:863 2000
aaa_0.Sysname CLST/5/LOG:- 1 -
Member 000f-e200-2420 is
joined in cluster aaa.
%Apr 3 08:12:37:996 2000
aaa_0.Sysname CLST/5/LOG:- 1 -<