Networking

Common CLI Usage

Those work on most Unix like CLI interfaces…

Ctrl+a Move cursor to the stArt of line
Ctrl+e Move cursor to the End of line
Ctrl+w Delete Word left of cursor
Ctrl+h Delete cHar left of cursor (Comware 3 & 5 use this by default)
Ctrl+U Delete line


HP Comware Specific CLI Usage

The regular prompt is always <hostname>. “Enable” mode is reached by the “super” command, if necessary. To change configuration enter “sys” as in system-view and the prompt then changes to [hostname].

Shortcuts

Ctrl+g Display current confiGuration
Ctrl+l Display Routing TabLe
Ctrl+x Delete line
Ctrl+o Turn off all debugging

SW Upgrade

You can use “tftp get [server-ip] [file]” to download images. It is fairly slow, therefore it makes sense for larger files to enable the ftp server and upload from a client instead:

ftp server enable
local-user admin
password simple admin
authorization-attribute level 3 (CW5)
authorization-attribute user-role level-15 (CW7)
service-type ftp

After uploading you may need to upgrade the bootrom (just try) and set the new boot-loader:

boot-loader file flash:/bin slot all main

bootrom update file flash:/btm slot 1

Enable SNMP

This example shows how read and write access is enabled for standard communities and a typical NeDi location is set. Providing a NeDi user as contact, can be leveraged for device filters and searches:

snmp-agent
snmp-agent community read public
snmp-agent community write private
snmp-agent sys-info contact remo
snmp-agent sys-info location CH;Zurich;Zoo;U;DC;Rack1;40
snmp-agent sys-info version v2c

Enable CLI access

This enables unprotected access for lab enivornments!

telnet server enable
user-interface aux 0
user-interface vty 0 15
authentication-mode none
user privilege level 3 (CW5)
User-role level-15 (CW7)
idle-timeout 0 0
protocol inbound telnet

Create Aggregation Interfaces

You need to follow this procedure to crate Bridge-aggregation interfaces (Route-Aggregation on L3 interfaces):

interface Bridge-Aggregation1
interface Ten-GigabitEthernet1/0/20
port link-aggregation group 1
interface Ten-GigabitEthernet2/0/20
port link-aggregation group 1
interface Bridge-Aggregation1
(any additional config you put here, will be passed to the physical interfaces now.)

Create IRF Stack

HP devices use standard 10Gb Ethernet interfaces for stacking. First the roles of the devices need to be assigned, then ports used for IRF fabric need to be shutdown. This example uses a bus topology, by aggregating to interfaces for redundancy. You could also create irf ports 1/2 and 2/2 in order to create a ring topology instead.

Make 1st member the master by default:
irf member 1 priority 32

2nd device becomes member #2. This cange will take effect after rebooting it:
irf member 1 renumber 2

interface Ten-GigabitEthernet1/0/23
shutdown
#
interface Ten-GigabitEthernet1/0/24
shutdown
#
irf-port 1/1
port group interface Ten-GigabitEthernet1/0/23
port group interface Ten-GigabitEthernet1/0/24

This is on the 2nd device. IRF port 1 always connects to irf port 2 on the neighbor device:
interface Ten-GigabitEthernet2/0/23
shutdown
#
interface Ten-GigabitEthernet2/0/24
shutdown
#
irf-port 2/2
port group interface Ten-GigabitEthernet2/0/23
port group interface Ten-GigabitEthernet2/0/24

When done you can “undo shut” all interfaces again. Save the config on all devices and activate IRF with irf-port-configuration active.

Loadsharing across IRF links defaults to the follwing setting:

Layer2: source & destination MAC address
Layer3: source & destination MAC address

It can be changed with:
irf-port load-sharing mode ?
destination-ip Destination IP address
destination-mac Destination MAC address
source-ip Source IP address
source-mac Source MAC address

[ssba]