-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig_before.sh
160 lines (124 loc) · 9.14 KB
/
config_before.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
# Allow ARP
ovs-ofctl add-flow s0 -O OpenFlow13 dl_type=0x806,nw_proto=1,action=flood
ovs-ofctl add-flow s1 -O OpenFlow13 dl_type=0x806,nw_proto=1,action=flood
ovs-ofctl add-flow s2 -O OpenFlow13 dl_type=0x806,nw_proto=1,action=flood
ovs-ofctl add-flow s3 -O OpenFlow13 dl_type=0x806,nw_proto=1,action=flood
ovs-ofctl add-flow s4 -O OpenFlow13 dl_type=0x806,nw_proto=1,action=flood
ovs-ofctl add-flow s5 -O OpenFlow13 dl_type=0x806,nw_proto=1,action=flood
ovs-ofctl add-flow s6 -O OpenFlow13 dl_type=0x806,nw_proto=1,action=flood
ovs-ofctl add-flow s7 -O OpenFlow13 dl_type=0x806,nw_proto=1,action=flood
ovs-ofctl add-flow s8 -O OpenFlow13 dl_type=0x806,nw_proto=1,action=flood
ovs-ofctl add-flow s9 -O OpenFlow13 dl_type=0x806,nw_proto=1,action=flood
# Switch to Host
ovs-ofctl add-flow s0 -O OpenFlow13 priority=40000,dl_dst=00:00:00:00:00:01,actions=output:1
ovs-ofctl add-flow s1 -O OpenFlow13 priority=40000,dl_dst=00:00:00:00:00:02,actions=output:1
ovs-ofctl add-flow s2 -O OpenFlow13 priority=40000,dl_dst=00:00:00:00:00:03,actions=output:1
ovs-ofctl add-flow s3 -O OpenFlow13 priority=40000,dl_dst=00:00:00:00:00:04,actions=output:1
ovs-ofctl add-flow s4 -O OpenFlow13 priority=40000,dl_dst=00:00:00:00:00:05,actions=output:1
ovs-ofctl add-flow s5 -O OpenFlow13 priority=40000,dl_dst=00:00:00:00:00:06,actions=output:1
ovs-ofctl add-flow s6 -O OpenFlow13 priority=40000,dl_dst=00:00:00:00:00:07,actions=output:1
ovs-ofctl add-flow s7 -O OpenFlow13 priority=40000,dl_dst=00:00:00:00:00:08,actions=output:1
ovs-ofctl add-flow s8 -O OpenFlow13 priority=40000,dl_dst=00:00:00:00:00:09,actions=output:1
ovs-ofctl add-flow s9 -O OpenFlow13 priority=40000,dl_dst=00:00:00:00:00:0a,actions=output:1
#F9,6
ovs-ofctl add-flow s9 -O OpenFlow13 dl_src=00:00:00:00:00:0a,dl_dst=00:00:00:00:00:07,actions=output:2
ovs-ofctl add-flow s5 -O OpenFlow13 dl_src=00:00:00:00:00:0a,dl_dst=00:00:00:00:00:07,actions=output:3
#F7,3
ovs-ofctl add-flow s7 -O OpenFlow13 dl_src=00:00:00:00:00:08,dl_dst=00:00:00:00:00:04,actions=output:2
#F6,0
ovs-ofctl add-flow s6 -O OpenFlow13 dl_src=00:00:00:00:00:07,dl_dst=00:00:00:00:00:01,actions=output:3
ovs-ofctl add-flow s5 -O OpenFlow13 dl_src=00:00:00:00:00:07,dl_dst=00:00:00:00:00:01,actions=output:5
ovs-ofctl add-flow s3 -O OpenFlow13 dl_src=00:00:00:00:00:07,dl_dst=00:00:00:00:00:01,actions=output:4
ovs-ofctl add-flow s1 -O OpenFlow13 dl_src=00:00:00:00:00:07,dl_dst=00:00:00:00:00:01,actions=output:3
#R F0,6
ovs-ofctl add-flow s0 -O OpenFlow13 dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:07,actions=output:2
ovs-ofctl add-flow s1 -O OpenFlow13 dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:07,actions=output:2
ovs-ofctl add-flow s3 -O OpenFlow13 dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:07,actions=output:3
ovs-ofctl add-flow s5 -O OpenFlow13 dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:07,actions=output:4
#F3,7
ovs-ofctl add-flow s3 -O OpenFlow13 dl_src=00:00:00:00:00:04,dl_dst=00:00:00:00:00:08,actions=output:4
ovs-ofctl add-flow s1 -O OpenFlow13 dl_src=00:00:00:00:00:04,dl_dst=00:00:00:00:00:08,actions=output:3
ovs-ofctl add-flow s0 -O OpenFlow13 dl_src=00:00:00:00:00:04,dl_dst=00:00:00:00:00:08,actions=output:3
#F1,8
ovs-ofctl add-flow s1 -O OpenFlow13 dl_src=00:00:00:00:00:02,dl_dst=00:00:00:00:00:09,actions=output:3
ovs-ofctl add-flow s0 -O OpenFlow13 dl_src=00:00:00:00:00:02,dl_dst=00:00:00:00:00:09,actions=output:4
ovs-ofctl add-flow s9 -O OpenFlow13 dl_src=00:00:00:00:00:02,dl_dst=00:00:00:00:00:09,actions=output:2
ovs-ofctl add-flow s5 -O OpenFlow13 dl_src=00:00:00:00:00:02,dl_dst=00:00:00:00:00:09,actions=output:6
#R F8,1
ovs-ofctl add-flow s8 -O OpenFlow13 dl_src=00:00:00:00:00:09,dl_dst=00:00:00:00:00:02,actions=output:2
ovs-ofctl add-flow s5 -O OpenFlow13 dl_src=00:00:00:00:00:09,dl_dst=00:00:00:00:00:02,actions=output:2
ovs-ofctl add-flow s9 -O OpenFlow13 dl_src=00:00:00:00:00:09,dl_dst=00:00:00:00:00:02,actions=output:3
ovs-ofctl add-flow s0 -O OpenFlow13 dl_src=00:00:00:00:00:09,dl_dst=00:00:00:00:00:02,actions=output:2
#F6,9
ovs-ofctl add-flow s6 -O OpenFlow13 dl_src=00:00:00:00:00:07,dl_dst=00:00:00:00:00:0a,actions=output:3
ovs-ofctl add-flow s5 -O OpenFlow13 dl_src=00:00:00:00:00:07,dl_dst=00:00:00:00:00:0a,actions=output:6
ovs-ofctl add-flow s8 -O OpenFlow13 dl_src=00:00:00:00:00:07,dl_dst=00:00:00:00:00:0a,actions=output:3
#F8,5
ovs-ofctl add-flow s8 -O OpenFlow13 dl_src=00:00:00:00:00:09,dl_dst=00:00:00:00:00:06,actions=output:3
ovs-ofctl add-flow s9 -O OpenFlow13 dl_src=00:00:00:00:00:09,dl_dst=00:00:00:00:00:06,actions=output:2
#R F5,8
ovs-ofctl add-flow s5 -O OpenFlow13 dl_src=00:00:00:00:00:06,dl_dst=00:00:00:00:00:09,actions=output:2
ovs-ofctl add-flow s9 -O OpenFlow13 dl_src=00:00:00:00:00:06,dl_dst=00:00:00:00:00:09,actions=output:4
#F9,1
ovs-ofctl add-flow s9 -O OpenFlow13 dl_src=00:00:00:00:00:0a,dl_dst=00:00:00:00:00:02,actions=output:5
#R F1,9
ovs-ofctl add-flow s1 -O OpenFlow13 dl_src=00:00:00:00:00:02,dl_dst=00:00:00:00:00:0a,actions=output:4
#F3,0
ovs-ofctl add-flow s3 -O OpenFlow13 dl_src=00:00:00:00:00:04,dl_dst=00:00:00:00:00:01,actions=output:4
ovs-ofctl add-flow s1 -O OpenFlow13 dl_src=00:00:00:00:00:04,dl_dst=00:00:00:00:00:01,actions=output:3
#R F0,3
ovs-ofctl add-flow s0 -O OpenFlow13 dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:04,actions=output:2
ovs-ofctl add-flow s1 -O OpenFlow13 dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:04,actions=output:2
#F4,3
ovs-ofctl add-flow s4 -O OpenFlow13 dl_src=00:00:00:00:00:05,dl_dst=00:00:00:00:00:04,actions=output:2
ovs-ofctl add-flow s5 -O OpenFlow13 dl_src=00:00:00:00:00:05,dl_dst=00:00:00:00:00:04,actions=output:5
#R F3,4
ovs-ofctl add-flow s3 -O OpenFlow13 dl_src=00:00:00:00:00:04,dl_dst=00:00:00:00:00:05,actions=output:3
ovs-ofctl add-flow s5 -O OpenFlow13 dl_src=00:00:00:00:00:04,dl_dst=00:00:00:00:00:05,actions=output:7
#F7,2
ovs-ofctl add-flow s7 -O OpenFlow13 dl_src=00:00:00:00:00:08,dl_dst=00:00:00:00:00:03,actions=output:2
ovs-ofctl add-flow s3 -O OpenFlow13 dl_src=00:00:00:00:00:08,dl_dst=00:00:00:00:00:03,actions=output:4
ovs-ofctl add-flow s1 -O OpenFlow13 dl_src=00:00:00:00:00:08,dl_dst=00:00:00:00:00:03,actions=output:5
#R F2,7
ovs-ofctl add-flow s2 -O OpenFlow13 dl_src=00:00:00:00:00:03,dl_dst=00:00:00:00:00:08,actions=output:2
ovs-ofctl add-flow s1 -O OpenFlow13 dl_src=00:00:00:00:00:03,dl_dst=00:00:00:00:00:08,actions=output:2
ovs-ofctl add-flow s3 -O OpenFlow13 dl_src=00:00:00:00:00:03,dl_dst=00:00:00:00:00:08,actions=output:2
#F0,8
ovs-ofctl add-flow s0 -O OpenFlow13 dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:09,actions=output:4
ovs-ofctl add-flow s9 -O OpenFlow13 dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:09,actions=output:2
ovs-ofctl add-flow s5 -O OpenFlow13 dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:09,actions=output:6
#R F8,0
ovs-ofctl add-flow s8 -O OpenFlow13 dl_src=00:00:00:00:00:09,dl_dst=00:00:00:00:00:01,actions=output:2
ovs-ofctl add-flow s5 -O OpenFlow13 dl_src=00:00:00:00:00:09,dl_dst=00:00:00:00:00:01,actions=output:2
ovs-ofctl add-flow s9 -O OpenFlow13 dl_src=00:00:00:00:00:09,dl_dst=00:00:00:00:00:01,actions=output:3
#F6,1
ovs-ofctl add-flow s6 -O OpenFlow13 dl_src=00:00:00:00:00:07,dl_dst=00:00:00:00:00:02,actions=output:3
ovs-ofctl add-flow s5 -O OpenFlow13 dl_src=00:00:00:00:00:07,dl_dst=00:00:00:00:00:02,actions=output:5
ovs-ofctl add-flow s3 -O OpenFlow13 dl_src=00:00:00:00:00:07,dl_dst=00:00:00:00:00:02,actions=output:4
#R F1,6
ovs-ofctl add-flow s1 -O OpenFlow13 dl_src=00:00:00:00:00:02,dl_dst=00:00:00:00:00:07,actions=output:2
ovs-ofctl add-flow s3 -O OpenFlow13 dl_src=00:00:00:00:00:02,dl_dst=00:00:00:00:00:07,actions=output:3
ovs-ofctl add-flow s5 -O OpenFlow13 dl_src=00:00:00:00:00:02,dl_dst=00:00:00:00:00:07,actions=output:4
#F2,1
ovs-ofctl add-flow s2 -O OpenFlow13 dl_src=00:00:00:00:00:03,dl_dst=00:00:00:00:00:02,actions=output:3
ovs-ofctl add-flow s3 -O OpenFlow13 dl_src=00:00:00:00:00:03,dl_dst=00:00:00:00:00:02,actions=output:4
#R F1,2
ovs-ofctl add-flow s1 -O OpenFlow13 dl_src=00:00:00:00:00:02,dl_dst=00:00:00:00:00:03,actions=output:2
ovs-ofctl add-flow s3 -O OpenFlow13 dl_src=00:00:00:00:00:02,dl_dst=00:00:00:00:00:03,actions=output:5
#F5,0
ovs-ofctl add-flow s5 -O OpenFlow13 dl_src=00:00:00:00:00:06,dl_dst=00:00:00:00:00:01,actions=output:5
ovs-ofctl add-flow s3 -O OpenFlow13 dl_src=00:00:00:00:00:06,dl_dst=00:00:00:00:00:01,actions=output:4
ovs-ofctl add-flow s1 -O OpenFlow13 dl_src=00:00:00:00:00:06,dl_dst=00:00:00:00:00:01,actions=output:3
#R F0,5
ovs-ofctl add-flow s0 -O OpenFlow13 dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:06,actions=output:2
ovs-ofctl add-flow s1 -O OpenFlow13 dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:06,actions=output:2
ovs-ofctl add-flow s3 -O OpenFlow13 dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:06,actions=output:3
#F7,5
ovs-ofctl add-flow s7 -O OpenFlow13 dl_src=00:00:00:00:00:08,dl_dst=00:00:00:00:00:06,actions=output:4
#F6,5
ovs-ofctl add-flow s6 -O OpenFlow13 dl_src=00:00:00:00:00:07,dl_dst=00:00:00:00:00:06,actions=output:3
#R F5,6
ovs-ofctl add-flow s5 -O OpenFlow13 dl_src=00:00:00:00:00:06,dl_dst=00:00:00:00:00:07,actions=output:4
#F5,7
ovs-ofctl add-flow s5 -O OpenFlow13 dl_src=00:00:00:00:00:06,dl_dst=00:00:00:00:00:08,actions=output:9
#sudo mn --custom topo.py --topo mytopo --mac --arp --switch ovs,protocol=OpenFlow13 --controller none