Skip to content

Commit 0138344

Browse files
committed
Add quagga roles
1 parent 851c8cf commit 0138344

14 files changed

Lines changed: 397 additions & 0 deletions

File tree

ansible/group_vars/all

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ MININET_VERSION: 2.2.1
44
NS3_VERSION: 3.22
55
PYGCCXML_VERSION: 1.0.0
66
NETANIM_VERSION: 3.105
7+
QUAGGA_VERSION: 0.99.24
78
temp_location: "/tmp"

ansible/playbook.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- ez_setup
1010
- ntp
1111
- openvswitch
12+
- quagga
1213
- qperf
1314

1415
- hosts: opennet-slave

ansible/roles/apt/tasks/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,8 @@
4646
- qt4-dev-tools
4747
- python-networkx
4848
- librdmacm-dev
49+
- gawk
50+
- libtool
51+
- texinfo
52+
- libreadline-dev
4953
tags: apt
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
debug babel common
2+
!debug babel kernel
3+
!debug babel filter
4+
!debug babel timeout
5+
!debug babel interface
6+
!debug babel route
7+
!debug babel all
8+
9+
router babel
10+
! network wlan0
11+
! network eth0
12+
! redistribute kernel
13+
! no redistribute static
14+
15+
! The defaults are fine for a wireless interface
16+
17+
!interface wlan0
18+
19+
! A few optimisation tweaks are optional but recommended on a wired interface
20+
! Disable link quality estimation, enable split horizon processing, and
21+
! increase the hello and update intervals.
22+
23+
!interface eth0
24+
! babel wired
25+
! babel split-horizon
26+
! babel hello-interval 12000
27+
! babel update-interval 36000
28+
29+
! log file /var/log/quagga/babeld.log
30+
log stdout
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
! -*- bgp -*-
2+
!
3+
! BGPd sample configuratin file
4+
!
5+
! $Id: bgpd.conf.sample,v 1.1 2002/12/13 20:15:29 paul Exp $
6+
!
7+
hostname bgpd
8+
password zebra
9+
!enable password please-set-at-here
10+
!
11+
!bgp mulitple-instance
12+
!
13+
router bgp 7675
14+
! bgp router-id 10.0.0.1
15+
! network 10.0.0.0/8
16+
! neighbor 10.0.0.2 remote-as 7675
17+
! neighbor 10.0.0.2 route-map set-nexthop out
18+
! neighbor 10.0.0.2 ebgp-multihop
19+
! neighbor 10.0.0.2 next-hop-self
20+
!
21+
! access-list all permit any
22+
!
23+
!route-map set-nexthop permit 10
24+
! match ip address all
25+
! set ip next-hop 10.0.0.1
26+
!
27+
!log file bgpd.log
28+
!
29+
log stdout
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
!
2+
! Zebra configuration saved from vty
3+
! 2002/07/01 03:16:33
4+
!
5+
hostname bgpd
6+
password zebra
7+
log file bgpd.log
8+
log stdout
9+
!
10+
router bgp 7675
11+
no bgp default ipv4-unicast
12+
neighbor 3ffe:506:1000::2 remote-as 7675
13+
neighbor fe80::200:c0ff:fe30:9be3 remote-as 9377
14+
neighbor fe80::200:c0ff:fe30:9be3 interface sit3
15+
neighbor fe80::210:5aff:fe6b:3cee remote-as 7675
16+
neighbor fe80::210:5aff:fe6b:3cee interface eth0
17+
neighbor fe80::290:27ff:fe51:84c7 remote-as 4691
18+
neighbor fe80::290:27ff:fe51:84c7 description DTI
19+
neighbor fe80::290:27ff:fe51:84c7 interface sit7
20+
neighbor fe80::2a0:c9ff:fec8:82ec remote-as 7530
21+
neighbor fe80::2a0:c9ff:fec8:82ec description IRI
22+
neighbor fe80::2a0:c9ff:fec8:82ec interface sit8
23+
neighbor fe80::2e0:18ff:fe98:2725 remote-as 2500
24+
neighbor fe80::2e0:18ff:fe98:2725 description WIDE
25+
neighbor fe80::2e0:18ff:fe98:2725 interface sit5
26+
neighbor fe80::2e0:18ff:fea8:bf5 remote-as 65000
27+
neighbor fe80::2e0:18ff:fea8:bf5 interface sit6
28+
!
29+
address-family ipv6
30+
network 3ffe:506::/33
31+
network 3ffe:1800:e800::/40
32+
aggregate-address 3ffe:506::/32
33+
redistribute connected
34+
neighbor 3ffe:506:1000::2 activate
35+
neighbor fe80::200:c0ff:fe30:9be3 activate
36+
neighbor fe80::200:c0ff:fe30:9be3 route-map set-nexthop out
37+
neighbor fe80::210:5aff:fe6b:3cee activate
38+
neighbor fe80::290:27ff:fe51:84c7 activate
39+
neighbor fe80::290:27ff:fe51:84c7 route-map set-nexthop out
40+
neighbor fe80::2a0:c9ff:fec8:82ec activate
41+
neighbor fe80::2a0:c9ff:fec8:82ec route-map set-nexthop out
42+
neighbor fe80::2e0:18ff:fe98:2725 activate
43+
neighbor fe80::2e0:18ff:fe98:2725 distribute-list nla1 out
44+
neighbor fe80::2e0:18ff:fe98:2725 route-map set-nexthop out
45+
neighbor fe80::2e0:18ff:fea8:bf5 activate
46+
neighbor fe80::2e0:18ff:fea8:bf5 route-map set-nexthop out
47+
exit-address-family
48+
!
49+
ipv6 access-list all permit any
50+
ipv6 access-list nla1 deny 3ffe:506::/33
51+
ipv6 access-list nla1 permit 3ffe:506::/32
52+
ipv6 access-list nla1 deny any
53+
ipv6 access-list ntt-nla1 permit 3ffe:1800:0:ffff::c/127
54+
ipv6 access-list ntt-nla1 deny 3ffe:1800:e800::/41
55+
ipv6 access-list ntt-nla1 permit 3ffe:1800:e800::/40
56+
ipv6 access-list ntt-nla1 deny any
57+
!
58+
ipv6 prefix-list 6bone-filter seq 5 permit 3ffe::/17 ge 24 le 24
59+
ipv6 prefix-list 6bone-filter seq 10 permit 3ffe:8000::/17 ge 28 le 28
60+
ipv6 prefix-list 6bone-filter seq 12 deny 3ffe::/16
61+
ipv6 prefix-list 6bone-filter seq 15 permit 2000::/3 ge 16 le 16
62+
ipv6 prefix-list 6bone-filter seq 20 permit 2001::/16 ge 35 le 35
63+
!
64+
route-map set-nexthop permit 10
65+
match ipv6 address all
66+
set ipv6 next-hop global 3ffe:506::1
67+
set ipv6 next-hop local fe80::cbb5:591a
68+
set ip next-hop 203.181.89.26
69+
set community 7675:0
70+
!
71+
route-map set-link-local permit 10
72+
match ipv6 address all
73+
set ipv6 next-hop local fe80::cbb5:591a
74+
set ipv6 next-hop global 3ffe:1800:0:ffff::d
75+
!
76+
line vty
77+
!
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
! -*- isis -*-
2+
!
3+
! ISISd sample configuration file
4+
!
5+
hostname isisd
6+
password foo
7+
enable password foo
8+
log stdout
9+
!log file /tmp/isisd.log
10+
!
11+
!
12+
router isis DEAD
13+
net 47.0023.0000.0003.0300.0100.0102.0304.0506.00
14+
! is-type level-1
15+
16+
! -- set the lifetime either for level-1, level-2 or both
17+
! lsp-lifetime level-1 65535
18+
! lsp-lifetime level-2 65535
19+
! lsp-lifetime 65535
20+
21+
! hostname isisd-router
22+
! area-password foobar
23+
! domain-password foobar
24+
25+
interface eth0
26+
ip router isis DEAD
27+
! isis hello-interval 5
28+
! isis lsp-interval 1000
29+
30+
! -- optional
31+
! isis circuit-type level-1
32+
! isis password lallaa level-1
33+
! isis metric 1 level-1
34+
! isis csnp-interval 5 level-1
35+
! isis retransmit-interval 10
36+
! isis retransmit-throttle-interval
37+
! isis hello-multiplier 2 level-1
38+
! isis priority 64
39+
!
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
!
2+
! Zebra configuration saved from vty
3+
! 2003/11/28 00:49:49
4+
!
5+
hostname ospf6d@plant
6+
password zebra
7+
log stdout
8+
service advanced-vty
9+
!
10+
debug ospf6 neighbor state
11+
!
12+
interface fxp0
13+
ipv6 ospf6 cost 1
14+
ipv6 ospf6 hello-interval 10
15+
ipv6 ospf6 dead-interval 40
16+
ipv6 ospf6 retransmit-interval 5
17+
ipv6 ospf6 priority 0
18+
ipv6 ospf6 transmit-delay 1
19+
ipv6 ospf6 instance-id 0
20+
!
21+
interface lo0
22+
ipv6 ospf6 cost 1
23+
ipv6 ospf6 hello-interval 10
24+
ipv6 ospf6 dead-interval 40
25+
ipv6 ospf6 retransmit-interval 5
26+
ipv6 ospf6 priority 1
27+
ipv6 ospf6 transmit-delay 1
28+
ipv6 ospf6 instance-id 0
29+
!
30+
router ospf6
31+
router-id 255.1.1.1
32+
redistribute static route-map static-ospf6
33+
interface fxp0 area 0.0.0.0
34+
!
35+
access-list access4 permit 127.0.0.1/32
36+
!
37+
ipv6 access-list access6 permit 3ffe:501::/32
38+
ipv6 access-list access6 permit 2001:200::/48
39+
ipv6 access-list access6 permit ::1/128
40+
!
41+
ipv6 prefix-list test-prefix seq 1000 deny any
42+
!
43+
route-map static-ospf6 permit 10
44+
match ipv6 address prefix-list test-prefix
45+
set metric-type type-2
46+
set metric 2000
47+
!
48+
line vty
49+
access-class access4
50+
ipv6 access-class access6
51+
exec-timeout 0 0
52+
!
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
! -*- ospf -*-
2+
!
3+
! OSPFd sample configuration file
4+
!
5+
!
6+
hostname ospfd
7+
password zebra
8+
!enable password please-set-at-here
9+
!
10+
!router ospf
11+
! network 192.168.1.0/24 area 0
12+
!
13+
log stdout
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
! -*- rip -*-
2+
!
3+
! RIPd sample configuration file
4+
!
5+
! $Id: ripd.conf.sample,v 1.1 2002/12/13 20:15:30 paul Exp $
6+
!
7+
hostname ripd
8+
password zebra
9+
!
10+
! debug rip events
11+
! debug rip packet
12+
!
13+
router rip
14+
! network 11.0.0.0/8
15+
! network eth0
16+
! route 10.0.0.0/8
17+
! distribute-list private-only in eth0
18+
!
19+
!access-list private-only permit 10.0.0.0/8
20+
!access-list private-only deny any
21+
!
22+
!log file ripd.log
23+
!
24+
log stdout

0 commit comments

Comments
 (0)