Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Simple labs based on openvswitch #3

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
339 changes: 339 additions & 0 deletions damwaar/netkit-lab_ospf/LICENSE

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions damwaar/netkit-lab_ospf/bb0.startup
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ifconfig eth0 140.0.0.2 netmask 255.255.255.0 up
ifconfig eth1 145.0.0.2 netmask 255.255.255.0 up
ifconfig eth2 146.0.0.2 netmask 255.255.255.0 up
/etc/init.d/quagga start

36 changes: 36 additions & 0 deletions damwaar/netkit-lab_ospf/bb0/etc/quagga/bgpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
!
hostname bgpd
password zebra
enable password zebra
!
router bgp 10
network 140.0.0.0/24
network 145.0.0.0/24
network 146.0.0.0/24
network 10.0.0.0/24
network 10.0.1.0/24
network 10.0.2.0/24
!
neighbor 145.0.0.1 remote-as 172
neighbor 145.0.0.1 description Router r0
neighbor 145.0.0.1 prefix-list as172In in
neighbor 145.0.0.1 prefix-list defaultOut out
!
neighbor 146.0.0.1 remote-as 192
neighbor 146.0.0.1 description Router rr0
neighbor 146.0.0.1 prefix-list as192In in
neighbor 146.0.0.1 prefix-list defaultOut out
!
ip prefix-list as172In permit any
ip prefix-list as192In permit any
ip prefix-list defaultOut permit any
!
log file /var/log/quagga/bgpd.log
!
debug bgp
debug bgp events
debug bgp filters
debug bgp fsm
debug bgp keepalives
debug bgp updates
!
14 changes: 14 additions & 0 deletions damwaar/netkit-lab_ospf/bb0/etc/quagga/daemons
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This file tells the zebra package
# which daemons to start.
# Entries are in the format: <daemon>=(yes|no|priority)
# where 'yes' is equivalent to infinitely low priority, and
# lower numbers mean higher priority. Read
# /usr/doc/zebra/README.Debian for details.
# Daemons are: bgpd zebra ospfd ospf6d ripd ripngd
zebra=yes
bgpd=yes
ospfd=yes
ospf6d=no
ripd=no
ripngd=no

24 changes: 24 additions & 0 deletions damwaar/netkit-lab_ospf/bb0/etc/quagga/ospfd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
!
hostname ospfd
password zebra
enable password zebra
!
! Default cost for exiting an interface is 10
interface eth0
ospf cost 10
interface eth1
ospf cost 10
interface eth2
ospf cost 10
!
router ospf
! Speak OSPF on all interfaces falling in 10.0.0.0/16
network 10.0.0.0/16 area 0.0.0.0
network 140.0.0.0/24 area 0.0.0.0
redistribute connected
default-information originate always
!
log file /var/log/quagga/ospfd.log
!


20 changes: 20 additions & 0 deletions damwaar/netkit-lab_ospf/bb0/etc/quagga/ospfd.conf~
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
!
hostname ospfd
password zebra
enable password zebra
!
! Default cost for exiting an interface is 10
interface eth0
ospf cost 21
interface eth1
ospf cost 36
!
router ospf
! Speak OSPF on all interfaces falling in 10.0.0.0/16
network 10.0.0.0/16 area 0.0.0.0
redistribute connected
!
log file /var/log/quagga/ospfd.log
!


2 changes: 2 additions & 0 deletions damwaar/netkit-lab_ospf/bb0/etc/quagga/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
password zebra
enable password zebra
5 changes: 5 additions & 0 deletions damwaar/netkit-lab_ospf/bb1.startup
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ifconfig eth0 140.0.0.1 netmask 255.255.255.0 up
ifconfig eth1 10.0.2.2 netmask 255.255.255.0 up
ifconfig eth2 10.0.0.2 netmask 255.255.255.0 up
/etc/init.d/quagga start

14 changes: 14 additions & 0 deletions damwaar/netkit-lab_ospf/bb1/etc/quagga/daemons
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This file tells the zebra package
# which daemons to start.
# Entries are in the format: <daemon>=(yes|no|priority)
# where 'yes' is equivalent to infinitely low priority, and
# lower numbers mean higher priority. Read
# /usr/doc/zebra/README.Debian for details.
# Daemons are: bgpd zebra ospfd ospf6d ripd ripngd
zebra=yes
bgpd=no
ospfd=yes
ospf6d=no
ripd=no
ripngd=no

22 changes: 22 additions & 0 deletions damwaar/netkit-lab_ospf/bb1/etc/quagga/ospfd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
!
hostname ospfd
password zebra
enable password zebra
!
! Default cost for exiting an interface is 10
interface eth0
ospf cost 10
interface eth1
ospf cost 10
interface eth2
ospf cost 10
!
router ospf
! Speak OSPF on all interfaces falling in the listed subnets
network 10.0.0.0/16 area 0.0.0.0
network 140.0.0.0/24 area 0.0.0.0
redistribute connected
!
log file /var/log/quagga/ospfd.log
!

21 changes: 21 additions & 0 deletions damwaar/netkit-lab_ospf/bb1/etc/quagga/ospfd.conf~
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
!
hostname ospfd
password zebra
enable password zebra
!
! Default cost for exiting an interface is 10
interface eth0
ospf cost 10
interface eth1
ospf cost 10
interface eth2
ospf cost 10
!
router ospf
! Speak OSPF on all interfaces falling in the listed subnets
network 10.0.0.0/16 area 0.0.0.0
redistribute connected
!
log file /var/log/quagga/ospfd.log
!

2 changes: 2 additions & 0 deletions damwaar/netkit-lab_ospf/bb1/etc/quagga/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
password zebra
enable password zebra
4 changes: 4 additions & 0 deletions damwaar/netkit-lab_ospf/bb2.startup
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ifconfig eth0 10.0.0.1 netmask 255.255.255.0 up
ifconfig eth1 10.0.1.1 netmask 255.255.255.0 up
/etc/init.d/quagga start

14 changes: 14 additions & 0 deletions damwaar/netkit-lab_ospf/bb2/etc/quagga/daemons
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This file tells the zebra package
# which daemons to start.
# Entries are in the format: <daemon>=(yes|no|priority)
# where 'yes' is equivalent to infinitely low priority, and
# lower numbers mean higher priority. Read
# /usr/doc/zebra/README.Debian for details.
# Daemons are: bgpd zebra ospfd ospf6d ripd ripngd
zebra=yes
bgpd=no
ospfd=yes
ospf6d=no
ripd=no
ripngd=no

18 changes: 18 additions & 0 deletions damwaar/netkit-lab_ospf/bb2/etc/quagga/ospfd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
!
hostname ospfd
password zebra
enable password zebra
! Default cost for exiting an interface is 10
interface eth0
ospf cost 10
interface eth1
ospf cost 10
!
router ospf
! Speak OSPF on all interfaces falling in the listed subnets
network 10.0.0.0/16 area 0.0.0.0
redistribute connected
!
log file /var/log/quagga/ospfd.log
!

13 changes: 13 additions & 0 deletions damwaar/netkit-lab_ospf/bb2/etc/quagga/ospfd.conf~
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
!
hostname ospfd
password zebra
enable password zebra
!
router ospf
! Speak OSPF on all interfaces falling in the listed subnets
network 10.0.0.0/16 area 0.0.0.0
redistribute connected
!
log file /var/log/quagga/ospfd.log
!

2 changes: 2 additions & 0 deletions damwaar/netkit-lab_ospf/bb2/etc/quagga/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
password zebra
enable password zebra
4 changes: 4 additions & 0 deletions damwaar/netkit-lab_ospf/bb3.startup
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ifconfig eth0 10.0.2.1 netmask 255.255.255.0 up
ifconfig eth1 10.0.1.2 netmask 255.255.255.0 up
/etc/init.d/quagga start

14 changes: 14 additions & 0 deletions damwaar/netkit-lab_ospf/bb3/etc/quagga/daemons
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This file tells the zebra package
# which daemons to start.
# Entries are in the format: <daemon>=(yes|no|priority)
# where 'yes' is equivalent to infinitely low priority, and
# lower numbers mean higher priority. Read
# /usr/doc/zebra/README.Debian for details.
# Daemons are: bgpd zebra ospfd ospf6d ripd ripngd
zebra=yes
bgpd=no
ospfd=yes
ospf6d=no
ripd=no
ripngd=no

19 changes: 19 additions & 0 deletions damwaar/netkit-lab_ospf/bb3/etc/quagga/ospfd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
!
hostname ospfd
password zebra
enable password zebra
!
! Default cost for exiting an interface is 10
interface eth0
ospf cost 10
interface eth1
ospf cost 10
!
router ospf
! Speak OSPF on all interfaces falling in 10.0.0.0/16
network 10.0.0.0/16 area 0.0.0.0
redistribute connected
!
log file /var/log/quagga/ospfd.log
!

17 changes: 17 additions & 0 deletions damwaar/netkit-lab_ospf/bb3/etc/quagga/ospfd.conf~
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
!
hostname ospfd
password zebra
enable password zebra
!
! Default cost for exiting an interface is 10
interface eth0
ospf cost 7
!
router ospf
! Speak OSPF on all interfaces falling in 10.0.0.0/16
network 10.0.0.0/16 area 0.0.0.0
redistribute connected
!
log file /var/log/quagga/ospfd.log
!

2 changes: 2 additions & 0 deletions damwaar/netkit-lab_ospf/bb3/etc/quagga/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
password zebra
enable password zebra
48 changes: 48 additions & 0 deletions damwaar/netkit-lab_ospf/lab.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
LAB_DESCRIPTION="A network showing the operation of the OSPF routing protocol in a simple scenario with a single area"
LAB_VERSION=1.4
LAB_AUTHOR="G. Di Battista, M. Rimondini"
[email protected]
LAB_WEB=http://www.netkit.org/

bb0[0]=AA
bb0[1]=A
bb0[2]=C

bb1[0]=AA
bb1[1]=AC
bb1[2]=AB

bb2[0]=AB
bb2[1]=AD

bb3[0]=AC
bb3[1]=AD

r0[0]=BA
r0[1]=A
r0[2]=B

r1[0]=BA
r1[1]=BB
r1[2]=BC

r2[0]=BD
r2[1]=BB

r3[0]=BD
r3[1]=BC

rr0[0]=CA
rr0[1]=B
rr0[2]=C

rr1[0]=CA
rr1[1]=CB
rr1[2]=CC

rr2[0]=CC
rr2[1]=CD

rr3[0]=CB
rr3[1]=CD

5 changes: 5 additions & 0 deletions damwaar/netkit-lab_ospf/r0.startup
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ifconfig eth0 141.0.0.1 netmask 255.255.255.0 up
ifconfig eth1 145.0.0.1 netmask 255.255.255.0 up
ifconfig eth2 147.0.0.2 netmask 255.255.255.0 up
/etc/init.d/quagga start

36 changes: 36 additions & 0 deletions damwaar/netkit-lab_ospf/r0/etc/quagga/bgpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
!
hostname bgpd
password zebra
enable password zebra
!
router bgp 172
network 141.0.0.0/24
network 145.0.0.0/24
network 147.0.0.0/24
network 172.16.0.0/24
network 172.16.1.0/24
network 172.16.2.0/24
!
neighbor 145.0.0.2 remote-as 10
neighbor 145.0.0.2 description Router bb0
neighbor 145.0.0.2 prefix-list as10In in
neighbor 145.0.0.2 prefix-list defaultOut out
!
neighbor 147.0.0.1 remote-as 192
neighbor 147.0.0.1 description Router rr0
neighbor 147.0.0.1 prefix-list as192In in
neighbor 147.0.0.1 prefix-list defaultOut out
!
ip prefix-list as10In permit any
ip prefix-list as192In permit any
ip prefix-list defaultOut permit any
!
log file /var/log/quagga/bgpd.log
!
debug bgp
debug bgp events
debug bgp filters
debug bgp fsm
debug bgp keepalives
debug bgp updates
!
14 changes: 14 additions & 0 deletions damwaar/netkit-lab_ospf/r0/etc/quagga/daemons
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This file tells the zebra package
# which daemons to start.
# Entries are in the format: <daemon>=(yes|no|priority)
# where 'yes' is equivalent to infinitely low priority, and
# lower numbers mean higher priority. Read
# /usr/doc/zebra/README.Debian for details.
# Daemons are: bgpd zebra ospfd ospf6d ripd ripngd
zebra=yes
bgpd=yes
ospfd=yes
ospf6d=no
ripd=no
ripngd=no

Loading