Operation Manual Cluster Management. Table of Contents

Similar documents
Command Manual MAC Address Table Management H3C S5500-EI Series Ethernet Switches. Table of Contents

Operation Manual System Management. Table of Contents

Operation Manual DHCP. Table of Contents

Command Manual Network Protocol. Table of Contents

VERTICAL HORIZON VH-2402S FAST ETHERNET SWITCH MANAGEMENT GUIDE

Chapter 3 Command List

Managed Ethernet Switch User s Manual

The features and functions of the D-Link Web Smart Switch can be configured for optimum use through the Web-based Management Utility.

SWP-0208G, 8+2SFP. 8-Port Gigabit Web Smart Switch. User s Manual

Operation Manual VRRP. Table of Contents

ISCOM 2126 Series Switch Command Notebook

Management Software AT-S79. User s Guide. For use with the AT-GS950/16 and AT-GS950/24 Smart Switches. Version Rev.

Table of Contents. 2 Static Route Configuration Commands 2-1 Static Route Configuration Commands 2-1 delete static-routes all 2-1 ip route-static 2-1

Command Manual (For Soliton) VLAN-VPN. Table of Contents

Operation Manual ARP H3C S5500-SI Series Ethernet Switches. Table of Contents

Management Software AT-S101. User s Guide. For use with the AT-GS950/8POE Gigabit Ethernet WebSmart Switch. Version Rev.

Table of Contents. 1 TFTP Configuration Commands 1-1 TFTP Client Configuration Commands 1-1 tftp-server acl 1-1 tftp 1-2 tftp ipv6 1-3

Configuring Layer 2 Switching

AT-GS950/10PS Switch Web Interface User s Guide AT-S110 [ ]

Loopback detection configuration commands

Cisco IOS Commands. abort CHAPTER

The features and functions of the D-Link Smart Managed Switch can be configured through the web-based management interface.

Table of Contents Chapter 1 MSTP Configuration

Table of Contents Chapter 1 Portal Configuration Commands

Loop detection commands 1

Command Manual IPv4 Routing H3C S3610&S5510 Series Ethernet Switches. Table of Contents

Managing Your Switches

TL-SG2216/TL-SG2424 Gigabit Smart Switch

Configuring DHCP. Information About DHCP. DHCP Server. DHCP Relay Agent. DHCP Snooping

Appendix B Command Line Interface Commands

XonTel XT-1600G/XT-2400G PoE Switches Web Management User-Guide

T PCT. Smart PoE Switch REV

AT-S41 Version 1.1.7C Management Software for the AT-8326GB and AT-8350GB Series Fast Ethernet Switches. Software Release Notes

Configuring Rapid PVST+ Using NX-OS

Table of Contents. Chapter 1 Port Configuration Overview

For information about configuring these settings from Cluster Management Suite (CMS), refer to the online help.

Configuring Interfaces and Circuits

H3C S5120-EI Switch Series

Application Guide. Stacking XGS / XGS HP / XGS / XGS HP

Cisco Discovery Protocol Version 2

Configuring SPAN and RSPAN

Table of Contents 1 Ethernet Interface Configuration Commands 1-1

TL-SG2216/TL-SG2424/TL-SG2424P/TL-SG2452. Gigabit Smart Switch REV

ADMINISTRATION GUIDE Cisco Small Business 200 Series Smart Switch Administration Guide Release 1.1

TL-SL2210/TL-SL2218/TL-SL2428/TL-SL2452. Smart Switch REV

Appendix A Command Index A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Configuring Virtual Private LAN Services

Trademarks. Statement of Conditions by NETGEAR, Inc. All rights reserved.

Figure 7-1 Unicast Static FDB window

Index. B Boot software 5-2 Bridging architecture 7-6 Broadcast filter 8-55 limiting 8-22 Buffer port 7-9 Syslog 8-17, 8-20

GVM-1101 / GVM-1220 / GVM-1000 Web Smart Media Converter

Ethernet Interface Configuration Commands

HP FlexFabric 5930 Switch Series

Table of Contents. 4 System Guard Configuration 4-1 System Guard Overview 4-1 Guard Against IP Attacks 4-1 Guard Against TCN Attacks 4-1

Ethernet interface commands

Multicast H3C Low-End Ethernet Switches Configuration Examples. Table of Contents

AT-GS950/8. AT-GS950/8 Web Interface User Guide AT-S113 Version [ ] Gigabit Ethernet Switch Rev A

Ethernet Interface Configuration Commands

Configuring and Monitoring from the Hub Manager

Configuring Port-Based Traffic Control

Table of Contents 1 IPv6 Configuration IPv6 Application Configuration 2-1

Configuring VLANs. Understanding VLANs CHAPTER

User Guide Easy Smart Configuration Utility

Configuring VLANs. Understanding VLANs CHAPTER

HP A3100 v2 Switch Series

Table of Contents 1 IPv6 Configuration IPv6 Application Configuration 2-1

Table of Contents 1 IGMP Snooping Configuration 1-1

Configuring Rapid PVST+

Table of Contents Chapter 1 EPON System Configuration Chapter 2 OLT Configuration Chapter 3 ONU Configuration

Configuring DHCP Features and IP Source Guard

H3C S9500 Series Routing Switches

Lenovo Flex System SI Gb System Interconnect Module. Release Notes. for Networking OS 8.2

Configuring the MAC Address Table

Configuring DHCP. Finding Feature Information. Information About DHCP. DHCP Server. DHCP Relay Agent

DXS-3600 Series Layer 3 Managed 10Gigabit Ethernet Switch Web UI Reference Guide

Appendix A Command Index

Introduction to DHCP. DHCP Overview

Operation Manual DHCP H3C S3600 Series Ethernet Switches-Release Table of Contents

Cisco Discovery Protocol Version 2

Table of Contents 1 MSTP Configuration Commands 1-1

Switch Memory and Configuration

Out-of-Band Management

VLAN Configuration. Understanding VLANs CHAPTER

Configuring VLANs. Understanding VLANs CHAPTER

Table of Contents 1 Static Routing Configuration RIP Configuration 2-1

ProCurve Switch G ProCurve Switch G

8-port mk2 user s guide v port mk2

Troubleshooting DHCP server configuration 28

TL-SG5428 TL-SG5412F. 24-Port Gigabit L2 Managed Switch with 4 SFP Slots. 12-Port Gigabit SFP L2 Managed Switch with 4 Combo 1000BASE-T Ports REV2.1.

Configuring VLANs. Understanding VLANs CHAPTER

Catalyst Switch Operations. 2000, Cisco Systems, Inc. 6-1

HP MSR Router Series. Layer 2 LAN Switching Command Reference(V7)

HP Routing Switch Series

802.1w Rapid Spanning Tree Protocol (RSTP) 802.1d Spanning Tree Protocol (STP)

Configuring VLANs. Understanding VLANs CHAPTER

PASS4TEST IT 인증시험덤프전문사이트

3. What could you use if you wanted to reduce unnecessary broadcast, multicast, and flooded unicast packets?

Operation Manual IPv4 Routing H3C S3610&S5510 Series Ethernet Switches. Table of Contents

DHCP Overview. Introduction to DHCP

Configuring VPLS. VPLS overview. Operation of VPLS. Basic VPLS concepts

Transcription:

Table of Contents Table of Contents... 1-1 1.1 HGMP V1 Over... 1-1 1.2 HGMP Server Configuration... 1-2 1.2.1 Enabling HGMP Server on a Management Device... 1-2 1.2.2 Upgrading Software on a Switch through the Management Device... 1-4 1.2.3 Saving Configuration Information about Connected Switches... 1-6 1.2.4 Setting the State and Alias of a Switch... 1-6 1.2.5 Configuring a Specific Low-End Switch through the Management Device... 1-7 1.3 Displaying and Debugging HGMP Server... 1-13 1.4 HGMP V1 Configuration Example... 1-13 Chapter 2 NDP Configuration... 2-1 2.1 Introduction to NDP... 2-1 2.2 NDP Configuration Task List... 2-2 2.2.1 Enabling NDP in the System... 2-2 2.2.2 Configuring NDP on a Port... 2-3 2.2.3 Configuring the Aging Timer for NDP Information... 2-3 2.2.4 Configuring the Interval to Send NDP Packets... 2-3 2.3 Displaying and Maintaining NDP... 2-4 2.4 NDP Configuration Example... 2-4 i

When configuring HGMPv1, go to these sections for information you are interested in: HGMP V1 Over HGMP Server Configuration Displaying and Debugging HGMP Server HGMP V1 Configuration Example 1.1 HGMP V1 Over Huawei Group Management Protocol (HGMP) functions in the following two ways: Enables management devices to administrate switches in a centralized way. Operations such as switch registering, software upgrading, configuration querying and setting, and rebooting can be performed uniformly. It allows switch cascading, that is, a switch can communicate with the management devices through another switch. HGMP has two versions: HGMP V1 and HGMP V2. HGMP V1 is mainly applied in network environments where networking and services are simple to provide a convenient management mode. HGMP V2 is mainly applied in complicated network environments to provide more diversified, flexible, and personalized services. It features convenient networking, flexible management, abundant functions, and high reliability. Cluster members managed by HGMP V2 must support the layer 3 protocol stack. Those cluster members that do not support the layer 3 protocol stack can be managed by HGMP V1 only. HGMP V1 is implemented by HGMP Server and HGMP Client. An HGMP Server resides on a management device. It provides a command interface for users and is in charge of displaying maintenance commands. It also provides specific data structures to store the information about the switches attached to it. HGMP Client responds to the maintenance and query commands issued by the management device and operates accordingly. It also maintains the communication with the management device. HGMP V1 can be implemented as follows: Use a H3C S9500 series routing switch as the HGMP Server, with switches attached to it as the HGMP Clients. Use S2403F or S2008B/S2016B/S2026B/S3026 switches as the HGMP Clients, other switches as the HGMP Servers. Figure 1-1 shows the diagram of a typical network that employs HGMP V1 in this way. 1-1

HGMP HGMP V2 V2 manages manages the the network network made made up up of of Middle range - - range and and low- end - end Ethernet Ethernet switches switches HGMP V1 S2403 F S2026 B S 2008B S 2016B Figure 1-1 Diagram of a network that employs HGMP V1 Note: An S3026/S2008/S2016/S2026/S2403F switch can either be an HGMP Client and be under administration of a H3C S9500 series routing switch or be an HGMP Server and administrate switches. But it cannot be both an HGMP Client and an HGMP Server simultaneously in a network. Currently, S9500 Series Switches support HGMP V1 as well as NDP in HGMP V2. 1.2 HGMP Server Configuration This section covers these topics: Enabling HGMP Server on a Management Device Upgrading Software on a Switch through the Management Device Saving Configuration Information about Connected Switches Setting the State and Alias of a Switch Configuring a Specific Low-End Switch through the Management Device 1.2.1 Enabling HGMP Server on a Management Device Note: The management device here refers to a switch, which administrates the switches connected to it using HGMP V1. 1-2

Perform the following configuration to enable HGMP Server on a management device: Enable HGMP Server globally and enter HGMP. Disable HGMP Server globally Restore the default global HGMP Server configuration Enable HGMP on the port Disable HGMP on the port Configure the switches connected to the port to be organized in star topology. Display the information about the star-type network mode of the port. hgmpserver enable hgmpserver disable undo hgmpserver hgmpport enable hgmpport disable spanning-hub { enable disable } slotno subslot port-list query hgmpport-mode Available in system Available in system Available in system Available in Ethernet port Available in Ethernet port Available in HGMP Available in HGMP To implement HGMP, you must enable HGMP globally first, and then enable HGMP on the port. To manage cascaded switches, use the spanning-hub { enable disable } slotno subslot port-list command on the corresponding ports of the management device. An HGMP Server maintains each switch by its lanswitch-loc number. A lanswitch-loc number comprises slot number, subslot number, port number and sequence number (for example 3/1/3-/). However, this number cannot indicate the actual physical position of a switch in a star network topology. A lanswitch-loc number is in the form of slot/subslot/port-/p1/p2/, among which: port is a port number on the management device that the switch is connected to. p1 is a port number on the layer 1 switch that the switch is connected to. p2 is a port number on the layer 2 switch that the switch is connected to. For example, lanswitch-loc of 3/1/3-/ identifies a layer 1 switch directly connected to the port 3 on subslot 1 of slot 3 of the management device. Whereas 3/1/3-/2/ identifies a layer 2 switch connected to port 2 of layer 1 switch. Its root node is the 3/1/3 port of the management device. A value of 3/1/3-/2/1/ identifies a Layer 3 switch connected to port 1 of a Layer 2 switch. Its root node is the 3/1/3 port of the management device. 1-3

1.2.2 Upgrading Software on a Switch through the Management Device With HGMP employed, you can use the HGMP Server to upgrade the software run on the switches connected to the HGMP Server. I. Downloading the upgrade program to the flash memory of the management device Note that: Do not try to download the upgrade program using Boot ROM menu items when the management device starts, instead, you need to download the upgrade program to the flash memory of the management device using FTP or TFTP services after the management device starts. Following is an example to download upgrade program using TFTP with the assumption that: The serial port of the computer that is used to configure the management device locally is connected to the Console port of the management device. The network adapter of the computer is connected to an Ethernet port of the management device. Run TFTP Server on the computer to enable the management device, which operates as a TFTP Client, to download the upgrade program. The computer and the management device are in the same network segment. Perform the following configuration to download a file using TFTP on the management device: Download files using TFTP tftp tftp-server get source-file [ dest-file ] Available in user Substitute the tftp-server argument with the IP address or host name of the TFTP server, the source-file argument with the name of the file to be downloaded, and the dest-file argument with the file name to save the downloaded file as. For more information about the tftp get command, refer to the corresponding description in the command manual.. II. Downloading the upgrade program from the flash memory of the management device to the upgrade memory section Perform the following configuration to load the upgrade program to the upgrade memory section of the management device: 1-4

Load the upgrade program for the switch to upgrade memory section of the management device load lswprogram filename Available in HGMP Substitute the filename argument with the file name of the upgrade program in the Flash memory. III. Upgrading a specified switch When upgrading the software running on a switch, you need to provide position information about the switch. You can use the display lanswitch all command to acquire the position parameters of a registered switch. Perform the following configuration to upgrade a specified switch: Upgrade a specified switch Display the information about a registered switch upgrade lanswitch lanswitch-loc { app bootrom } display lanswitch { all port slot subslot port position lanswitch-loc } [ error ] [ inactive ] Available in HGMP Available in any Substitute the lanswitch-loc argument with the position information of the desired switch in the form of those described in section Enabling HGMP Server on a Management Device, such as 3/1/1-/. IV. Rebooting the connected switch to make the upgrade take effect Reset a specified switch reset lanswitch lanswitch-loc Available in HGMP Make sure the specified switch have enough free flash memory to hold the upgrade program. V. Deleting a upgrade program from the management device As a management device has limited flash memory, you need to delete an upgrade program after finishing upgrading a switch using it to make room for other upgrade programs. Perform the following configuration to delete an upgrade program from the management device: 1-5

Delete a upgrade program from the management device delete [ /unreserved ] file-url Available in user For more information about the delete command, refer to File System Management Commands. 1.2.3 Saving Configuration Information about Connected Switches Perform the following configuration to save configuration information about the managed switches into the management device: Save the configuration information of a specified switch to the memory of the management device. Save the configuration information of a specified switch to the flash memory. save lswconfig lanswitch-loc backup lswconfig Available in HGMP Available in HGMP Configuration information about a specified switch that is saved to the memory of the management device using the save lswconfig command gets lost after you reboot the management device. The backup lswconfig command saves the configuration information collected by the save lswconfig command to the flash memory. As data saved in the flash memory does not get lost even if the management device is rebooted. Therefore, with its configuration information saved in the flash memory, you can quickly restore the operating state of a switch using its configuration information in the case of switch resetting. # Save the configuration information about the Ethernet switch directly connected to the 1/1/20-/ port to the memory. [H3C-hgmp] save lswconfig 1/1/20-/ Waiting... # Write the configuration information saved in the memory to the flash memory. [H3C-hgmp] backup lsw Writing lanswitch configuration to flash... 1.2.4 Setting the State and Alias of a Switch Contrary to the fact that HGMP identifies switches using their position parameters, it is impossible for users to locate a managed switch by its position parameter. An intuitive alternative is, to set aliases for switches using the set lswname command. 1-6

In addition, you can set the state of a managed switch to be active or inactive on the management device. Perform the following configuration to set the state and alias of a managed switch: Set the state of a specified switch Configure an alias for an switch Remove a configured alias set lanswitch lanswitch-loc { inactive active } set lswname lanswitch-loclist name-list undo set lswname lanswitch-loclist Available in HGMP Available in HGMP Available in HGMP Save the configuration information to the flash memory of the management device using the backup lswconfig command. 1.2.5 Configuring a Specific Low-End Switch through the Management Device S2008B/S2016B/S2026B and S2403F switches are all low-end switches. After enabling HGMP Server on the management device and HGMP Client on these low-end switches, you can manage the connected low-end switches through the management device. Using HGMP, you can configure any connected low-end switch by configuring the management device. You can perform the following configuration on the management device to configure the connected low-end switches: port rate configuration, port aggregation configuration, VLAN configuration, address table configuration, VLAN management configuration, and so on. I. Specifying default configuration settings These operations are applicable to S2008B/S2016B/S2026B/S3026 switches. You can specify the configuration of a switch, such as port rate, flow control, duplex settings and tag status of the port, to be the default configuration settings and apply it to all switches that are of the same model, through which you can have other switches automatically configured using the auto config command. Perform the following configuration to specify default configuration settings: Specify the configuration of a switch to be the default configuration settings set lswconfig lanswitch-loc asdefault Available in HGMP 1-7

To configure a switch, you need to enter the configuration of the switch on the management device first. Perform the following configuration on the management device to enter the configuration of a specified switch: Enter the configuration of a specified switch lanswitch lanswitch-loc Available in HGMP You can configure port rate, port aggregation, VLAN, and so on for a specified switch on the management device only after you enter the configuration of the specified Ethernet switch on the management device. II. Performing port, VLAN and other configurations for a specified switch These operations are applicable to S2008B/S2016B/S2026B/S3026 switches. Perform the following configuration for a specified switch on the management device: Aggregate multiple ports to one port Disable the address learning function of the port of the switch Query address aged time of the switch Query gateway IP address of the switch Query manage IP address of the switch Query lock state of the port of the switch Query system information of the switch Query VDSL link rates of the port Query VLAN state information of the switch Set address aged time of the switch Set the gateway IP address of the switch set link-aggregation port-list { sa dasa } groupid lock port port-list query address agedtime query gatewayip query manageip vlan-id query port lockstate query system info query vdsllink [ port-list ] query vlanstate set address agedtime agedtimevalue set gatewayip ip-address 1-8

Cancel the setting of gateway IP address of the switch Set the management IP address of the switch Cancel the setting of the management IP address of the switch Set the VDSL link rates of the port of the switch Query how ports are aggregated Configure the port tag status, and the relationship between switch ports and VLANs. Set flow control configuration for ports Set duplex state for ports Set port rate for ports Close specified switch ports Enable specified switch ports Query port states of specified ports Set port mirroring Cancel port mirroring configuration Query information about port mirroring Set loopback test for specified ports Configure the switch to use the default configuration Set the priority for specified ports undo set gatewayip ip-address set manageip ip-address netmask [ vlan-id ] undo set manageip ip-address netmask [ vlan-id ] set vdsllink port-list uprate uprate-list downrate downrate-list query link-aggregation set port port-list vlanid vlan-id-list [ tagged untagged ] flow port port-list { both none } duplex port port-list { auto half full } speed port port-list { auto 10m 100m } close port port-list undo close port port-list query port port-list set mirror monitor-port monitor-port [ port-list ] undo set mirror query mirror set loop-test { internal external } port-list auto config default port-start-vlanid set priority { high low } port-list 1-9

Set the QoS weight for the ports with high priority Cancel the QoS weight configured for the ports with high priority Set attributes for specified VLAN Restore the default VLAN attributes Query the rmon statistics of the switch Set a password Cancel the password Set a domain name for the switch Save or remove the configuration file Query the current configuration of switch Query the configuration information saved on the switch set qos-weight weight undo set qos-weight set vlanid vlanid port-list undo set vlanid vlanlist query rmon port port-list { forward trans recv err all } set super-password password undo set super-password set sysname name-word set config-flash { write erase } query active-configuration query saved-configuration You can use the auto config command to configure specified ports with the default configuration settings, such as port rate, flow control, duplex state, and tag state. When executing the auto config command, you must provide the port-start-vlanid argument to specify the starting VLAN ID of the specified port, through which you can add multiple ports to one VLAN. You can perform these configurations locally. Refer to the corresponding operation manual of the switch you are configuring for more information. III. Configuring the address table for a specified switch The configuration is applicable to S2008B/S2016B/S2026B/S3026 switches. Perform the following configuration to configure the address table for the S2008B/S2016B/S2026B/S3026 switch on the management device: 1-10

Add an address entry Remove a multicast address entry Remove an unicast address entry Modify a multicast address entry Modify an unicast address entry Search specified multicast addresses in the address table Search specified unicast addresses in the address table Display the unicast address entries of a specified port Display the multicast address entries in a specified VLAN Query the number of the occupied address entries Query the current configuration of the connected switches Query the startup configuration of the connected switches add addritem mac-addr { unicast port [ aged noaged permanent ] multicast vlanid port-list mctype } delete multicast mac-addr vlanid vlanid delete uniaddr mac-addr modify multiaddr mac-addr vlanid port-list mctype modify uniaddr mac-addr { aged noaged permanent } search multiaddr mac-addr-list vlanid vlanid-list search uniaddr mac-addr-list query uniaddr port spec-port index shownum query multiaddr vlanid vlanid query used addrnum query active-configuration query saved-configuration You can also perform these configurations locally. Refer to the operation manual of the switch you are configuring for more information. IV. Configuring an S2403F switch Perform the following configuration on the management device to configure an S2403F switch: 1-11

Configure the switch using the default configuration settings Display the management IP address and subnet mask of the switch and the IP address of the default gateway Set or remove the management IP address and subnet mask of the switch and the IP address of the default gateway Set the management MAC address for the switch Configure the port tag status, and the relationship between switch ports and VLANs Set the VLAN data of the Ethernet switch Set working mode for specified ports of the Ethernet switch Allow the specified port self loopback Prohibit the specified port self loopback Close specified switch ports Enable specified switch ports auto config default port-start-vlanid query ip address set ip address ip-address mask [ gateway-address ] set mac mac-address set port port-list vlanid vlan-id-list [ tagged untagged ] set vlan vlan-index-list { vlanid vlan-id-list [ port-list ] broadcast port-list [ vlan-id-list ] } set workmode port-list { auto 10m-full 10m-half 100m-full 100m-half } loop port port-list undo loop port port-list close port port-list undo close port port-list You can use the auto config command to configure specified ports with the default configuration settings, such as port rate, flow control, duplex state, and tag state. When executing the auto config command, you must provide the port-start-vlanid argument to specify the starting VLAN ID of the specified port, through which you can add multiple ports to one VLAN. You can perform these configurations locally. Refer to the corresponding operation manual of the switch you are configuring for more information. 1-12

1.3 Displaying and Debugging HGMP Server Display information about the HGMP server Display current operating information about HGMP Enable/Disable debugging for HGMP Server display hgmpserver display current-configuration [ undo ] debugging hgmps { all error info packet } Available in any Available in any Available in user 1.4 HGMP V1 Configuration Example I. Network requirements Switch A serves as the management device. Switch B and Switch C are connected to the Ethernet 1/1/1 port and Ethernet 1/1/2 port of Switch A. II. Network diagram Figure 1-2 Network diagram for HGMP group management III. Configuration procedure # Enable HGMP Client on Switch B (refer to the command manual and operation manual of Switch B for detailed instructions). The following is only an example. The actual configuration varies with switch model and the network circumstances. # Enable HGMP Server on Switch A. [H3C] hgmpserver enable Start HGMP protocol successfully! [H3C-hgmp] spanning-hub enable 1 1 1-2 [H3C-hgmp] quit 1-13

[H3C] interface ethernet 1/1/1 [H3C-Ethernet1/1/1] hgmpport enable [H3C-Ethernet1/1/1] interface ethernet 1/1/2 [H3C-Ethernet1/1/2] hgmpport enable # Use the display command to display the information about the switches registered with Switch A, through which you can obtain position parameters of each switch. <H3C> display lanswitch all Lanswitch list... ------------------ No. 1 ------------------ Position : LANSWITCH[1/1/1-/1/] PortMode : STAR_MODE Lanswitch Name : lan1 Model : H3C S2008 Device ID : Vc.3.2 MacAddr : 00e0-fc2d-1f9c Status : NORMAL ------------------ No. 2 ------------------ Position : LANSWITCH[1/1/2-/1/] PortMode : STAR_MODE Lanswitch Name : lan2 Model : H3C S2026B Device ID : V10.30.1 MacAddr : 00e0-fc26-dfb7 Status : NORMAL # Set an alias for the switch 1/1/1-/ on the management device. [H3C-hgmp] set lswname 1/1/1-/ switch1 # Set duplex state to auto for port 1 of Switch B on the management device. [H3C-hgmp] lanswitch 1/1/1-/ [H3C-lanswitch1/1/1-/] duplex port 1 auto # Set duplex state to auto for port 1 of Switch C on the management device. [H3C-hgmp] lanswitch 1/1/2-/1/ [H3C-lanswitch1/1/2-/1/] duplex port 1 auto 1-14

Chapter 2 NDP Configuration Chapter 2 NDP Configuration When configuring NDP, go to these sections for information you are interested in: Introduction to NDP Displaying and Maintaining NDP NDP Configuration Example 2.1 Introduction to NDP As part of HGMP, Neighbor Discovery Protocol (NDP) is used to discover the information about a neighbor device directly connected, including the type, software/hardware version, port connected, ID, port address, and hardware platform of the neighbor device. A device running NDP periodically sends NDP packets to all ports with NDP enabled while receiving NDP packets from the neighbor device. The device receiving a NDP packet does not forward it, but maintains an NDP neighbor information table on the current device and stores the neighbor information carried in the NDP packets in this table. Besides neighbor device information, NDP packets contain the information about the aging timer for the NDP information, which specifies how long the NDP packets will be stored on the receiving device. If the NDP neighbor information is not updated even after the aging timer for NDP information expires, the device automatically deletes the entry corresponding to the NDP information from the NDP neighbor information table. If the neighbor information received by the device is different from the original information, the device updates the corresponding entry in the NDP neighbor information table. If the neighbor information received by the device is the same as the original information, the device updates only the aging timer in the NDP neighbor information table. You can also clear the current NDP information and collect NDP neighbor information again. Note: Upon receipt of NDP packets, a switch with NDP disabled directly forwards the packets to all ports in the same VLAN, while a switch with NDP enabled does not forward any NDP packet. 2-1

Chapter 2 NDP Configuration 2.2 NDP Configuration Task List Complete the following tasks to configure NDP: Task Enabling NDP in the System Configuring NDP on a Port Configuring the Aging Timer for NDP Information Configuring the Interval to Send NDP Packets Remarks Required Required Optional Optional Note: On the management device, NDP must be enabled in the system and on the ports. On member devices and candidate devices, the NDP feature must also be enabled in the system and on the corresponding ports. The aging timer for the NDP information sent from the management device is used during NDP operation. 2.2.1 Enabling NDP in the System To collect the NDP information sent by the neighbor device, you must enable NDP on the switch. With NDP enabled in the system, the switch periodically collects NDP information, which you can query by using the display ndp command. With NDP disabled in the system, the switch clears all NDP neighbor information stored on it but will still forwards NDP packets. Follow these steps to enable NDP in the system: Enter system system- Enable NDP in the system ndp enable [ interface port-list all ] By default, NDP is disabled in the system. Note: When you try to enable NDP on all ports, NDP is enabled only on the common Ethernet ports and GigabitEthernet ports that support NDP interface boards. 2-2

Chapter 2 NDP Configuration 2.2.2 Configuring NDP on a Port You can control the collection of neighbor device information for the specified port by enabling/disabling NDP on the port. With NDP enabled on the port and in the system, the system periodically collects the NDP neighbor information about the adjacent node of the port. With NDP disabled on the port, the system cannot collect NDP information through the port. Follow these steps to enable NDP on a port: Enter system system- Enter Ethernet port Enable NDP on the port interface interface-type interface-number ndp enable Currently, only common Ethernet interface boards and Gigabit Ethernet interface boards support NDP. By default, NDP is disabled on a port. 2.2.3 Configuring the Aging Timer for NDP Information Upon receipt of NDP packets, from the aging timer information carried in the packets, the switch can learn about the aging timer for the NDP information of the neighbor device that sent the packets and discards the NDP information of the neighbor device once the aging timer is exceeded. This configuration allows you to set the aging timer for the NDP information of the current device on the neighbor device. Follow these steps to configure the aging timer for NDP information: Enter system system- Configure the aging timer for NDP information ndp timer aging aging-in-secs By default, the aging timer for NDP information is 180 seconds. The aging timer for NDP information must be greater than the interval at which NDP packets are sent; otherwise, the NDP information table will be unstable. 2.2.4 Configuring the Interval to Send NDP Packets The NDP information of the adjacent device must be updated periodically to ensure that the switch can update the local NDP neighbor information table in time after the 2-3

Chapter 2 NDP Configuration configuration of the adjacent device is changed. You can configure the interval to send NDP packets by using the following command. Follow these steps to configure the interval to send NDP packets: Enter system system- Configure the interval at which NDP packets are sent ndp timer hello seconds By default, NDP packets are sent every 60 seconds. The interval at which NDP packets are sent must be less than the aging timer for NDP information. Otherwise, the NDP information table will be unstable. 2.3 Displaying and Maintaining NDP Display the NDP configuration of the system (including the interval at which packets are sent and the aging timer for NDP information Display the NDP neighbor information of the specified port Clear the statistics of an NDP-enabled port display ndp display ndp interface port-list reset ndp statistics [ interface port-list ] Available in any Available in any Available in user 2.4 NDP Configuration Example I. Network requirements Switch A, Switch B, and Switch C are interconnected. Ethernet 1/1/1 on Switch A is connected to Ethernet 1/1/1 on Switch B and Ethernet 1/1/2 on Switch A is connected to Ethernet 1/1/1 on Switch C. The information of the neighbor switches Switch B and Switch C that are connected to Switch A should be visible to Switch A through NDP configuration. 2-4

Chapter 2 NDP Configuration II. Network diagram Figure 2-1 Network diagram for NDP configuration III. Configuration procedure 1) Configure Switch A. # Enable NDP in the system and on Ethernet 1/1/1 and Ethernet 1/1/2. <H3C> system- System View: return to User View with Ctrl+Z. [H3C] ndp enable [H3C] interface ethernet 1/1/1 [H3C-Ethernet1/1/1] ndp enable [H3C-Ethernet1/1/1] quit [H3C] interface ethernet 1/1/2 [H3C-Ethernet1/1/2] ndp enable # Configure the aging timer for NDP information as 200 seconds. [H3C-Ethernet1/1/2] quit [H3C] ndp timer aging 200 # Configure NDP packets to be sent every 70 seconds. [H3C] ndp timer hello 70 2) Configure Switch B (Configure Switch C in a similar way). # Enable NDP on the device and Ethernet 1/1/1. <H3C> system- System View: return to User View with Ctrl+Z. [H3C] ndp enable [H3C] interface ethernet 1/1/1 [H3C-Ethernet1/1/1] ndp enable 2-5

Chapter 2 NDP Configuration Note: After the above-mentioned configuration, you can the information about the neighbor switch connected to the port by issuing the display ndp interface port-list command on Switch A. 2-6