Commit 86df8dd3 authored by Your Name's avatar Your Name

Add OVS's public IP in net_info.sh

parent 106574e4
......@@ -22,13 +22,13 @@ B. Run OVS with SR:
2. Run OVS: cd /opt/openvswitch; sudo ./run_ovs.sh
3. Create ports for OVS: cd /opt/openvswitch; sudo ./run_srv6.sh <inport network (facing endhost)> <outport network (facing CR)> <controller's IP (node1's public IP)>
eg, node5: sudo ./run_srv6.sh net2 nete 155.98.39.139;
node1: sudo ./run_srv6.sh net1 neta 127.0.0.1
node1: sudo ./run_srv6.sh net1 neta 155.98.39.145
4. Show the ports of OVS by: cd /opt/openvswitch; sudo ./ovs_port_desc.sh
5. The OVS will try to connect to the Ryu's SDN controller at node1.
C. Run Ryu SDN controller:
--------------------------
0. Modify the parameters in the controller to match the information in net_info.sh.
0. Copy net_info.sh to /opt: sudo cp net_info.sh /opt/
1. cd /opt/openvswitch/sdn_controller/; ryu-manager sr_controller_test.py
2. The controller will install SR encapsulation rules on node1 and node5 OVSes.
......
......@@ -28,6 +28,7 @@ if [ "$hn" == "node1" ]; then
n1_1_dev=$($INF | grep net1 | awk '{print $3}')
n1_1_mac=$(ifconfig | grep $n1_1_dev | awk '{print $5}')
n1_1=$(ifconfig | grep -A3 $n1_1_dev | grep inet6 | grep "fe80::" | awk '{print $3}' | awk -F'/' '{print $1}' | sed s/fe80::*:/2001::204:/ )
n1_pub=$(ifconfig | grep -A3 "eth0" | grep "inet addr" | awk '{print $2}' | awk -F":" '{print $2}')
let lb=$LB_IP+1
echo "n1_lb=\"$lb::1\""
echo "n1_a=\"$n1_a\""
......@@ -36,6 +37,7 @@ if [ "$hn" == "node1" ]; then
echo "n1_1=\"$n1_1\""
echo "n1_1_mac=\"$n1_1_mac\""
echo "n1_1_dev=\"$n1_1_dev\""
echo "n1_pub=\"$n1_pub\""
fi
......@@ -134,6 +136,7 @@ if [ "$hn" == "node5" ]; then
n5_2_dev=$($INF | grep net2 | awk '{print $3}')
n5_2_mac=$(ifconfig | grep $n5_2_dev | awk '{print $5}')
n5_2=$(ifconfig | grep -A3 $n5_2_dev | grep inet6 | grep "fe80::" | awk '{print $3}' | awk -F'/' '{print $1}' | sed s/fe80::*:/2001::208:/ )
n5_pub=$(ifconfig | grep -A3 "eth0" | grep "inet addr" | awk '{print $2}' | awk -F":" '{print $2}')
let lb=$LB_IP+5
echo "n5_lb=\"$lb::1\""
echo "n5_e=\"$n5_e\""
......@@ -142,6 +145,7 @@ if [ "$hn" == "node5" ]; then
echo "n5_2=\"$n5_2\""
echo "n5_2_mac=\"$n5_2_mac\""
echo "n5_2_dev=\"$n5_2_dev\""
echo "n5_pub=\"$n5_pub\""
fi
......
......@@ -4,12 +4,13 @@ n1_lb="198::1"
n1_a="2001::204:204:23ff:feb7:3ea7"
n1_a_mac="00:04:23:b7:3e:a7"
n1_a_dev="eth3"
n1_1="2001::203:204:23ff:feb7:3ea6"
n1_1="2001::204:204:23ff:feb7:3ea6"
n1_1_mac="00:04:23:b7:3e:a6"
n1_1_dev="eth2"
n1_pub="155.98.39.139"
#Node node0...
n0_lb="197::1"
n0_1="2001::203:204:23ff:feb7:1a0a"
n0_1="2001::204:204:23ff:feb7:1a0a"
n0_1_mac="00:04:23:b7:1a:0a"
n0_1_dev="enp9s4f0"
#Node node2...
......@@ -47,11 +48,12 @@ n5_lb="202::1"
n5_e="2001::208:204:23ff:feb7:40a6"
n5_e_mac="00:04:23:b7:40:a6"
n5_e_dev="eth2"
n5_2="2001::209:204:23ff:feb7:3d2b"
n5_2="2001::208:204:23ff:feb7:3d2b"
n5_2_mac="00:04:23:b7:3d:2b"
n5_2_dev="eth5"
n5_pub="155.98.39.68"
#Node node6...
n6_lb="203::1"
n6_2="2001::209:204:23ff:feb7:2660"
n6_2="2001::208:204:23ff:feb7:2660"
n6_2_mac="00:04:23:b7:26:60"
n6_2_dev="enp9s4f0"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment