Syntax
display ndp
[ interface interface-list ]
View
Any view
Parameter
interface
interface-list: Specifies a list of ports. The list
can contain consecutive or separated ports, or the combination of the both. You
need to provide the interface-list argument in the form of interface-type
interface-number [ to interface-type interface-number ]
&<1-10>, where interface-type specifies the port type, and interface-number
specifies the port number (in the form of slot number/port number).to:
Specifies a port range. &<1-10> means that you can provide up to ten
port indexes/port index ranges for this argument.
Description
Use the display ndp command to
display the global NDP configuration information, including the interval to
send NDP packets, the holdtime of NDP information, and the information about
the neighbors of all the ports.
Example
# Display NDP configuration 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: GigabitEthernet 1/0/1
Status: Enabled, Pkts Snd: 0,
Pkts Rvd: 0, Pkts Err: 0
Interface: GigabitEthernet 1/0/2
Status: Enabled, Pkts Snd: 0,
Pkts Rvd: 0, Pkts Err: 0
Interface: GigabitEthernet 1/0/3
Status: Enabled, Pkts Snd: 0,
Pkts Rvd: 0, Pkts Err: 0
Interface: GigabitEthernet 1/0/4
Status: Enabled, Pkts Snd:
28440, Pkts Rvd: 27347, Pkts Err: 0
Neighbor 1: Aging Time:
122(s)
MAC Address :
00e0-fc00-2579
Port Name : GigabitEthernet
1/0/4
Software Ver:
V100R002B01D002
Device Name : H3C
S5500-28C-SI
Port
Duplex : AUTO
Product Ver : ESS 1204SP01
BootROM Ver : 114
Interface: GigabitEthernet 1/0/5
Status: Enabled, Pkts Snd: 0,
Pkts Rvd: 0, Pkts Err: 0
Interface: GigabitEthernet 1/0/6
Status: Enabled, Pkts Snd: 0,
Pkts Rvd: 0, Pkts Err: 0
Interface: GigabitEthernet 1/0/7
Status: Enabled, Pkts Snd: 0,
Pkts Rvd: 0, Pkts Err: 0
Interface: GigabitEthernet 1/0/8
Status: Enabled, Pkts Snd: 0,
Pkts Rvd: 0, Pkts Err: 0
Interface: GigabitEthernet 1/0/9
Status: Enabled, Pkts Snd: 0,
Pkts Rvd: 0, Pkts Err: 0
Interface: GigabitEthernet 1/0/10
Status: Enabled, Pkts Snd:
28450, Pkts Rvd: 26520, Pkts Err: 0
Neighbor
1: Aging Time: 134(s)
MAC Address :
00e0-fc00-3133
Port Name : GigabitEthernet
1/0/11
Software Ver:
V100R002B01D002
Device Name : H3C
S5500-28C-SI
Port
Duplex : AUTO
Product Ver : ESS
1204SP01
BootROM Ver : 114
Interface: GigabitEthernet 1/0/11
Status: Enabled, Pkts Snd: 0,
Pkts Rvd: 0, Pkts Err: 0
Interface:
GigabitEthernet 1/0/12
Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0
Interface:
GigabitEthernet 1/0/13
Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0
Interface: GigabitEthernet 1/0/14
Status: Enabled, Pkts Snd: 0,
Pkts Rvd: 0, Pkts Err: 0
Interface: GigabitEthernet 1/0/15
Status: Enabled, Pkts Snd: 0,
Pkts Rvd: 0, Pkts Err: 0
Interface: GigabitEthernet 1/0/16
Status: Enabled, Pkts Snd: 0,
Pkts Rvd: 0, Pkts Err: 0
Interface: GigabitEthernet 1/0/17
Status: Enabled, Pkts Snd: 0,
Pkts Rvd: 0, Pkts Err: 0
Interface: GigabitEthernet 1/0/18
Status: Enabled, Pkts Snd: 0,
Pkts Rvd: 0, Pkts Err: 0
Interface: GigabitEthernet 1/0/19
Status: Enabled, Pkts Snd: 0,
Pkts Rvd: 0, Pkts Err: 0
Interface: GigabitEthernet 1/0/20
Status: Enabled, Pkts Snd: 0,
Pkts Rvd: 0, Pkts Err: 0
Interface: GigabitEthernet 1/0/21
Status: Enabled, Pkts Snd: 0,
Pkts Rvd: 0, Pkts Err: 0
Interface: GigabitEthernet 1/0/22
Status: Enabled, Pkts Snd: 0,
Pkts Rvd: 0, Pkts Err: 0
Interface: GigabitEthernet 1/0/23
Status: Enabled, Pkts Snd: 0,
Pkts Rvd: 0, Pkts Err: 0
Interface: GigabitEthernet 1/0/24
Status: Enabled, Pkts Snd: 0,
Pkts Rvd: 0, Pkts Err: 0
Interface: GigabitEthernet1/0/25
Status: Enabled, Pkts Snd: 0,
Pkts Rvd: 0, Pkts Err: 0
Interface: GigabitEthernet1/0/26
Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0
Interface: GigabitEthernet1/0/27
Status: Enabled, Pkts Snd: 0,
Pkts Rvd: 0, Pkts Err: 0
Interface: GigabitEthernet1/0/28
Status: Enabled, Pkts Snd: 0,
Pkts Rvd: 0, Pkts Err: 0
Table 1-1 Description
on the fields of the display ndp command
|
Field
|
Description
|
|
Neighbor Discovery Protocol is enabled
|
NDP is enabled globally on the switch
|
|
Neighbor Discovery Protocol Ver
|
NDP version
|
|
Hello Timer
|
The interval to send NDP packets
|
|
Aging Timer
|
The holdtime of the NDP information sent
by the local switch
|
|
Interface
|
Port index to specify a specific port
|
|
Status
|
NDP is enabled on the port
|
|
Pkts Snd
|
Number of the NDP packets transmitted
through the port
|
|
Pkts Rvd
|
Number of the NDP packets received
through the port
|
|
Pkts Err
|
Number of the error NDP packets received
through the port
|
|
Neighbor 1: Aging Time
|
The holdtime of the NDP information
received from the neighbors connected to the port
|
|
MAC Address
|
MAC address of a neighbor device
|
|
Host Name
|
Host Name of a neighbor device
|
|
Port Name
|
Port name of a neighbor device
|
|
Software Ver
|
Neighbor device software version
|
|
Device Name
|
Device name of a neighbor device
|
|
Port Duplex
|
Port duplex mode of a neighbor device
|
|
Product Ver
|
Product version of a neighbor device
|
|
BootROM Ver
|
BootROM version of a neighbor device
|
Syntax
ndp enable [
interface interface-list ]
undo ndp enable [ interface interface-list ]
View
System view, Ethernet interface view
Parameter
interface
interface-list: Specifies a list of ports. The list
can contain consecutive or separated ports, or the combination of the both. You
need to provide the interface-list argument in the form of interface-type
interface-number [ to interface-type interface-number ]
&<1-10>, where interface-type specifies the port type, and interface-number
specifies the port number (in the form of slot number/port number).to:
Specifies a port range. &<1-10> means that you can provide up to ten
port indexes/port index ranges for this argument.
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.
By default, NDP is enabled both globally
and on an Ethernet port.
Note that:
l
The NDP cannot operate if it is enabled on a
port where NDP is disabled.
l
When being executed in system view, the ndp
enable command enables NDP globally if you do not provide the interface
interface-list argument. And if you specify the interface interface-list
argument, the command enables NDP for the specified Ethernet port(s).
l
When being executed in Ethernet interface view,
this command enables NDP for the current Ethernet port only. In this case, the interface-list
argument is not needed.
l
When a port of an aggregation group is connected
with a device in a cluster, the NDP feature must be enabled on all the ports of
the aggregation group before the feature can work properly.
Example
# Enable NDP globally.
<Sysname> system-view
[Sysname] ndp enable
Syntax
ndp timer aging aging-time
undo ndp timer aging
View
System view
Parameter
aging-time :
Holdtime (in seconds) to be set of the NDP information sent by the local
switch. This argument ranges from 5 to 255.
Description
Use the ndp timer aging command to
set the holdtime of the NDP information sent by the local switch, that is, to
specify how long a device will hold the NDP packets received from the local
device. After the aging timer expires, the device removes the received NDP
neighbor node information.
Use the undo timer aging command to
restore the default NDP information holdtime.
You can specify how long an adjacent device
will hold the NDP information sent by the local device. An adjacent device
holds the NDP information of the local switch according to the holdtime carried
in the NDP packets received from the local switch and removes the NDP
information when the aging timer expires.
The default holdtime is 180 seconds.
Note that NDP information holdtime is
longer than the interval to send NDP packets normally. Otherwise, the neighbor
information table of an NDP port will become unstable.
Example
# Configure the holdtime of the NDP
information sent by the local switch to be 60 seconds.
<Sysname> system-view
[Sysname] ndp timer aging 60
Syntax
ndp timer hello hello-time
undo ndp timer hello
View
System view
Parameter
Hello-time:
Interval (in seconds) to send NDP packets ranging from 5 to 254.
Description
Use the ndp timer hello command to
set the interval to send NDP packets.
Use the undo ndp timer hello command
to restore the default interval to send NDP packets.
By default, the interval to send NDP
packets is 60 seconds.
NDP information in a neighbor information
table is updated regularly. This enables neighbor information table to contain
the actual network topology information. You can use these two commands to
adjust the updating frequency of NDP information.
Example
# Configure the interval to send NDP
packets to be 80 seconds.
<Sysname> system-view
[Sysname] ndp timer hello 80
Syntax
reset ndp statistics [ interface interface-list ]
View
User view
Parameter
interface
interface-list: Specifies a list of ports. The list
can contain consecutive or separated ports, or the combination of the both. You
need to provide the interface-list argument in the form of interface-type
interface-number [ to interface-type interface-number ]
&<1-10>, where interface-type specifies the port type, and interface-number
specifies the port number (in the form of slot number/port number).to:
Specifies a port range. &<1-10> means that you can provide up to ten
port indexes/port index ranges for this argument.
Description
Use the reset ndp statistics command
to clear NDP statistics.
Example
# Clear NDP statistics.
<Sysname> reset ndp
statistics
Syntax
display ntdp
View
Any view
Parameter
None
Description
Use the display ntdp command to
display the global NTDP information. The information includes the range (in hop
count) within which topology information is collected, the interval to collect
topology information (the NTDP timer), the delay time for a device to forward
topology-collection requests, the delay time for a topology-collection request
to be forwarded through a port, and the time cost during the last topology
collection.
Example
# 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 the local device.
|
|
Hops
|
Hop count
for topology collection
|
|
Timer
|
Interval
to collect topology information
(disable)
means that the device is not the command switch and does not perform
periodical topology collection
|
|
Hop Delay
|
Delay time
for the device to forward topology collection requests
|
|
Port Delay
|
Delay time
for a topology-collection request to be forwarded through a port
|
|
Last
collection total time
|
Time cost
during the last collection
|
Syntax
display ntdp device-list [ verbose ]
View
Any view
Parameter
verbose:
Displays the detailed device information.
Description
Use the display ntdp device-list
command to display the device information collected through NTDP.
Example
# Display the device list collected through NTDP.
<Sysname>
display ntdp device-list
MAC
HOP IP Device
0012-a990-2241 2
192.168.0.39/24 S3928P-EI
00e0-fc00-5503 2
192.168.0.59/24 3Com Switch 4500G 48-Port PWR
00e0-fc00-5502 0 192.168.0.52/16
Sysname S5500-28C-SI
00e0-fc00-5601 3
192.168.0.56/24 Sysname S5500-28C-SI
00e0-fc00-5111 2
192.168.0.51/24 Sysname S5500-28C-SI
00e0-fc02-2180 1
192.168.0.35/24 Sysname S3552G
000f-e221-616e 2
192.168.0.31/24 S3100-52P
000f-e200-2200 2
192.168.0.36/24 Sysname S3952P-V6
000f-e218-d0d0 2
192.168.0.68/24 H3C S3610-52P
Table 1-3 Description on the fields of
the display ntdp device-list command
|
Field
|
Description
|
|
MAC
|
MAC address of a device
|
|
HOP
|
Hops to the collecting device
|
|
IP
|
IP address and mask length of the
management VLAN interface on the device
|
|
Device
|
Platform information about a device
|
# Display the detailed device information collected through NTDP.
<Sysname>
display ntdp device-list verbose
Hostname : Sysname
MAC : 000f-e200-3133
Hop : 2
Device
: : H3C S5500-52C-SI
IP :
Version
:
H3C Versatile Routing Platform
Software
Comware Software, Version 5.20
Copyright (c) 2004-2007 Hangzhou
H3C Technologies Co., Ltd. All rights reserved.
Release 1205
Cluster : Member switch of
cluster aaa , Administrator MAC: 000f-e200-1751
Stack : Candidate switch
Peer MAC Peer Port
ID Native Port ID Speed Duplex
00e0-fc00-3199 GigabitEthernet 1/0/3
GigabitEthernet 1/0/3 200 FULL
00e0-fc00-2579 GigabitEthernet 1/0/2
GigabitEthernet 1/0/2 400 FULL
Table 1-4 Description
on the fields of the display ntdp device-list verbose command
|
Field
|
Description
|
|
Hostname
|
System
name of the device
|
|
MAC
|
MAC
address of the device
|
|
Hop
|
Hops to
the devices that collect topology information
|
|
Device
|
Device
name
|
|
IP
|
IP address
and subnet mask length of the management VLAN interface on the device
|
|
Version
|
Version
information
|
|
Cluster
|
Cluster
information
|
|
Administrator
MAC
|
MAC
address of the management device
|
|
Stack
|
Stack
information
|
|
Peer MAC
|
MAC address of a neighbor device
|
|
Peer Port
ID
|
Name of the peer port connected to the
local port
|
|
Native
Port ID
|
Name of the local port to which a
neighbor device is connected
|
|
Speed
|
Speed of
the local port to which a neighbor device is connected
|
|
Duplex
|
Duplex
mode of the local port to which a neighbor device is connected
|
Syntax
ntdp enable
undo ntdp enable
View
System view, Ethernet interface view
Parameter
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 globally and on
ports.
Note that the NDTP cannot operate if it is enabled
on a port where NDP is disabled.
Example
# Enable NTDP globally.
<Sysname>
system-view
[Sysname] ntdp enable
# Enable NTDP for
port GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet
1/0/1
[Sysname-GigabitEthernet1/0/1] ntdp
enable
Syntax
ntdp explore
View
User view
Parameter
None
Description
Use the ntdp explore command to
start topology information collection manually.
Normally, NTDP collects network topology
information periodically. You can also start topology information collection
manually whenever needed by executing this command. When you execute this
command, NTDP collects the NDP information of every device and the information
about the connections between the local switch and all of its neighbor switches
in the specified network scope. The information is useful for the management
device or network management system to acquire the network topology and to
manage and monitor the devices.
Example
# Start the topology collection.
<Sysname> ntdp explore
Syntax
ntdp hop hop-value
undo ntdp hop
View
System view
Parameter
hop-value:
Maximum hops for collecting topology information, ranging from 1 to 16.
Description
Use the ntdp hop command to set a
range (in terms of hop count) for topology information collection.
Use the undo ntdp hop command
to restore the default range for topology information collection.
By default, the value is 3.
Note that:
l
With the ntdp hop command, you can
specify to collect the topology information of the devices within a specified
range to avoid infinitive collection. The limit is performed by controlling the
permitted hops from collection origination. For example, if you set the hop
number limit to 2, only the switches less than 2 hops away from the switch
starting the topology collection are collected.
l
Note that this command is only applicable to the
topology-collecting device. A broader collection scope requires more memory of
the topology-collecting device.
Example
# Set the hop count for topology
information collection to 5.
<aaa_0.Sysname> system-view
[aaa_0.Sysname] ntdp hop 5
Syntax
ntdp timer interval-time
undo ntdp timer
View
System view
Parameter
interval-time: Interval (in minutes) to collect topology information, ranging
from 0 to 65,535. This argument defaults to 1, argument 0 specifies not to
collect topology information.
Description
Use the ntdp timer command to
configure the interval to collect topology information.
Use the undo ntdp timer command to
restore the default interval.
By default, the interval to collect
topology information is 1 minute.
Note that:
l
The (disable) prompt in the timer field of the display
ntdp command means that the device is not the member of the cluster and
does not perform periodical topology collection.
l
After the cluster is set up, the S5500-SI switch
will collect the topology information in the network at the set interval and
add the detected candidate switches into the cluster automatically.
l
If it is unnecessary to add the candidate
switches into the cluster automatically, you can set the interval of topology
collection to 0.
Example
# Set the interval to collect topology information to 30 minutes.
<aaa_0.Sysname> system-view
[aaa_0.Sysname] ntdp timer 30
Syntax
ntdp timer hop-delay time
undo ntdp timer hop-delay
View
System view
Parameter
time: Delay
time (in milliseconds) for a switch to forward topology-collection request
packets. This argument ranges from 1 to 1,000.
Description
Use the ntdp timer hop-delay command
to set the delay time for a switch to forward topology-collection request
packets.
Use the undo ntdp timer hop-delay
command to restore the default delay time.
By default, the delay time for a switch to
forward topology-collection request packets is 200 milliseconds.
Note that:
l
To avoid network congestion caused by large
amount of topology response packets received in short periods, a switch delays
for specific period before it forwards a received topology-collection request
packet through its first ports. You can use the ntdp timer hop-delay
command to set the delay time.
l
These two commands are intended for switches
that collect topology information. They actually set the hop-delay value for
topology-collection request packets sent by these switches. The hop-delay value
determines the delay time for a switch receiving topology-collection request
packets to forward them through its first port.
Example
# Set the delay time for the switch to forward topology-collection
request packets through the first port to 300 ms.
<aaa_0.Sysname> system-view
[aaa_0.Sysname] ntdp timer
hop-delay 300
Syntax
ntdp timer port-delay time
undo ntdp timer port-delay
View
System view
Parameter
time: Delay
time (in milliseconds) for a switch to forward a topology-collection request
packet through its successive ports. This argument ranges from 1 to 100 and
defaults to 20.
Description
Use the ntdp timer port-delay
command to set the delay time for a switch to forward a received
topology-collection request packet through its successive ports.
Use the undo ntdp timer port-delay
command to restore the default delay time.
By default, the delay time for a switch to
forward a received topology-collection request packet through its successive
ports is 20 milliseconds.
Note that:
l
To avoid network congestion caused by large
amount of topology response packets received in short periods, a switch delays
for specific period before it forwards a received topology-collection request
packet through the next port. You can use the ntdp timer port-delay
command to set the delay time.
l
These two commands are intended for switches
that collect topology information. They actually set the port-delay value for
topology-collection request packets sent by these switches. The port-delay
value determines the delay time for a switch receiving topology-collection
request packets to forward them through the next port.
Example
# Set the delay time for the switch to forward topology-collection
request packets through the successive ports to 40 ms.
<aaa_0.Sysname> system-view
[aaa_0.Sysname] ntdp timer
port-delay 40
Syntax
add-member [
member- number] mac-address mac-address [
password password ]
View
Cluster view
Parameter
member-number: Member number assigned to the candidate device to be added to a
cluster. This argument ranges from 1 to 255.
mac-address:
MAC address of the candidate device (in hexadecimal).
password:
Password of the candidate device, a string comprising 1 to 16 characters. The
password is required when you add a candidate device to a cluster. However,
this argument is not needed if the candidate device is not configured with a
password.
Description
Use the add-member command to add a
candidate device to a cluster.
Note that:
l
You can add a candidate device to a cluster on
the management device only.
l
If you do not specify the member number when
adding a cluster member, the management device assigns the least available
member number to it.
l
After a candidate device is added to a cluster,
its device password becomes the management device password.
Caution:
If the number of
the routing table entries of a candidate device reaches the maximum number
allowed when the candidate is added to a cluster, it will be added to and
removed from the cluster repeatedly.
Example
# Add a candidate device to the cluster, setting the member number to
6. (Assume that the MAC address and user password of the candidate device are
00E0-fc00-35e7 and 123456.)
<aaa_0.Sysname> system-view
[aaa_0.Sysname] cluster
[aaa_0.Sysname-cluster]
add-member 6 mac-address 00E0-fc00-35e7 password 123456
Syntax
administrator-address mac-address name name
undo administrator-address
View
Cluster view
Parameter
mac-address:
MAC address of the management device(in hexadecimal).
name name: Name of an existing cluster, a string comprising up to 8
characters, which can only be alphanumeric characters, subtraction sign (-),
and underline (_).
Description
Use the administrator-address command
to set the MAC address of the management device on a member device.
Use the undo administrator-address
command to remove a member device from the cluster, usually for debugging or
restoration.
By default, a switch belongs to no cluster.
Note that:
l
administrator-address only can be executed on a candidate device, undo
administrator-address only can be executed on a member device.
l
A cluster contains one (and only one) management
device. After rebooting, a member device identifies the management device by
the MAC address of the management device.
l
You are recommended to use the delete-member command
to remove a cluster member from a cluster on the management device.
Example
# Remove a member device from the cluster.
<aaa_0.Sysname> system-view
[aaa_0.Sysname] cluster
[aaa_0.Sysname] undo
administrator-address
Syntax
auto-build [
recover ]
View
Cluster view
Parameter
recover:
Establishes communication with all the member devices again.
Description
Use the auto-build command to build
a cluster automatically.
Note that:
l
This command can be executed on a candidate
device or a management device.
l
When you use this command on a candidate device,
you will be required to enter the cluster name and build a cluster. Then the
system will collect candidates and add the collected candidates into the
cluster automatically.
l
When you use this command on a management
device, the system will collect candidates directly and add them into the
cluster automatically.
l
The recover keyword is used to
recover a cluster. Using the auto-build recover command, you can find
the members that are not currently in the member list and add them to the
cluster again.
l
Ensure that NTDP is enabled, because it is the
basis of candidate and member collection. The collection range is also decided
through NTDP. You can use the hop command in system view to modify the
collection range.
l
If a member is configured with a password
different from the password of the management device, it cannot be added to the
cluster automatically.
Caution:
When you configure
a cluster, if the number of routing table entries reaches the maximum number
allowed, no more routing table entries can be configured on a management device
and candidate devices, which will result in the unreachability of handshake
packets and the repeated add and removal of the device to and from the cluster:
l
If the routing table entries of the management
device reach the maximum number allowed when a cluster is created, all
candidate devices will be added to and removed from the cluster repeatedly.
l
If the number of the routing table entries of a
candidate device reaches the maximum number allowed when the candidate device
is added to a cluster, it will be added to and removed from the cluster
repeatedly.
Example
# Set up a cluster automatically.
<Sysname> system-view
[Sysname] cluster
[Sysname-cluster] auto-build
Restore topology from local flash
file,for there is no base topology.
(Please confirm in 30 seconds,
default No) (Y/N)n
Please input cluster name:aa.
Collecting candidate list,
please wait...
Candidate list:
Name Hops
MAC Address Device
Sysname 1
00e0-fc02-2180 Sysname S3552G
Sysname
2 00e0-fc00-5502 Sysname S5528C-SI
Sysname
2 00e0-fc00-5601 S5600
a 2
0012-a990-2241 S3900
2024C 2
000f-e200-00cc Sysname S2024C
Processing...please wait
Cluster auto-build Finish!
2 member(s) added
successfully.
[aa_0.Sysname-cluster]
Syntax
black-list add-mac mac-address
View
Cluster view
Parameter
mac-address:
MAC address of the device that will be added into the blacklist, in the format
of H-H-H.
Description
Use the black-list add-mac command
to add a device into the blacklist.
This command can be executed only on the
management device.
Example
# Insert the device to black-list.
<aa_0.Sysname>system-view
[aa_0.Sysname]cluster
[aa_0.Sysname-cluster] black-list
add-mac 0ec0-fc00-0001
Insert the MAC to the black-list
successful!
1.3.5 black-list delete-mac
Syntax
black-list delete-mac { all | mac-address }
View
Cluster view
Parameter
mac-address:
MAC address of the device that will be deleted from the blacklist, in the
format of H-H-H. This command can be executed only on the management device.
Description
Use the black-list delete-mac
command to delete a device from the blacklist.
This command must be executed on the
management device.
Example
# Delete the device from black-list.
<aa_0.Sysname>system-view
[aa_0.Sysname]cluster
[aa_0.Sysname-cluster] black-list
delete-mac 0ec0-fc00-0001
The black-list is cleared!
# Clear all the device from black-list
<aa_0.Sysname>system-view
[aa_0.Sysname]cluster
[aa_0.Sysname-cluster] black-list
delete-mac all
The black-list is cleared!
Syntax
build name
undo build
View
Cluster view
Parameter
name:
Cluster name, a string comprising up to 8 characters, which can only be
alphanumeric characters, subtraction sign (-), and underline (_).
Description
Use the build command to configure the
current device as the management device and specify a name for it. When
executing this command, you will be asked whether you want to create a standard
topology map or not.
Use the undo build command to remove
a cluster.
If the build command is executed on
the candidate device, the current switch will be configured as the management
device and assigned with a cluster name.
If the build command is executed on
the management device, the cluster name will be modified.
Note that:
l
This command can only be applied to devices that
are capable to be a management device and are not members of other clusters.
The command takes no effect if you execute the command on a device which is
already a member of another cluster. If you execute this command on a
management device, you will replace the cluster name with the one you specify.
l
The member number of a management device is 0.
After the cluster is set up, the S5500-SI
switch will collect the topology information of the network at the set interval
and add the detected candidate devices into the cluster automatically. If it is
unnecessary to add the candidate switches into the cluster automatically, you
can set the interval of topology collection to 0, that is, topology collection
is not performed periodically.
Example
# Configure the current switch to be a management device and specify the
cluster name to be aabbcc.
<Sysname>system-view
[Sysname]cluster
[Sysname-cluster] build aabbcc
Restore topology from local
flash file,for there is no base topology.
(Please confirm in 30 seconds,
default No). (Y/N)
n
[aabbcc_0.Sysname-cluster]
Syntax
cluster
View
System view
Parameter
None
Description
Use the cluster command to enter
cluster view.
Example
# Enter cluster view.
<Sysname> system-view
[Sysname] cluster
[Sysname-cluster]
Syntax
cluster enable
undo cluster enable
View
System view
Parameter
None
Description
Use the cluster enable command to
enable the cluster function on a switch.
Use the undo cluster enable command
to disable the cluster function on a switch.
By default, the cluster function is enabled
on all the devices supporting cluster.
Note that:
l
These two commands can be used on any device
supporting the cluster function.
l
When you execute the undo cluster enable
command on a management device, the cluster is removed, and the switch stop
operating as a management device.
l
When you execute the undo cluster enable
command on a member device, the cluster function is disabled on the switch, and
the switch quit the cluster.
l
When you execute the undo cluster enable
command on a switch that belongs to no cluster, the cluster function is
disabled on the switch.
Example
# Enable the cluster function on a switch.
<Sysname> system-view
[Sysname] cluster enable