BGV network as installed in the service tunnel in P4.
The DAQ switch is configured as gateway and requires a special configuration detailed in
BgvSwitch.
The bgvctrl node also act as the storage machine and needs to be accessible via the data network. For this it's best to add a second IP address to one of the network interfaces.
create the file (on bgvctrl): /etc/sysconfig/network-scripts/ifcfg-eth0:1
with the content:
DEVICE="eth1:1"
BOOTPROTO="static"
IPV6INIT="no"
MTU="1500"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
IPADDR=192.168.0.29
NETMASK=255.255.255.224
HWADDR="38:EA:A7:36:75:11"
The HLT nodes need to know how to route packets from the front ends (tell1s, ODIN) because they don't sent arp info. The correct routing table on the HLT nodes is the following one:
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.32 192.168.0.30 255.255.255.224 UG 0 0 0 eth1
192.168.0.0 0.0.0.0 255.255.255.224 U 0 0 0 eth1
10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 eth1
0.0.0.0 10.10.10.254 0.0.0.0 UG 0 0 0 eth0
To use the switch gateway to reach the DAQ network.
To setup manually or permanently:
# direct command on hlts:
sudo route add -net 192.168.0.32 netmask 255.255.255.224 gw 192.168.0.30
# or
ip route add 192.168.0.32/27 via 192.168.0.30
# add permanently:
# create file /etc/sysconfig/network-scripts/route-eth1
# with:
192.168.0.32/27 via 192.168.0.30
# if needed:
sudo route delete default gw 10.128.32.1
The IP addresses assignment are managed by dhcp on the bgvctrl machine. The configuration file is /etc/dhcp/dhcpd.conf