HP NETWORKING DUMP


HP A-series commands cheat sheet

posted 25 Mar 2016, 02:36 by DR Labs   [ updated 29 Jun 2016, 01:54 by Donald Ross ]

LAB ACCESS SETUP 

telnet server enable
line vty 0 4
 authentication-mode none

BGP

dis ip routing-table protocol bgp 

###

Display the routing information the specified BGP peer advertised or received
display bgp routing-table peer peer-address { advertised | received } [ network-address [ mask ] | statistic ]

###

Display the total number or route entries received or advertised by all BGP peers
display bgp routing-table [ advertised | received ] statistic

###

display bgp routing-table ipv4 vpn-instance TEST_OUTSIDE peer 60.1.1.2 advertised-routes

###

dis bgp routing-table ipv4 vpn-instance TEST_OUTSIDE peer 60.1.1.2 received-routes

###

dis current-configuation confiuration  vpn-instance  | include vrf11

###

dis ip vpn-instance instance name xxx (shows vlans associated with the vpn)

###


###


HP and Cisco CLI Equivalents

HP                                 Cisco
display                             show
undo                               no
local-user                         user
return                             end
quit                               exit
save                               write
delete                             erase
save                               write
sysname                            hostname
rip                                router rip
ospf                               router ospf
bgp                                router bgp
ip route-static                    ip route
acl                                access-list
user-interface vty0 4              Line vty0 4
screen-length disable              Terminal length 0
Terminal monitor                   Terminal monitor
Terminal logging
Terminal debugging                 Logging console level
display current-configuration      show run
display save-configuration         Show start
display diagnostic-information     show tech-support
display brief interfaces           show interfaces status
display ip int brief               show ip int brief
display ip routing-table           show ip route
display info-center                show logging
display version                    show version
save                               write memory
reset saved(user view)             erase startup-config
display version                    show version


HP command alias
command-alias enable
command-alias mapping display show
command-alias mapping undo no
command-alias mapping return end
command-alias mapping quit exit
command-alias mapping sysname hostname
command-alias mapping acl access-list
command-alias mapping save write
command-alias mapping delete erase
command-alias mapping info-center logging



BGP examples on HP A-series (comware7)

posted 10 Feb 2016, 07:50 by DR Labs   [ updated 9 Apr 2016, 23:54 ]

This lab was configured using HPs H3C cloud lab software. I've attached the exported configuration file.




DEVICE 1 - LOCAL
bgp 65000
 peer 172.16.0.1 as-number 65999
 #
 address-family ipv4 unicast
  network 10.0.0.0 255.0.0.0
  peer 172.16.0.1 enable
  peer 172.16.0.1 route-policy RP-WAN-IN import
#
route-policy RP-WAN-IN permit node 10
 if-match ip address prefix-list PL-WAN-IN
#
route-policy RP-WAN-IN permit node 20
 if-match as-path 1
#
 ip prefix-list PL-WAN-IN index 10 permit 50.0.0.0 8
#
 ip as-path 1 permit _64555$

DEVICE 2 - WAN
bgp 65999
 peer 172.16.0.2 as-number 65000
 peer 172.16.1.1 as-number 64000
 #
 address-family ipv4 unicast
  peer 172.16.0.2 enable
  peer 172.16.1.1 enable

DEVICE 3 - DC1
bgp 64000
 peer 172.16.1.2 as-number 65999
 peer 172.16.2.1 as-number 64555
 #
 address-family ipv4 unicast
  network 50.0.0.0 255.0.0.0
  peer 172.16.1.2 enable
  peer 172.16.2.1 enable

DEVICE 4 - 365
bgp 64555
 peer 172.16.2.2 as-number 64000
 peer 172.16.3.1 as-number 61000
 #
 address-family ipv4 unicast
  network 90.0.0.0 255.0.0.0
  network 100.0.0.0 255.0.0.0
  peer 172.16.2.2 enable
  peer 172.16.3.1 enable
#

DEVICE 5 - Internet
bgp 61000
 peer 172.16.3.2 as-number 64555
 #
 address-family ipv4 unicast
  network 80.0.0.0 255.0.0.0
  peer 172.16.3.2 enable


SSH on an HP A-series switch

posted 7 Feb 2016, 01:18 by DR Labs   [ updated 21 Jun 2016, 14:06 by Donald Ross ]

Minimal configuration to enable SSH on an HP A-series switch
-
public-key local create rsa
-
ssh server enable
-
user-interface vty 0 4
authentication-mode scheme
protocol inbound ssh
-
local-user sshuser
password simple mypassword

1-3 of 3