# notes HP switch 5830
Manual:
http://h17007.www1.hp.com/device_help/H3C-Manuals/5830/5830-Installation-Guide%280722011%29_emr_na-c02979303-7.pdf
The DAQ network requires a special configuration because the front ends cannot negotiate on the layer 2.
A gateway must connect the front ends to the HLT nodes. The HP switch 5830 takes this role and it must be configured accordingly
# to connect to console with serial cable
# note that you need a special cable RJ45 -> serial and serial -> usb
# use console port on the switch (it is marked as such)
# connect to the usb post or a pc (or mac) then find the usb device
(typically /dev/ttyS0 or /dev/tty.usbserial)
screen /dev/tty.usbserial 9600
@ quit screen with ctr-a z
# # # # #
# enable telnet and set password
# user privilege level and are identified from low to high, respectively by 0 through 3
# enter system view (from user view)
system-view
# enable telnet server
telnet server enable
# set authentication mode
user-interface vty 0
authentication-mode password
set authentication password simple hex00lo
# set privilege
user privilege level 3
# # # # #
# set ip address to main vlan
# enter configuration view
system-view
display ip interface brief
interface vlan-interface 1
ip address 192.168.1.1 255.255.255.0
#note on a linux server assign additional IP address to communicate with the switch
sudo ip addr add 192.168.1.2/24 dev eth1 label eth1:1
# it is now possible to telnet to the switch (any port)
telnet 192.168.1.1
# # # # #
# vlan setup
system-view
vlan 10
port GigabitEthernet 1/0/1
port GigabitEthernet 1/0/2
port GigabitEthernet 1/0/3
port GigabitEthernet 1/0/4
port GigabitEthernet 1/0/5
port GigabitEthernet 1/0/6
port GigabitEthernet 1/0/7
port GigabitEthernet 1/0/8
port GigabitEthernet 1/0/9
port GigabitEthernet 1/0/10
port GigabitEthernet 1/0/11
port GigabitEthernet 1/0/12
port GigabitEthernet 1/0/13
port GigabitEthernet 1/0/14
port GigabitEthernet 1/0/15
port GigabitEthernet 1/0/16
port GigabitEthernet 1/0/17
port GigabitEthernet 1/0/18
# create vlan interface and assign IP
#ip-subnet-vlan 0 ip 192.168.0.32 255.255.255.224
interface Vlan-interface 10
ip address 192.168.0.62 27
# verify with
display vlan 10
## create vlan 20
vlan 20
port GigabitEthernet 1/0/19
port GigabitEthernet 1/0/20
port GigabitEthernet 1/0/21
port GigabitEthernet 1/0/22
port GigabitEthernet 1/0/23
port GigabitEthernet 1/0/24
port GigabitEthernet 1/0/25
port GigabitEthernet 1/0/26
port GigabitEthernet 1/0/27
port GigabitEthernet 1/0/28
port GigabitEthernet 1/0/29
port GigabitEthernet 1/0/30
port GigabitEthernet 1/0/31
port GigabitEthernet 1/0/32
#ip-subnet-vlan 0 ip 192.168.0.0 255.255.255.224
interface Vlan-interface 20
ip address 192.168.0.30 27
display vlan 20
display ip routing-table
display interface brief
display arp
display current-configuration
# # # # #
# static ARP entry for ODIM MEP requests
# ODIN MEP request port is the last one at the bottom
# pin MEP request IP to ODIN MAC address on VLAN 10 and port 10
arp static 192.168.0.50 00cc-bb05-0100 10 GigabitEthernet 1/0/10
# # # # #
# don’t forget to save
save
# # # # #
find the MAC address of the vlan 10 interface by connecting a computer to this vlan
with proper IP address. Then use arp command
-bash-3.2# arp
Address HWtype HWaddress Flags Mask Iface
192.168.0.62 ether D0:7E:28:75:8C:B1 C eth1
10.10.10.254 ether 38:EA:A7:36:75:10 C eth0
-bash-3.2#
The MAC address of vlan 10 is D0:7E:28:75:8C:B1 (this value must be set in the TFC panel for mep requests)
ODIN MEP request port (bottom port on ODIN board) -> port 10 in switch
ODIN data out port (2nd from bottom) -> port 100 in switch
##########
sudo route add -net 192.168.0.32 netmask 255.255.255.224 gw 192.168.0.30