30-Cluster Command

Download


Chapter 1  HGMP V2 Configuration Commands

1.1  NDP Configuration Commands

1.1.1  display ndp

Syntax

display ndp [ interface port-list ]

View

Any view

Parameter

interface port-list: Specifies a port list. 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 unit ID/slot number/port number). to is used to specify 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 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.

Use the display ndp interface command to display NDP configuration and operating information on specified ports.

Example

# Display all NDP configuration and operating 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: 15835, Pkts Rvd: 2879, 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: 10362, Pkts Rvd: 10360, Pkts Err: 0

 

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: 0, Pkts Rvd: 0, Pkts Err: 0

 

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

# Display NDP information about Ethernet1/0/1.

<aaa_0.H3C> display ndp interface Ethernet 1/0/1

Interface: Ethernet1/0/1

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

   Neighbor 1:  Aging Time: 147(s)

      MAC Address : 00e0-fc00-3600

      Port Name   : Ethernet1/0/1

      Software Ver: V100R002B01D001

      Device Name : H3C S3628

      Port Duplex : AUTO

      Product Ver : 3600-001       

Table 1-1 Description on the fields of the two commands

Field

Description

Neighbor Discovery Protocol is enabled

NDP is enabled globally on this switch.

Neighbor Discovery Protocol Ver: 1

NDP version 1 is running.

Hello Timer

Interval for this switch to send NDP packets

Aging Timer

Holdtime for neighbors to keep the NDP information of this switch

Interface

Port index, used to identify a port

Status

Enable/disable status of NDP on the port

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

 

1.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 port list. 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 unit ID/slot number/port number). to is used to specify a port range. &<1-10> means that you can provide up to ten port indexes/port index ranges for this argument.

Description

In system view:

Use the ndp enable command to enable NDP globally.

Use the undo ndp enable command to disable NDP globally.

 When you execute the ndp enable command in system view without the interface keyword, NDP is enabled globally; when you do this with the interface keyword, NDP is enabled on specified ports.

In Ethernet port view:

Use the ndp enable command to enable NDP on the current port.

Use the undo ndp enable command to disable NDP on the port.

When using this command in Ethernet port view, you are not allowed to input the interface keyword and NDP is enabled on the current port only.

By default, NDP is enabled both globally and on ports.

Note that, unless NDP is enabled globally, it does not take effect on a port even when it is enabled on the port.

Example

# Enable NDP globally.

<H3C> system-view

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

[H3C] ndp enable

1.1.3  ndp timer aging

Syntax

ndp timer aging aging-in-seconds

undo ndp timer aging

View

System view

Parameter

aging-in-seconds: Holdtime of the NDP information sent by this device, ranging from 5 to 255 seconds.

Description

Use the ndp timer aging command to set the holdtime of the NDP information sent by this switch. This command specifies how long receiving devices should hold the NDP neighbor information received from this device 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 this device. When an adjacent device receives a NDP packet from this device, it learns how long it should keep the NDP information of this device 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 to send NDP packets. Otherwise, NDP port neighbor table will become unstable.

Example

# Set the holdtime of the NDP information sent by this switch to 60 seconds.

<H3C> system-view

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

[H3C] ndp timer aging 60

1.1.4  ndp timer hello

Syntax

ndp timer hello timer-in-seconds

undo ndp timer hello

View

System view

Parameter

timer-in-seconds: Interval to send NDP packets, ranging from 5 to 254 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.

By default, this interval is 60 seconds.

The NDP information hold on neighbors for this device should be updated regularly to reflect this device's changes in real time. You can use the ndp timer hello command to adjust the frequency in which neighbors update the NDP information of this device.

Note that NDP information holdtime should be longer than the interval to send NDP packets. Otherwise, NDP port neighbor table will become unstable.

Example

# Set the interval to send NDP packets to 80 seconds.

<H3C> system-view

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

[H3C] ndp timer hello 80

1.1.5  reset ndp statistics

Syntax

reset ndp statistics [ interface port-list ]

View

User view

Parameter

interface port-list: Specifies a port list. 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 unit ID/slot number/port number). to is used to specify 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

1.2  NTDP Configuration Commands

1.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 displayed information includes topology collection range (hop count), topology collection interval (NTDP timer), device/port forward delay of topology collection requests, and time used by 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 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

Timer

Interval to collect topology information

"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

Port Delay

Delay for ports on other devices to forward topology collection requests

Last collection total time

Time used by the last topology collection

 

1.2.2  display ntdp device-list

Syntax

display ntdp device-list [ verbose ]

View

Any view

Parameter

verbose: Displays detailed device information.

Description

Use the display ntdp device-list command to display the device information collected by NTDP.

Example

# Display the list of devices collected by NTDP.

<H3C> display ntdp device-list

MAC               HOP  IP                  PLATFORM

00e0-fc00-3901    0    100.100.1.1/24      S3600

00e0-fc00-3190    1    16.1.1.1/24         S3600

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.

<H3C> display ntdp device-list verbose

Hostname  : H3C

MAC       : 00e0-fc00-3600

Hop       : 0

Platform  : S3600

IP        : 100.100.1.1/24

Version   :

H3C Comware Platform Software                              

Comeware Software, Version 3.10                                         

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

S3600 3600-0002

Cluster   :  Candidate switch

 

Peer MAC        Peer Port ID            Native Port ID          Speed Duplex

00e0-fc00-3190  Ethernet1/0/22         Ethernet3/0/21          100   FULL

 

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

 

Hostname  : 3600-3

MAC       : 00e0-fc00-3190

Hop       : 1

Platform  : S3600

IP        : 16.1.1.1/24

Version   :

H3C Comware Platform Software                              

Comeware Software, Version 3.10                                          

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

S3600 3600-0002

Cluster   :  Candidate switch

 

Peer MAC        Peer Port ID            Native Port ID          Speed Duplex

00e0-fc00-3600  Ethernet3/0/21         Ethernet1/0/22          100   FULL

5600-0000-3334  GigabitEthernet1/0/32  Ethernet1/0/4           100   FULL

Table 1-4 Description on the fields of the display ntdp device-list verbose command

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

 

1.2.3  ntdp enable

Syntax

ntdp enable

undo ntdp enable

View

System view, Ethernet port view

Parameter

None

Description

In system view:

Use the ntdp enable command to enable NTDP globally.

Use the undo ntdp enable command to disable NTDP globally.

In Ethernet port view:

Use the ntdp enable command to enable NTDP on the current port.

Use the undo ntdp enable command to disable NTDP on the current port.

By default, NTDP is enabled both globally and on ports.

Note that even when NTDP is enabled on a port, it cannot operate on the port if NDP is disabled on the port.

Example

# Enable NTDP globally.

<H3C> system-view

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

[H3C] ntdp enable

1.2.4  ntdp explore

Syntax

ntdp explore

View

User view

Parameter

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

Example

# Start a topology collection process.

<H3C> ntdp explore

1.2.5  ntdp hop

Syntax

ntdp hop hop-value

undo ntdp hop

View

System view

Parameter

hop-value: Maximum hops to collect topology information, ranging from 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 this command is only applicable to topology-collecting device, and a wider collection range requires more memory of the topology-collecting device.

Example

# Set the topology collection range to 5 hops.

<aaa_0.H3C> system-view

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

[aaa_0.H3C] ntdp hop 5

1.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. Value 0 of this argument specifies not to perform periodic topology 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.

Note that:

l           If the display ntdp command displays "disable" in the Timer field, it means this device is not a management device and will not perform periodic topology collection.

l           After a cluster is set up on an S3600 series switch, the switch will collect the topology information of the network at the topology collection interval you set and automatically add the candidate devices 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.

Example

# Set the topology collection interval to 30 minutes.

<aaa_0.H3C> system-view

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

[aaa_0.H3C] ntdp timer 30

1.2.7  ntdp timer hop-delay

Syntax

ntdp timer hop-delay time

undo ntdp timer hop-delay

View

System view

Parameter

time: Device forward delay in milliseconds. This argument ranges from 1 to 1,000.

Description

Use the ntdp timer hop-delay command to set the delay for collected devices to forward topology collection requests through their first port.

Use the undo ntdp timer hop-delay command to restore the default device forward delay.

By default, the device forward 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 the first forwarding port. You can use the ntdp timer hop-delay command to set the delay.

You can use the command on a collecting switch. The delay value you set by the ntdp timer hop-delay 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 through their first port.

Example

# Set the delay for collected switches to forward topology collection requests through their 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

1.2.8  ntdp timer port-delay

Syntax

ntdp timer port-delay time

undo ntdp timer port-delay

View

System view

Parameter

time: Port forward delay in milliseconds. This argument ranges from 1 to 100.

Description

Use the ntdp timer port-delay command to set the delay for collected switches to forward topology collection requests through the next port.

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

By default, the port forward 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 how long they should wait before they forward the received topology collection requests through the next port.

Example

# Set the delay for collected switches to forward topology collection requests through the next port 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

1.3  Cluster Configuration Commands

1.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 the cluster. This argument ranges from 1 to 255.

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

password: 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 unless the candidate device is not configured with a password (in this case, you need not input this 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.

After you add a candidate device to the cluster, the password of the device automatically changes to the management device password.

Note that, after a cluster is set up on an S3600 series switch, the switch will collect the topology information of the network at the topology collection interval you set and automatically add the candidate devices it discovers into the cluster. If you do not want the candidate switches to be automatically added into the cluster, you can set the topology collection interval to zero (by the ntdp timer command), which specifies not to perform periodic topology collection.

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 respectively.)

<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 00E0-fc00-35e7 password 123456

1.3.2  administrator-address

Syntax

administrator-address mac-address name name

undo administrator-address

View

Cluster view

Parameter

mac-address: MAC address of the management device to be set.

name: Name of an existing cluster, a string of up to 8 characters, which can only be alphanumeric characters, minus signs (-), and underscores (_).

Description

Use the administrator-address command to add a device to a cluster by setting the management device MAC address and cluster name of a cluster on the device.

Use the undo administrator-address command to remove a member device from the cluster.

The commands here are generally used for debugging and restore purpose.

By default, a switch does not belong to any cluster.

A cluster has one and only one management device. After you set the MAC address of the management device on a member device, the member device is still able to identify the management device after system reboot.

It is recommended to use the delete-member command to remove a member from a cluster on the management device.

Example

# Remove a member device from the cluster.

<aaa_1.H3C> system-view

System View: return to User View with Ctrl+Z

[aaa_1.H3C] cluster

[aaa_1.H3C-cluster] undo administrator-address

1.3.3  auto-build

Syntax

auto-build [ recover ]

View

Cluster view

Parameter

recover: Recovers all member devices automatically.

Description

Use the auto-build command to start an automatic cluster building process.

You can execute this command on a candidate device as well as on a management device.

When you execute this command on a candidate device, you are prompted to enter a cluster name to build a cluster. Then, the system automatically collects candidate devices and adds them to the cluster.

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. So 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 will not be successfully added to the cluster.

 

&  Note:

l      After a cluster is built automatically, ACL 3998 and ACL 3999 will be generated automatically.

l      After a cluster is built automatically, ACL 3998 and ACL 3999 can neither be configured/modified nor removed.

 

Example

# Start an automatic cluster building process.

<H3C> system-view

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

[H3C] cluster

[H3C-cluster] auto-build

 

 Please input cluster name:aaa

 Collecting candidate list, please wait...

 

 Candidate list:

 

 Name                            Hops  MAC Address     Device

Processing...please wait

 Cluster auto-build Finish!

 0 member(s) added successfully.

 

[aaa_0.H3C-cluster]

1.3.4  build

Syntax

build name

undo build

View

Cluster view

Parameter

name: Name to be set for the cluster, a string of up to 8 characters, which can only be alphanumeric characters, minus signs (-), and underscores (_).

Description

Use the build command to build a cluster with a cluster name or change the cluster name.

Use the undo build command to remove the cluster.

You can use this command on a candidate device as well as on a management device.

Executing the build command on a candidate device will change the device to a management device and assign a name to the cluster created on the device.

Executing the build command on a management device will change the cluster name of the management device.

The member number of a management device is 0.

Note that, after a cluster is set up on an S3600 series switch, the switch will collect the topology information of the network at the topology collection interval you set and automatically add the candidate devices it discovers into the cluster. If you do not want the candidate switches to be automatically added into the cluster, you can set the topology collection interval to zero (by the ntdp timer command), which specifies not to perform periodic topology collection.

 

&  Note:

To reduce the risk of being attacked by malicious users against opened socket and enhance switch security, the S3600 series Ethernet switches provide the following functions, so that a cluster socket is opened only when it is needed:

l      Opening UDP port 40000 (used for cluster) only when the cluster function is implemented,

l      Closing UDP port 40000 at the same time when the cluster function is closed.

On the management device, the preceding functions are implemented as follows:

l      When you create a cluster by using the build or auto-build command, UDP port 40000 is opened at the same time.

l      When you remove a cluster by using the undo build or undo cluster enable command, UDP port 40000 is closed at the same time.

On member devices, the preceding functions are implemented as follows:

l      When you execute the add-member command on the management device to add a candidate device to a cluster, the candidate device changes to a member device and its UDP port 40000 is opened at the same time.

l      When you execute the auto-build command on the management device to have the system automatically add candidate devices to a cluster, the candidate devices change to member devices and their UDP port 40000 is opened at the same time.

l      When you execute the administrator-address command on a device, the device's UDP port 40000 is opened at the same time.

l      When you execute the delete-member command on the management device to remove a member device from a cluster, the member device's UDP port 40000 is closed at the same time.

l      When you execute the undo build command on the management device to remove a cluster, UDP port 40000 of all the member devices in the cluster is closed at the same time.

l      When you execute the undo administrator-address command on a member device, UDP port 40000 of the member device is closed at the same time.

 

Example

# Configure the current switch as a management device and set the cluster name to aaa.

<H3C> system-view

System View: return to User View with Ctrl+Z

[H3C] cluster

[H3C-cluster] build aaa

1.3.5  cluster

Syntax

cluster

View

System view

Parameter

None

Description

Use the cluster command to enter cluster view.

Example

# Enter cluster view.

<H3C> system-view

System View: return to User View with Ctrl+Z

[H3C] cluster

[H3C-cluster]

1.3.6  cluster enable

Syntax

cluster enable

undo cluster enable

View

System view

Parameter

None

Description

Use the cluster enable command to enable the cluster function.

Use the undo cluster enable command to disable the cluster function.

By default, the cluster function is enabled.

To create a cluster on a device with the build command, you must first execute the cluster enable command.

You can use the two commands on any devices that support the cluster function.

l           When you execute the undo cluster enable command on a management device, the cluster and all its members are removed, the device stops operating as a management device, and the cluster function is disabled on the device.

l           When you execute the undo cluster enable command on a member device, the device leaves the cluster, and the cluster function is disabled on the device.

l           When you execute undo cluster enable command on a device that does not belong to any cluster, the cluster function is disabled on the device.

Example

# Enable the cluster function on a switch.

<H3C> system-view

System View: return to User View with Ctrl+Z

[H3C] cluster enable

1.3.7  cluster switch-to

Syntax

cluster switch-to { member-number | mac-address H-H-H | administrator }

View

User view

Parameter

member-number: Member number of a member device, ranging from 1 to 255.

mac-address H-H-H: Specifies the MAC address of a member device.

administrator: Switches back from the member device to the management device.

Description

Use the cluster switch-to command to switch between the management device and a member device for configuration and management.

On the management device, you can switch to the view of a member device to configure and manage the member device, and then switch back to the management device.

Both switching directions (from the management device to a member device, and from a member device to the management device) will use Telnet connection. Switching is performed based on the following rules:

l           Both switching directions will perform authentication. In a switching process, the system will authenticate the level-3 super password. If the super password on the device that requests the switching is inconsistent with that on the requested device, the switching fails. When a candidate device joins the cluster, its super password will automatically synchronize to the supper password on the management device. It is recommended not to change the super password of any cluster member or the management device, so as to avoid switching failure resulting from authentication failure.

l           After you switch from the management device to a member device, the member device view will inherit the user privilege level of the current management device view.

l           After you switch from a member device to the management device, the privilege level on the management device view will be determined by the configuration on the management device.

l           If all the Telnet resources on the requested device are used up, the switching to the device will not succeed.

When you execute this command on the management device with an inexistent member number or a MAC address that is not in the member list, an error will occur. In this case, you can enter quit to end the switching.

Example

# Switch from the management device to number-6 member device and then switch back to the management device.

<aaa_0.H3C> cluster switch-to 6

<aaa_6.H3C> quit

<aaa_0.H3C>

1.3.8  cluster-mac

Syntax

cluster-mac H-H-H

undo cluster-mac

View

Cluster view

Parameter

H-H-H: Multicast MAC address to be set for the cluster, in hexadecimal format. This argument can be one of the following addresses: 0180-C200-0000, 0180-C200-000A, 0180-C200-0020 to 0180-C200-002F.

Description

Use the cluster-mac command to configure a multicast MAC address for the cluster.

Use the undo cluster-mac command to restore the default multicast MAC address.

The default multicast MAC address is 0180-C200-000A.

Note that, you can only use this command on a management device.

The management device in a cluster is able to periodically broadcast HGMP V2 multicast MAC synchronization packets. After you configure a multicast MAC address on the management device, all the member/candidate devices of the cluster will synchronize to the same multicast MAC address by receiving multicast MAC synchronization packets. This guarantees that the member/candidate devices of the cluster can receive the multicast packets from the management device.

Example

# Configure multicast MAC address 0180-C200-0028 for the cluster.

<aaa_0.H3C> system-view

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

[aaa_0.H3C] cluster

[aaa_0.H3C-cluster] cluster-mac 0180-C200-0028

1.3.9  cluster-mac syn-interval

Syntax

cluster-mac syn-interval time-interval

View

Cluster view

Parameter

time-interval: Interval to send HGMP V2 multicast MAC synchronization packets, ranging from 0 to 30 minutes.

Description

Use the cluster-mac syn-interval command to set the interval for the management device to send HGMP V2 multicast MAC synchronization packets periodically. You can only use this command on a management device.

By default, this interval is one minute.

If you set this interval to zero on a management device, the management device will not send HGMP V2 multicast MAC synchronization packets to other devices.

Example

# Set the interval for the management device to send HGMP V2 multicast MAC synchronization packets to one minute.

<aaa_0.H3C> system-view

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

[aaa_0.H3C] cluster

[aaa_0.H3C-cluster] cluster-mac syn-interval 1

1.3.10  delete-member

Syntax

delete-member member-number

View

Cluster view

Parameter

member-number: Member number of a member device, ranging from 1 to 255.

Description

Use the delete-member command to remove a member device from the cluster.

You can only perform the operation on a management device. Otherwise, error will occur.

Note that, after a cluster is set up on an S3600 series switch, the switch will collect the topology information of the network at the topology collection interval you set and automatically add the candidate devices it discovers into the cluster. If you do not want the candidate switches to be automatically added into the cluster, you can set the topology collection interval to zero (by the ntdp timer command), which specifies not to perform periodic topology collection.

Example

# Remove number-2 member device from the cluster.

<aaa_0.H3C> system-view

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

[aaa_0.H3C] cluster

[aaa_0.H3C-cluster] delete-member 2

1.3.11  display cluster

Syntax

display cluster

View

Any view<