19-Stack-Cluster Command

Download


Chapter 1  Stack Function Configuration Commands

 

&  Note:

Among S3100-SI series switches, the S3100-26T-SI and S3100-26TP-SI switches support aggregation of fixed Gigabit Ethernet ports.

Among S3100-SI series switches, the S3100-26C-SI and S3100-16C-SI switches support aggregation of the Gigabit Ethernet expansion modules, including Gigabit Ethernet optical ports, Gigabit Ethernet electric ports and Gigabit Ethernet stack boards.

 

1.1  Stack Function Configuration Commands

1.1.1  display stacking

Syntax

display stacking [ members ]

View

Any view

Parameter

members: Displays the information about the members of a stack. Do not specify this keyword when you execute this command on a slave switch.

Description

Use the display stacking command to display the information about the main switch or the slave switches of a stack.

When you execute this command on a main switch, the information displayed depends on the members keyword as follows:

l           If the members keyword is not specified, the output information indicates that the local switch is the main switch. Besides, the number of the switches contained in the stack is also displayed.

l           If the members keyword is specified, the information about the members of the stack is displayed, including the stack numbers of the main/slave switches, stack name, stack device name, MAC address and status.

When you execute this command on a slave switch, the information displayed indicates that the local switch is a slave switch. Besides, the information such as the stack number of the local switch, and the MAC address of the main switch in the stack is also displayed.

Example

# Display the information about a stack on the main switch.

<stack_0.H3C> display stacking

Main device for stack.

 Total members:3

 Management-vlan:1(default vlan)

# Display the information about the stack members on the main switch.

<stack_0. H3C> display stacking members

 Member number: 0

 Name:stack_0.H3C

 Device: S3100-16C-SI

 MAC Address:000f-e20f-3124

 Member status:Admin

IP: 129.10.1.15 /16

 

 Member number: 1

 Name:stack_1.H3C

 Device: S3100-16C-SI

 MAC Address: 000f-e20f-3130

 Member status:Up

IP: 129.10.1.16/16

 

Member number: 2

 Name:stack_2.H3C

 Device: S3100-16C-SI

 MAC Address: 000f-e20f-3135

 Member status:Up

IP: 129.10.1.17/16

Table 1-1 Description on the fields of the display stacking command

Field

Description

Member number

Numbers of the switches in the stack

The main switch is numbered 0.

Name

Name of a slave switch

Device

Device type

MAC Address

Mac address of a switch in the stack

Member status

Status of a switch in the stack

“Cmdr” indicates the switch is the main switch; “UP” indicates the switch is on.

IP: 129.10.1.15/16

IP address of a switch in the stack

 

1.1.2  stacking

Syntax

stacking number

View

User view

Parameter

number: Number of the slave switch to switch to.

Description

Use the stacking command to switch to a slave switch to configure it.

You can use this command to switch from user view of the main switch to user view of a slave switch. To switch from a slave switch back to the main switch, execute the quit command in user view.

 

&  Note:

Remove the IP address configured for the existing Layer 3 interface first if you want to cancel the stack-related configuration, otherwise, IP address conflicts may occur.

 

Example

# Switch from the main switch H3C to the slave switch numbered 1 and then switch back to the main switch.

<stack_0.H3C> stacking 1

<stack_1.H3C>

<stack_1.H3C> quit

<stack_0.H3C>

1.1.3  stacking enable

Syntax

stacking enable

undo stacking enable

View

System view

Parameter

None

Description

Use the stacking enable command to create a stack.

Use the undo stacking enable command to remove a stack.

The stacking enable command triggers a main switch to add the switches connected to its stack ports to the stack.

The undo stacking enable command can only be executed on a main switch.

A slave switch quits the stack automatically when it is disconnected from the stack.

Example

# Create a stack.

<H3C> system-view

[H3C] stacking enable

[stack_0.H3C] quit

<stack_0.H3C>

1.1.4  stacking ip-pool

Syntax

stacking ip-pool from-ip-address ip-address-number [ ip-mask ]

undo stacking ip-pool

View

System view

Parameter

from-ip-address: Start address of the stack IP address pool.

ip-address-number: Number of the IP addresses in the stack IP address pool. A stack IP address pool contains 16 addresses by default.

ip-mask: Mask of the stack IP address.

Description

Use the stacking ip-pool command to create a stack IP address pool.

Use the undo stacking ip-pool command to restore the default stack IP address pool.

You need to create an IP address pool for a stack before creating the stack. When adding a switch to a stack, the main switch picks an IP address from the IP address pool and assigns the IP address to it.

The stacking ip-pool command can only be executed on switches that do not belong to any stack. That is, the IP address pool of an existing stack cannot be modified.

To add a switch to a stack successfully, make sure the value of the ip-address-number argument is larger than the number of switches currently contained in the stack.

Make sure the IP addresses in the IP address pool of a stack are successive so that they can be assigned successively. For example, the IP addresses in an IP address pool with its start IP address something like 223.255.255.254 are not successive. In this case, errors may occur when adding a switch to the stack.

IP addresses in the IP address pool of a stack must be of the same network segment. For example, the 1.1.255.254 is not a qualified start address for a stack IP address pool.

Note the following when performing stack-related configurations on the main switch of a stack:

l           After a stack is created, the main switch automatically adds the switches connected to its stack ports to the stack.

l           A slave switch quits the stack automatically when it is disconnected from the stack.

l           If the IP address of the management VLAN interface of the main switch (or a slave switch) is not of the same network segment as that of the stack address pool, the main switch (or the slave switch) automatically removes the existing IP address and picks a new one from the stack address pool as its IP address.

l           Since both stack and cluster use the management VLAN and only one VLAN interface is available on the S3100-SI switch, stack and cluster must share the same management VLAN if you want to configure stack within a cluster.

Example

# Configure the IP address pool for the stack.

<H3C> system-view

[H3C] stacking ip-pool 129.10.1.1 5

 


Chapter 2  HGMPv2 Configuration Commands

2.1  NDP Configuration Commands

2.1.1  display ndp

Syntax

display ndp [ interface port-list ]

View

Any view

Parameter

interface port-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 port-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.H3C> display ndp

Neighbor Discovery Protocol is enabled.

 Neighbor Discovery Protocol Ver: 1, Hello Timer: 60(s), Aging Timer: 180(s)

 Interface: Ethernet1/0/1

    Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0

 

 Interface: Ethernet1/0/2

    Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0

 

 Interface: Ethernet1/0/3

    Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0

 

 Interface: Ethernet1/0/4

    Status: Enabled, Pkts Snd: 28440, Pkts Rvd: 27347, Pkts Err: 0

    Neighbor 1:  Aging Time: 122(s)

       MAC Address : 000f-e20f-2579

       Port Name   : Ethernet1/0/4

       Software Ver: V100R001B01D013

       Device Name : S3100-26C-SI

       Port Duplex : AUTO

       Product Ver : 3100-0001

 

 Interface: Ethernet1/0/5

    Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0

 

 Interface: Ethernet1/0/6

    Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0

 

 Interface: Ethernet1/0/7

    Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0

 

 Interface: Ethernet1/0/8

    Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0

 

 Interface: Ethernet1/0/9

    Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0

 

 Interface: Ethernet1/0/10

    Status: Enabled, Pkts Snd: 28450, Pkts Rvd: 26520, Pkts Err: 0

    Neighbor 1:  Aging Time: 134(s)

       MAC Address : 000f-e20f-3133

       Port Name   : Ethernet1/0/11

       Software Ver: V100R001B01D013

       Device Name : S3100-26T-SI

       Port Duplex : AUTO

       Product Ver : 3100-0001

 

 Interface: Ethernet1/0/11

    Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0

 

 Interface: Ethernet1/0/12

    Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0

 

 Interface: Ethernet1/0/13

    Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0

 Interface: Ethernet1/0/14

    Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0

 

 Interface: Ethernet1/0/15

    Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0

 

 Interface: Ethernet1/0/16

    Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0

 

 Interface: Ethernet1/0/17

    Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0

 

 Interface: Ethernet1/0/18

    Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0

 

 Interface: Ethernet1/0/19

    Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0

 

 Interface: Ethernet1/0/20

    Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0

 

 Interface: Ethernet1/0/21

    Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0

 

 Interface: Ethernet1/0/22

    Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0

 

 Interface: Ethernet1/0/23

    Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0

 

 Interface: Ethernet1/0/24

    Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0

 

 Interface: GigabitEthernet1/1/1

    Status: Enabled, Pkts Snd: 28438, Pkts Rvd: 54160, Pkts Err: 0

    Neighbor 1:  Aging Time: 176(s)

       MAC Address : 000f-cbb8-9528

       Port Name   : GigabitEthernet1/0/20

       Software Ver: V100R002B01D011SP1

       Device Name : H3C S5600-50C

       Port Duplex : AUTO

       Product Ver : V100R002B01D011SP1

 

 Interface: GigabitEthernet1/2/1

    Status: Enabled, Pkts Snd: 1, Pkts Rvd: 1, Pkts Err: 0  

Table 2-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: 1

NDP version 1 is running

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

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

 

2.1.2  ndp enable

Syntax

ndp enable [ interface port-list ]

undo ndp enable [ interface port-list ]

View

System view, Ethernet port view

Parameter

interface port-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 port-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 in system view to enable NDP globally. When being executed in Ethernet port view, this command enables NDP for an Ethernet port.

Use the undo ndp enable command in system view to disable NDP globally. When being executed in Ethernet port view, this command disables NDP for an Ethernet port.

By default, NDP is enabled both globally and on an Ethernet port.

Note that the NDP feature on a port does not take effect until the NDP feature is enabled globally.

Example

# Enable NDP globally.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] ndp enable

2.1.3  ndp timer aging

Syntax

ndp timer aging aging-in-secs

undo ndp timer aging

View

System view

Parameter

aging-in-secs: Holdtime (in seconds) to be set of the NDP information sent by the local switch. This argument ranges from 5 to 255.

The default holdtime is 180 seconds.

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.

Note that NDP information holdtime is longer than the interval to send NDP packets. 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.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] ndp timer aging 60

2.1.4  ndp timer hello

Syntax

ndp timer hello timer-in-seconds

undo ndp timer hello

View

System view

Parameter

timer-in-seconds: Interval (in seconds) to send NDP packets ranging from 5 to 254. By default, the interval to send NDP packets is 60 seconds.

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.

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.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] ndp timer hello 80

2.1.5  reset ndp statistics

Syntax

reset ndp statistics [ interface port-list ]

View

User view

Parameter

interface port-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 port-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.

<H3C> reset ndp statistics

2.2  NTDP Configuration Commands

2.2.1  display ntdp

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.

<H3C> 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 2-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

 

2.2.2  display ntdp device-list

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.

<H3C> display ntdp device-list

MAC             HOP  IP                  PLATFORM

 000f-e20f-3133  2                        S3100-8C-SI

 000f-e20f-c415  2    31.31.31.5/24       S3100-8C-SI

 000f-e20f-2579  1                        S3100-8C-SI

 000f-e20f-1751  0    31.31.31.1/24       S3100-8C-SI

 000f-e20f-0043  2                        S3600-28P-HI

 000f-e20f-3199  3                        S3100-8C-SI

Table 2-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

PLATFORM

Platform information about a device

IP

IP address and mask length of the management VLAN interface on the device

 

# Display the detailed device information collected through NTDP.

<H3C> display ntdp device-list verbose

Hostname  : abc_1.H3C

MAC       : 000f-e20f-3133

Hop       : 2

Platform  : S3100-SI

IP        :

Version   :

H3C Comware Platform Software                                    

Comware Software, Version 3.10                                               

Copyright(c)2004-2007 Hangzhou H3C Technologies Co.,Ltd. All rights reserved.

S3100 3100-0001

 

Cluster   :  Member switch of cluster H3C , Administrator MAC: 000f-e20f-1751

Stack     :  Candidate switch

 

Peer MAC        Peer Port ID            Native Port ID          Speed Duplex

000f-e20f-3199  Ethernet1/0/3           Ethernet1/0/3           200   FULL

000f-e20f-2579  Ethernet1/0/2           Ethernet1/0/2           400   FULL

 

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

 

Hostname  : abc_5.H3C

MAC       : 000f-e20f-c415

Hop       : 2

Platform  : S3100-SI

IP        : 31.31.31.5/24

Version   :

H3C Comware Platform Software                                    

Comware Software, Version 3.10                                               

Copyright(c)2004-2007 Hangzhou H3C Technologies Co.,Ltd. All rights reserved.

S3100 3100-0001

 

Cluster   :  Member switch of cluster H3C , Administrator MAC: 000f-e20f-1751

Stack     :  Candidate switch

 

Peer MAC        Peer Port ID            Native Port ID          Speed Duplex

000f-e20f-2579  Ethernet1/0/1           Ethernet1/0/1           100   FULL

 

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

 

Hostname  : abc_4.H3C

MAC       : 000f-e20f-2579

Hop       : 1

Platform  : S3100-SI

IP        :

Version   :

H3C Comware Platform Software                                    

Comware Software, Version 3.10                                               

Copyright(c)2004-2007 Hangzhou H3C Technologies Co.,Ltd. All rights reserved.

S3100 3100-0001

 

Cluster   :  Member switch of cluster H3C , Administrator MAC: 000f-e20f-1751

Stack     :  Candidate switch

 

Peer MAC        Peer Port ID            Native Port ID          Speed Duplex

000f-e20f-0043  Ethernet0/2             Ethernet1/0/15          100   FULL

000f-e20f-1751  Ethernet1/0/4           Ethernet1/0/4           200   FULL

000f-e20f-3133  Ethernet1/0/2           Ethernet1/0/2           400   FULL

000f-e20f-c415  Ethernet1/0/1           Ethernet1/0/1           100   FULL

 

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

 

Hostname  : abc_3.H3C

MAC       : 000f-e20f-1751

Hop       : 0

Platform  : S3100-SI

IP        : 31.31.31.1/24

Version   :

H3C Comware Platform Software                                    

Comware Software, Version 3.10                                               

Copyright(c)2004-2007 Hangzhou H3C Technologies Co.,Ltd. All rights reserved.

S3100 3100-0001

 

Cluster   :  Administrator switch of cluster H3C

Stack     :  Candidate switch

 

Peer MAC        Peer Port ID            Native Port ID          Speed Duplex

000f-cbb8-9528  GigabitEthernet1/0/20   GigabitEthernet1/1/1    2000  FULL

000f-e20f-3133  Ethernet1/0/11          Ethernet1/0/10          100   FULL

000f-e20f-2579  Ethernet1/0/4           Ethernet1/0/4           200   FULL

 

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

 

Hostname  : abc_2.H3C

MAC       : 000f-e20f-3199

Hop       : 3

Platform  : S3100-SI

IP        :

Version   :

H3C Comware Platform Software                                    

Comware Software, Version 3.10                                                

Copyright(c)2004-2007 Hangzhou H3C Technologies Co.,Ltd. All rights reserved.

S3100 3100-0001

 

Cluster   :  Candidate switch

Stack     :  Candidate switch

 

Peer MAC        Peer Port ID            Native Port ID          Speed Duplex

000f-e20f-3133  Ethernet1/0/3           Ethernet1/0/3           200   FULL

Table 2-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

Number of hops from the device to the device which launches the topology collection

Platform

Software platform of the device

IP

IP address of the cluster management VLAN interface on the device

Version

Version of the device

Cluster

The role of the device in the cluster

Peer MAC

MAC address of a neighbor device

Native Port ID

Name of the local port which a neighbor device is connected to

Peer Port ID

Name of the peer port connected to the local port

Speed

Speed of the neighbor device port

Duplex

Duplex mode of the neighbor device port

 

2.2.3  ntdp enable

Syntax

ntdp enable

undo ntdp enable

View

System view, Ethernet port view

Parameter

None

Description

Use the ntdp enable command in system view to enable NTDP globally. When being executed in Ethernet port view, this command enables NTDP for an Ethernet port.

Use the undo ntdp enable command in system view to disable NTDP globally. When being executed in Ethernet port view, this command disables NTDP for an Ethernet port.

By default, NTDP is enabled globally and on NDP-supported ports. For a port that does not support NDP, NTDP cannot operate even if you enable NTDP for the port.

Note that the NDTP cannot operate if it is enabled on a port where NDP is disabled.

Example

# Enable NTDP globally on the switch.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] ntdp enable

2.2.4  ntdp explore

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.

<H3C> ntdp explore

2.2.5  ntdp hop

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. By default, the value is 3.

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.

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.

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.H3C> system-view

System View: return to User View with Ctrl+Z.

[aaa_0.H3C] ntdp hop 5

2.2.6  ntdp timer

Syntax

ntdp timer interval-in-minutes

undo ntdp timer

View

System view

Parameter

Interval-in-minutes: Interval (in minutes) to collect topology information, ranging from 0 to 65,535. This argument defaults to 0, which 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.

B y default, the interval to collect topology information is 1 minute.

A switch collects topology information once in each period set by the ntdp timer command.

Note that 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.

Example

# Set the interval to collect topology information to 30 minutes.

<aaa_0.H3C> system-view

System View: return to User View with Ctrl+Z.

[aaa_0.H3C] ntdp timer 30

2.2.7  ntdp timer hop-delay

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 and defaults to 200.

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.

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.

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.H3C> system-view

System View: return to User View with Ctrl+Z.

[aaa_0.H3C] ntdp timer hop-delay 300

2.2.8  ntdp timer port-delay

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. A switch forwards received topology request packets to all its ports in turn. After forwarding a received topology-collection request packet through one port, the switch delays for specific period before it forwards the packet through the next port.

Use the undo ntdp timer port-delay command to restore the default delay time.

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.

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.H3C> system-view

System View: return to User View with Ctrl+Z.

[aaa_0.H3C] ntdp timer port-delay 40

2.3  Cluster Configuration Commands

2.3.1  add-member

Syntax

add-member [ member- number] mac-address H-H-H [ 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.

H-H-H: MAC address of the candidate device (in hexadecimal).

password: Password of the candidate device, a string comprising 1 to 256 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.

You can add a candidate device to a cluster on the management device only.

If you do not specify the member number when adding a cluster member, the management device assigns the least available member number to it.

After a candidate device is added to a cluster, its device password becomes the management device password.

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 000f-e20f-35e7 and 123456.)

<aaa_0.H3C> system-view

System View: return to User View with Ctrl+Z.

[aaa_0.H3C] cluster

[aaa_0.H3C-cluster] add-member 6 mac-address 000f-e20f-35e7 password 123456

2.3.2  administrator-address

Syntax

administrator-address mac-address name name

undo administrator-address

View