Comware 7 Basic Config

You might not know this but over at HP Networking they have released the new version of Comware, the command line based switch operating system. Comware 7 is now shipping on HP 5900 switches with more to follow. There are a ton of new features that will be available in Comware 7, but to use them you must first get the switch online. There are some minor differences between Comware 5 and Comware 7 and I will attempt to guide you through getting ssh enabled and other basic tasks.

If you’re like me and believe the devil is in the details by all means look at this document!
http://bizsupport1.austin.hp.com/bc/docs/support/SupportManual/c03189486/c03189486.pdf

If you just want to get things going, by all means let’s get going.

You will need to eatablish a console session with the serial port on the switch, I will not cover that proceedure in this post. It’s easy…..go ahead get one going….I’ll wait…..

OK! Now we’re connected to the console session there will be a prompt. Something like. In order to configure the 5900, there is no need to issue the “Config Term” command. No, just enter system-view and the promt will change to [Switch], letting you know you can start to configure the switch. Please be aware that in my examples I show the system-view command but if you are already at the square bracket prompt, there is no need to enter the system-view command.

First things first, enable the ssh server.
enable_server

In this example, I am going to guide you through configuring “ssh”, so disregard the telnet server enable for now.

The next step is to generate a public key, just accept the defaults if you don’t know what all the settings are for.

enable_server

Comware command line is very similar to other popular command lines, so some of this might be very intuitive. In Comware we have a Virtual Interface concept which is very similar to Cisco’s CLI.
ip_address
We will test this a little later; let’s move on to the user-interface configuration. The user-interface is where the ssh session will terminate. These are commonly called vty ports. The following configuration walks through the setup. Please note that by issuing the protocol inbound ssh command, you will not be able to also use telnet.
user_interface
The “authentication-mode scheme” tells the switch to use local authentication. That means we will have to create a local user as well.
local_user
For this exercise we will use the “service-type ssh”. The “network-admin” role give the user the ultimate privileges on the switch. By default, network-admin is specified on the console user interface, and network-operator is specified on any other user interface. Here is a graphic that explains what different roles are available in Comware 7.
user_roles
In order to manage the switch with HP’s Intelligent Management Center, we will need to configure some SNMP parameters.
snmp
The last part of the basic configuration will be the default route. This should look familiar. The IP address at the end is the IP address of the default gateway.
ip_route
Now that we have finished the configuration let’s do a couple of things. Let’s test the network connectivity. Make sure you have at least one cable plugged into a port on vlan 1.
ping_test
If you see the ping results are good, then don’t for get to SAVE the configuration. From the command prompt issue the [Switch]save command. Follow the prompts for the filename.
The new Comware 7 switch should now be ready for access via ssh.