Baic comware based HP switch SSH configuration


We have new comware based HP  5130 EI switches, and the CLI is quite different from the Procurve. Can someone help me with initial basic config, as I find the guide a bit confusing. All I need is the following:

setup a management vlan and give it an IP address
create a local manager user/password
enable ssh with local authentication

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Richard MurphySenior Network AnalystCommented:
Creating a vlan
[HP]vlan 2
[HP]description "Management vlan"
[HP]interface vlan 2
[HP-Vlan-interface2]ip address 24
[HP-Vlan-interface2]description "Management Vlan"

If you are using an OSPF enviroment, using the loopback interface for management proves a better option.


First thing you need to do is Create the SSH shared Key.

[HP] public-key local create rsa

Then we need to give the user the right to log on
[HP] local-user *your user name*
[HP-luser-admin]password cipher *your password*
[HP-luser-admin] authorization-attribute level 3
[HP-luser-admin] service-type ssh

Start the Server
[HP] ssh server enabled

Give the terminal access the switch and SSH
[HP]user-interface vty 0 15
[HP-ui-vty0-15] authentication-mode scheme
[HP-ui-vty0-15]idle-timeout 0 0
[HP-ui-vty0-15]protocol inbound ssh

Hope this helps

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Richard MurphySenior Network AnalystCommented:
Few other tips
<HP> is operator mode, from here you can run basic diagnostics and view the status as well as the running config with the display command

<HP>display current-configuration


<HP>display transceiver diagnosis interface GigabitEthernet 1/0/49

to do any kind of switch administration you have to be in the system-view mode.
[HP]ospf 1

Unlike Cisco the config can be saved back from any view

to return to the operator view you can type quit until you reach the desired level or.

Hope this also helps
rookie_bAuthor Commented:
Mohammed AbdulCommented:
Thanka a lot Richard. Can you also share how to update the firmware please of HP 5130 Switch
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Switches / Hubs

From novice to tech pro — start learning today.