7 # Configure VPP for vFirewall
8 IPADDR1=$(ifconfig eth1 | grep "inet addr" | tr -s ' ' | cut -d' ' -f3 | cut -d':' -f2)
9 IPADDR2=$(ifconfig eth2 | grep "inet addr" | tr -s ' ' | cut -d' ' -f3 | cut -d':' -f2)
10 HWADDR1=$(ifconfig eth1 | grep HWaddr | tr -s ' ' | cut -d' ' -f5)
11 HWADDR2=$(ifconfig eth2 | grep HWaddr | tr -s ' ' | cut -d' ' -f5)
12 FAKE_HWADDR1=$(echo -n 00; dd bs=1 count=5 if=/dev/urandom 2>/dev/null | hexdump -v -e '/1 ":%02X"')
13 FAKE_HWADDR2=$(echo -n 00; dd bs=1 count=5 if=/dev/urandom 2>/dev/null | hexdump -v -e '/1 ":%02X"')
17 ifconfig eth1 hw ether $FAKE_HWADDR1
18 ifconfig eth2 hw ether $FAKE_HWADDR2
19 ip addr flush dev eth1
20 ip addr flush dev eth2
23 vppctl tap connect tap111 hwaddr $HWADDR1
24 vppctl tap connect tap222 hwaddr $HWADDR2
25 vppctl set int ip address tap-0 $IPADDR1"/24"
26 vppctl set int ip address tap-1 $IPADDR2"/24"
27 vppctl set int state tap-0 up
28 vppctl set int state tap-1 up
30 brctl addif br0 tap111
33 brctl addif br1 tap222
40 VERSION=$(cat /opt/config/artifacts_version.txt)
41 echo "" > /var/lib/honeycomb/persist/context/data.json
42 echo "" > /var/lib/honeycomb/persist/config/data.json
43 /opt/honeycomb/sample-distribution-$VERSION/honeycomb &>/dev/null &disown
47 cd /opt/VES/code/evel_training/VESreporting/
48 ./go-client.sh &>/dev/null &disown