Configuring topology management
The concepts of blacklist and whitelist are used for topology management. An administrator can diagnose the network by comparing the current topology (namely, the information for a node and its neighbors in the cluster) and the standard topology.
Topology management whitelist (standard topology): A whitelist is a list of topology information that has been confirmed by the administrator as correct. You can get the information of a node and its neighbors from the current topology. Based on the information, you can manage and maintain the whitelist by adding, deleting or modifying a node.
Topology management blacklist: Devices in a blacklist are not allowed to join a cluster. A blacklist contains the MAC addresses of devices. If a blacklisted device is connected to a network through another device not included in the blacklist, the MAC address and access port of the latter are also included in the blacklist. The candidate devices in a blacklist can be added to a cluster only if the administrator manually removes them from the list.
The whitelist and blacklist are mutually exclusive. A whitelist member cannot be a blacklist member, and vice versa. However, a topology node can belong to neither the whitelist nor the blacklist. Nodes of this type are usually newly added nodes, whose identities are to be confirmed by the administrator.
You can back up and restore the whitelist and blacklist in the following two ways:
Backing them up on the FTP server shared by the cluster. You can manually restore the whitelist and blacklist from the FTP server.
Backing them up in the Flash of the management device. When the management device restarts, the whitelist and blacklist will be automatically restored from the Flash. When a cluster is re-established, you can choose whether to restore the whitelist and blacklist from the Flash automatically, or you can manually restore them from the Flash of the management device.
To configure cluster topology management:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter cluster view. | cluster | N/A |
3. Add a device to the blacklist. | black-list add-mac mac-address | Optional. |
4. Remove a device from the blacklist. | black-list delete-mac { all | mac-address } | Optional. |
5. Confirm the current topology and save it as the standard topology. | topology accept { all [ save-to { ftp-server | local-flash } ] | mac-address mac-address | member-id member-number } | Optional. |
6. Save the standard topology to the FTP server or the local Flash. | topology save-to { ftp-server | local-flash } | Optional. |
7. Restore the standard topology information. | topology restore-from { ftp-server | local-flash } | Optional. |