GENIRacksHome/OpenGENIRacks/RaspberryPIs: configure_pt2

File configure_pt2, 656 bytes (added by rrhain@bbn.com, 5 years ago)

Configure Script for 2nd OVS setup - Li Lin

Line 
1# 1. Setup the ip addresses of the interfaces
2sudo ifconfig eth1 10.10.1.1 netmask 255.255.255.0
3sudo ifconfig eth2 10.10.1.2 netmask 255.255.255.0
4sudo ifconfig eth3 10.10.1.3 netmask 255.255.255.0
5
6# 2. Create Bridge
7sudo ovs-vsctl add-br br1
8
9# 3. Create link from interfaces to bridge
10sudo ovs-vsctl add-port br1 eth1
11sudo ovs-vsctl add-port br1 eth2
12sudo ovs-vsctl add-port br1 eth3
13
14# 4. Update IP address of bridge
15sudo ifconfig br1 10.10.1.10 netmask 255.255.255.0
16
17# 5. Connect controller with the bridges
18sudo ovs-vsctl set-controller br1 tcp:128.89.68.110:6633
19
20# 6. IMPT: Enable ip forwarding on server pi
21sudo sysctl -w net.ipv4.ip_forward=1
22