H3C S9500 Series Routing Switches Operation Manual-(V1.01)

HomeSupportSwitchesH3C S9500 Series SwitchesConfigure & DeployConfiguration GuidesH3C S9500 Series Routing Switches Operation Manual-(V1.01)
15-Integrated Management Operation
Title Size Download
15-Integrated Management Operation 105 KB

Chapter 1  HGMP V1 Configuration

1.1  HGMP V1 Overview

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 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 Ethernet 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:

l           Use a H3C S9500 series routing switch as the HGMP Server, with Ethernet switches attached to it as the HGMP Clients.

l           Use S2403F or S2008B/S2016B/S2026B/S3026 Ethernet 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.

Figure 1-1 Diagram of a network that employs HGMP V1

 

&  Note:

An S3026/S2008/S2016/S2026/S2403H Ethernet 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 Ethernet switches. But it cannot be both an HGMP Client and an HGMP Server simultaneously in a network.

 

1.2  HGMP Server Configuration

The following sections describe HGMP Server configuration tasks.

l           Enabling HGMP Server on a management device

l           Upgrading Ethernet switches through the management device

l           Saving configuration information about the switches connected to the management device

l           Setting state and aliases for the Ethernet switches connected to it

l           Configuring a specific low-end Ethernet switches through the management device

1.2.1  Enabling HGMP Server on a Management Device

 

&  Note:

The management device here refers to an Ethernet switch, which administrates the Ethernet switches connected to it using HGMP V1.

 

You can use the following commands to enable HGMP Server on a management device.

Perform the following configuration in the corresponding view on the management device.

Table 1-1 Enable HGMP Server on a management device

Operation

Command

Enable HGMP Server globally in system view and enter HGMP view.

hgmpserver enable

Disable HGMP Server globally in system view.

hgmpserver disable

Restore the default global HGMP Server configuration in system view.

undo hgmpserver

Enable HGMP on the port in Ethernet port view.

hgmpport enable

Disable HGMP on the port in Ethernet port view.

hgmpport disable

Configure the Ethernet switches connected to the port to be organized in star topology in HGMP view.

spanning-hub { enable | disable } slotno subslot port-list

Display the information about the star-type network mode of the port in HGMP view.

query hgmpport-mode

 

To implement HGMP, you must enable HGMP globally first, and then enable HGMP on the port.

To manage cascading switches, use the spanning-hub { enable | disable } slotno subslot port-list command on the corresponding ports of the management device.

An HGMP Server identifies each Ethernet switch by its lanswitch-loc number. A lanswitch-loc number comprises slot number, subslot number, port number and sequence number (such as 0/1/1-/). However, this number cannot indicate the actual physical position of an Ethernet 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, which identifies a port of the management device, through which the Ethernet switch operating as the HGMP Client is connected to the management device.

p1 is a port number, which identifies the port of the layer 1 Ethernet switch connecting to the Ethernet switch operating as the HGMP Client.

p2 is a port number, which identifies the port of the layer 2 Ethernet switch connecting to the Ethernet switch operating as the HGMP Client.

For example, lanswitch-loc of 3/1/3-/ identifies a layer 1 Ethernet 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 Ethernet switch connected to port 2 of Layer 1 Ethernet 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 Ethernet switch connected to port 1 of a layer 2 Ethernet switch. Its root node is the 3/1/3 port of the management device.

1.2.2  Upgrading Software on an Ethernet Switch through the Management Device

With HGMP employed, you can use the HGMP Server to upgrade the software run on the Ethernet 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 bootrom 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 TFPT services after the management device starts.

Following is an example to download upgrade program using TFTP with the assumption that:

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

l           The network adapter of the computer is connected to an Ethernet port of the management device.

l           Run TFTP Server on the computer to enable the management device, which operates as a TFTP Client, to download the upgrade program.

l           The computer and the management device are in the same network segment.

Perform the following configuration in system view on the management device.

Table 1-2 Download files using TFTP

Operation

Command

Download files using TFTP

tftp tftp-server get source-file [ dest-file ]

 

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 H3C S9500 Series Routing Switches  Command Manual.

II. Download the upgrade program from the flash memory of the management device to the upgrade memory section.

Perform the following configuration in HGMP view.

Table 1-3 Load the upgrade program to the upgrade memory section of the management device

Operation

Command

Load the upgrade program for the Ethernet switch to upgrade memory section of the management device

load lswprogram filename

 

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 run 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 in HGMP view. You can execute the display command in any view.

Table 1-4 Upgrade a specified switch

Operation

Command

Upgrade a specified Ethernet switch

upgrade lanswitch lanswitch-loc { app | bootrom }

Display the information about a registered Ethernet switch

display lanswitch { all | port slot subslot port | position lanswitch-loc } [ error ] [ inactive ]

 

Substitute the lanswitch-loc argument with the position information of the desired Ethernet switch in the form of those described in section 1.2.1  Enabling HGMP Server on a Management Device”, such as 3/1/1-/.

IV. Rebooting the connected Ethernet switch to make the upgrade take effect

Perform the following configuration in HGMP view.

Table 1-5 Reboot an Ethernet switch

Operation

Command

Reset a specified Ethernet switch

reset lanswitch lanswitch-loc

 

Make sure the specified Ethernet 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 an Ethernet switch using it to make room for other upgrade programs.

Perform the following configuration in user view on a management device.

Table 1-6 Delete a upgrade program from the management device

Operation

Command

Delete a upgrade program from the management device

delete [ /unreserved ] file-url

 

For more information about the delete command, refer to H3C S9500 Series Routing Switches  Command Manual.

1.2.3  Saving Configuration Information about Connected Switches

You can save configuration information about the managed switches to the management device.

Perform the following configuration in HGMP view.

Table 1-7 Save configuration information about management switches

Operation

Command

Save the configuration information of a specified Ethernet switch to the memory of the management device.

save lswconfig lanswitch-loc

Save the configuration information of a specified Ethernet switch to the flash memory.

backup lswconfig

 

Configuration information about a specified Ethernet 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 the save lswconfig command retrieves to the flash memory. As data saved in the flash memory does not get lost even the management device reboots, so, with its configuration information saved in the flash memory, you can quickly restore the operating state of an Ethernet switch using its configuration information after the Ethernet switch resets.

# 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 Aliases of an Ethernet Switch

Contrary to the fact that HGMP identifies Ethernet switches using their position parameters; it is infeasible for users to locate a managed Ethernet switch by its position parameter. An intuitive alternative is, to set aliases for Ethernet switches using the set lswname command.

In addition, you can set the state of an Ethernet switch to be active or inactive through the management device.

Perform the following configuration in HGMP view.

Table 1-8 Set the state and alias of an Ethernet switch

Operation

Command

Set the state of a specified Ethernet switch

set lanswitch lanswitch-loc { inactive | active }

Configure an alias for an Ethernet switch

set lswname lanswitch-loclist name-list

Remove a configured alias

undo set lswname lanswitch-loclist

 

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 Ethernet Switch through the Management Device

S2008B/S2016B/S2026B and S2403F series Ethernet switches are all low-end switches. After enabling HGMP Server on the management device and HGMP Client on these low-end Ethernet switches, you can manage the connected low-end Ethernet switches through the management device.

Using HGMP, you can configure any connected low-end Ethernet switch by configuring the management device. You can perform the following configuration on the management device to configure the connected low-end Ethernet 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 series Ethernet 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 in HGMP view.

Table 1-9 Specify default configuration settings

Operation

Command

Specify the configuration of a switch to be the default configuration settings

set lswconfig lanswitch-loc asdefault

 

To configure an Ethernet switch, you need to enter the configuration view of the switch on the management device first.

Perform the following configuration in HGMP view.

Table 1-10 Enter the configuration view of a specified Ethernet switch

Operation

Command

Enter the configuration view of a specified Ethernet switch

lanswitch lanswitch-loc

 

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 view 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 series Ethernet switches.

Perform the following configuration in lanswitch view.

Table 1-11 Perform port, VLAN and other configurations for a specified switch

Operation

Command

Aggregate multiple ports to one port

set link-aggregation port-list { sa | dasa } groupid

Disable the address learning function of the port of the switch

lock port port-list

Query address aged time of the switch

query address agedtime

Query gateway IP address of the switch

query gatewayip

Query manage IP address of the switch

query manageip vlan-id

Query lock state of the port of the switch

query port lockstate

Query system information of the switch

query system info

Query VDLS link rates of the port

query vdsllink [ port-list ]

Query VLAN state information of the switch

query vlanstate

Set address aged time of the switch

set address agedtime agedtimevalue

Set the gateway IP address of the switch

set gatewayip ip-address

Cancel the setting of gateway IP address of the switch

undo set gatewayip ip-address

Set the management IP address of the switch

set manageip ip-address netmask [ vlan-id ]

Cancel the setting of the management IP address of the switch

undo set manageip ip-address netmask [ vlan-id ]

Set the VDSL link rates of the port of the switch

set vdsllink port-list uprate uprate-list downrate downrate-list

Query how ports are aggregated

query link-aggregation

Configure the port tag status, and the relationship between Ethernet switch ports and VLANs.

set port port-list vlanid vlan-id-list [ tagged | untagged ]

Set flow control configuration for ports

flow port port-list { both | none }

Set duplex state for ports

duplex port port-list { auto | half | full }

Set port rate for ports

speed port port-list { auto | 10m| 100m }

Close specified switch ports

close port port-list

Enable specified switch ports

undo close port port-list

Query port states of specified ports

query port [ port-list | lockstate ]

Set port mirroring

set mirror monitor-port monitor-port [ port-list ]

Cancel port mirroring configuration

undo set mirror

Query information about port mirroring

query mirror

Set loopback test for specified ports

set loop-test { internal | external } port-list

Configure the Ethernet switch to use the default configuration

auto config default port-start-vlanid

Set the priority for specified ports

set priority { high | low } port-list

Set the QoS weight for the ports with high priority

set qos-weight weight

Cancel the QoS weight configured for the ports with high priority

undo set qos-weight

Set attributes for specified VLAN

set vlanid vlanid port-list

Restore the default VLAN attributes

undo set vlanid vlanlist

Query the rmon statistics of the Ethernet switch

query rmon port port-list { forward | trans |recv | err | all }

Set a password

set superview-password password

Cancel the password

undo set superview-password

Set a domain name for the switch

set sysname name-word

Save or remove the configuration file

set config-flash { write | erase }

Query the current configuration of switch

query active-configuration

Query the configuration information saved on the switch

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

These operations are applicable to S2008B/S2016B/S2026B/S3026 series Ethernet switches.

Perform the following configuration in lanswitch view.

Table 1-12 Configure the address table for a S2008B/S2016B/S2026B/S3026 series switch

Operation

Command

Add an address entry

add addritem mac-addr { unicast port [ aged | noaged | permanent ] | multicast vlanid port-list mctype }

Remove a multicast address entry

delete multicast mac-addr vlanid vlanid

Remove an unicast address entry

delete uniaddr mac-addr

Modify a multicast address entry

modify multiaddr mac-addr vlanid port-list mctype

Modify an unicast address entry

modify uniaddr mac-addr { aged | noaged | permanent }

Search specified multicast addresses in the address table

search multiaddr mac-addr-list vlanid vlanid-list

Search specified unicast addresses in the address table

search uniaddr mac-addr-list

Display the unicast address entries of a specified port

query uniaddr port spec-port index shownum

Display the multicast address entries in a specified VLAN

query multiaddr vlanid vlanid

Query the number of the occupied address entries

query used addrnum

Query the current configuration of the connected switches

query active-configuration

Query the startup configuration of the connected switches

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 Ethernet swtich

Perform the following configuration in lanswitch view.

Table 1-13 Configure an S2403F Ethernet switch

Operation

Command

Configure the Ethernet switch using the default configuration settings

auto config default port-start-vlanid

Display the management IP address and subnet mask of the Ethernet switch and the IP address of the default gateway

query ip address

Set or remove the management IP address and subnet mask of the Ethernet switch and the IP address of the default gateway

set ip address ip-address mask [ gateway-address ]

Set the management MAC address for the Ethernet switch

set mac mac-address

Configure the port tag status, and the relationship between Ethernet switch ports and VLANs

set port port-list vlanid vlan-id-list [ tagged | untagged ]

Set the VLAN data of the Ethernet switch

set vlan vlan-index-list { vlanid vlan-id-list [ port-list ] | broadcast port-list [ vlan-id-list ] }

Set working mode for specified ports of the Ethernet switch

set workmode port-list { auto | 10m-full | 10m-half | 100m-full | 100m-half }

Allow the specified port self loopback

loop port port-list

Prohibit the specified port self loopback

undo loop port port-list

Close specified switch ports

close port port-list

Enable specified switch ports

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.2.6  Displaying and Debugging HGMP Server

After performing the above configurations, you can check the information about HGMP Server by executing the display command in any view to verify these configurations. You can also debug HGMP Server module by using the debugging command in user view.

Table 1-14 Display and debug HGMP Server

Operation

Command

Display information about the HGMP server

display hgmpserver

Display operating information about HGMP

display current-configuration

Enable/Disable debugging for HGMP

[ undo ] debugging hgmps { all | error | info | packet }

 

1.3  HGMP V1 Configuration Example

I. Network requirements

Switch A serves as the management device. Switch B and Switch C are connected to the Ethernet1/1/1 port and Ethernet1/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 0 1-2

[H3C-hgmp] quit

[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 Ethernet switches registered with Switch A, through which you can obtain position parameters of each Ethernet switch.

<H3C> display lanswitch all

Lanswitch list.........

 

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

   No. 1

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

           Position        : LANSWITCH[0/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[0/1/3-/2/]

            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 Ethernet switch 3/1/1-/ on the management device.

[H3C-hgmp] set lswname 3/1/1-/ switch1

# Set duplex state to auto for the port 1 of the 1#S2008B Ethernet switch on the management device.

[H3C-hgmp] lanswitch 3/1/1-/

[H3C-lanswitch3/1/1-/] duplex port 1 auto

# Set duplex state to auto for the port 1 of the 2#S2008B Ethernet switch on the management device.

[H3C-hgmp] lanswitch 3/1/2-/

[H3C-lanswitch3/1/2-/] duplex port 1 auto

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网