File tree Expand file tree Collapse file tree 8 files changed +31
-39
lines changed
nets/exp-8routers-isis-ipv6 Expand file tree Collapse file tree 8 files changed +31
-39
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,8 @@ def create_topo(my_net):
118
118
r7 = my_net .addHost (name = 'r7' , cls = Router )
119
119
r8 = my_net .addHost (name = 'r8' , cls = Router )
120
120
121
+ s1 = my_net .addHost (name = 's1' , cls = Router )
122
+
121
123
#note that if the interface names are not provided,
122
124
#the order of adding link will determine the
123
125
#naming of the interfaces (e.g. on r1: r1-eth0, r1-eth1, r1-eth2...)
@@ -142,16 +144,16 @@ def create_topo(my_net):
142
144
add_link (h33 ,r3 )
143
145
#r3 - r4
144
146
add_link (r3 ,r4 )
145
- #r4 - r5
146
- add_link (r4 ,r5 )
147
- #r4 - r6
148
- add_link (r4 , r6 )
147
+ #r4 - s1
148
+ add_link (r4 ,s1 )
149
+ #r6 - s1
150
+ add_link (r6 , s1 )
149
151
#hosts of r5
150
152
add_link (h51 ,r5 )
151
153
add_link (h52 ,r5 )
152
154
add_link (h53 ,r5 )
153
- #r5 - r6
154
- add_link (r5 ,r6 )
155
+ #r5 - s1
156
+ add_link (r5 ,s1 )
155
157
#r6 - r7
156
158
add_link (r6 ,r7 )
157
159
#r6 - r8
Original file line number Diff line number Diff line change @@ -7,12 +7,7 @@ ipv6 router isis FOO
7
7
ip router isis FOO
8
8
isis hello-interval 5
9
9
!
10
- interface r4-r5
11
- ipv6 router isis FOO
12
- ip router isis FOO
13
- isis hello-interval 5
14
- !
15
- interface r4-r6
10
+ interface r4-s1
16
11
ipv6 router isis FOO
17
12
ip router isis FOO
18
13
isis hello-interval 5
Original file line number Diff line number Diff line change @@ -10,11 +10,8 @@ debug zebra rib
10
10
interface r4-r3
11
11
ipv6 address fcf0:0:3:4::2/64
12
12
!
13
- interface r4-r5
14
- ipv6 address fcf0:0:4:5::1/64
15
- !
16
- interface r4-r6
17
- ipv6 address fcf0:0:4:6::1/64
13
+ interface r4-s1
14
+ ipv6 address fcf0:0:d1::4/64
18
15
!
19
16
interface lo
20
17
ipv6 address fcff:4::1/32
Original file line number Diff line number Diff line change @@ -17,12 +17,7 @@ log file nodeconf/r5/isisd.log
17
17
! ip router isis FOO
18
18
! isis hello-interval 5
19
19
!
20
- interface r5-r4
21
- ipv6 router isis FOO
22
- ip router isis FOO
23
- isis hello-interval 5
24
- !
25
- interface r5-r6
20
+ interface r5-s1
26
21
ipv6 router isis FOO
27
22
ip router isis FOO
28
23
isis hello-interval 5
Original file line number Diff line number Diff line change @@ -16,11 +16,8 @@ interface r5-h52
16
16
interface r5-h53
17
17
ipv6 address fd00:0:53::1/64
18
18
!
19
- interface r5-r4
20
- ipv6 address fcf0:0:4:5::2/64
21
- !
22
- interface r5-r6
23
- ipv6 address fcf0:0:5:6::1/64
19
+ interface r5-s1
20
+ ipv6 address fcf0:0:d1::5/64
24
21
!
25
22
interface lo
26
23
ipv6 address fcff:5::1/32
Original file line number Diff line number Diff line change @@ -2,12 +2,7 @@ hostname r6
2
2
password zebra
3
3
log file nodeconf/r6/isisd.log
4
4
!
5
- interface r6-r4
6
- ipv6 router isis FOO
7
- ip router isis FOO
8
- isis hello-interval 5
9
- !
10
- interface r6-r5
5
+ interface r6-s1
11
6
ipv6 router isis FOO
12
7
ip router isis FOO
13
8
isis hello-interval 5
Original file line number Diff line number Diff line change @@ -7,11 +7,8 @@ log file nodeconf/r6/zebra.log
7
7
debug zebra events
8
8
debug zebra rib
9
9
!
10
- interface r6-r4
11
- ipv6 address fcf0:0:4:6::2/64
12
- !
13
- interface r6-r5
14
- ipv6 address fcf0:0:5:6::2/64
10
+ interface r6-s1
11
+ ipv6 address fcf0:0:d1::6/64
15
12
!
16
13
interface r6-r7
17
14
ipv6 address fcf0:0:6:7::1/64
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ BASE_DIR=nodeconf
4
+ NODE_NAME=s1
5
+
6
+ # enable creating bridge
7
+ ip link add br0 type bridge
8
+ ip link set br0 up
9
+
10
+ # add all interfaces to bridge br0
11
+ for dev in $( ip -o -6 a | awk ' { print $2 }' | grep -v " lo" )
12
+ do
13
+ ip link set $dev master br0
14
+ done
You can’t perform that action at this time.
0 commit comments