Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pim_dm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
pim_dm
Commits
ffd4afc5
Commit
ffd4afc5
authored
Jul 26, 2017
by
Pedro Oliveira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Zebra/Quagga + OSPF
parent
9e6af60d
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
241 additions
and
3 deletions
+241
-3
emulation/router1.startup
emulation/router1.startup
+5
-1
emulation/router1/etc/quagga/daemons
emulation/router1/etc/quagga/daemons
+31
-0
emulation/router1/etc/quagga/debian.conf
emulation/router1/etc/quagga/debian.conf
+24
-0
emulation/router1/etc/quagga/ospfd.conf
emulation/router1/etc/quagga/ospfd.conf
+15
-0
emulation/router1/etc/quagga/vtysh.conf
emulation/router1/etc/quagga/vtysh.conf
+7
-0
emulation/router1/etc/quagga/zebra.conf
emulation/router1/etc/quagga/zebra.conf
+25
-0
emulation/router1/root/script.sh
emulation/router1/root/script.sh
+9
-0
emulation/router2.startup
emulation/router2.startup
+15
-2
emulation/router2/etc/quagga/daemons
emulation/router2/etc/quagga/daemons
+31
-0
emulation/router2/etc/quagga/debian.conf
emulation/router2/etc/quagga/debian.conf
+24
-0
emulation/router2/etc/quagga/ospfd.conf
emulation/router2/etc/quagga/ospfd.conf
+14
-0
emulation/router2/etc/quagga/vtysh.conf
emulation/router2/etc/quagga/vtysh.conf
+7
-0
emulation/router2/etc/quagga/zebra.conf
emulation/router2/etc/quagga/zebra.conf
+25
-0
emulation/router2/root/script.sh
emulation/router2/root/script.sh
+9
-0
No files found.
emulation/router1.startup
View file @
ffd4afc5
...
...
@@ -7,5 +7,9 @@ ip link set dev eth1 up
#NAT for private ip's
iptables -t nat -A POSTROUTING -s 0.0.0.0/0 -o eth2 -j MASQUERADE
# Zebra and OSPF
/etc/init.d/quagga restart
apt-get update && apt-get --assume-yes install python3 python3-pip
apt-get update && apt-get install pimd
emulation/router1/etc/quagga/daemons
0 → 100644
View file @
ffd4afc5
# This file tells the quagga package which daemons to start.
#
# Entries are in the format: <daemon>=(yes|no|priority)
# 0, "no" = disabled
# 1, "yes" = highest priority
# 2 .. 10 = lower priorities
# Read /usr/share/doc/quagga/README.Debian for details.
#
# Sample configurations for these daemons can be found in
# /usr/share/doc/quagga/examples/.
#
# ATTENTION:
#
# When activation a daemon at the first time, a config file, even if it is
# empty, has to be present *and* be owned by the user and group "quagga", else
# the daemon will not be started by /etc/init.d/quagga. The permissions should
# be u=rw,g=r,o=.
# When using "vtysh" such a config file is also needed. It should be owned by
# group "quaggavty" and set to ug=rw,o= though. Check /etc/pam.d/quagga, too.
#
# The watchquagga daemon is always started. Per default in monitoring-only but
# that can be changed via /etc/quagga/debian.conf.
#
zebra=yes
bgpd=no
ospfd=yes
ospf6d=no
ripd=no
ripngd=no
isisd=no
babeld=no
emulation/router1/etc/quagga/debian.conf
0 → 100644
View file @
ffd4afc5
#
# If this option is set the /etc/init.d/quagga script automatically loads
# the config via "vtysh -b" when the servers are started.
# Check /etc/pam.d/quagga if you intend to use "vtysh"!
#
vtysh_enable
=
yes
zebra_options
=
" --daemon -A 127.0.0.1"
bgpd_options
=
" --daemon -A 127.0.0.1"
ospfd_options
=
" --daemon -A 127.0.0.1"
ospf6d_options
=
" --daemon -A ::1"
ripd_options
=
" --daemon -A 127.0.0.1"
ripngd_options
=
" --daemon -A ::1"
isisd_options
=
" --daemon -A 127.0.0.1"
babeld_options
=
" --daemon -A 127.0.0.1"
#
# Please note that watchquagga_options is an array and not a string so that
# quotes can be used.
#
# The list of daemons to watch is automatically generated by the init script
# from daemons.conf and appended to the watchquagga_options.
# Example:
# watchquagga_options=("-Adz" "-r" '/sbin/service %s restart' -s '/sbin/service %s start' -k '/sbin/service %s stop')
watchquagga_enable
=
yes
watchquagga_options
=(--
daemon
)
emulation/router1/etc/quagga/ospfd.conf
0 → 100644
View file @
ffd4afc5
! -*-
ospf
-*-
!
!
OSPFd
sample
configuration
file
!
!
hostname
ospfd
password
zebra
!
enable
password
please
-
set
-
at
-
here
!
router
ospf
network
10
.
0
.
0
.
0
/
24
area
0
network
192
.
168
.
2
.
0
/
24
area
0
default
-
information
originate
always
!
log
stdout
emulation/router1/etc/quagga/vtysh.conf
0 → 100644
View file @
ffd4afc5
!
!
Sample
configuration
file
for
vtysh
.
!
!
service
integrated
-
vtysh
-
config
hostname
quagga
-
router
username
root
nopassword
!
emulation/router1/etc/quagga/zebra.conf
0 → 100644
View file @
ffd4afc5
! -*-
zebra
-*-
!
!
zebra
sample
configuration
file
!
! $
Id
:
zebra
.
conf
.
sample
,
v
1
.
1
2002
/
12
/
13
20
:
15
:
30
paul
Exp
$
!
hostname
Router
password
zebra
enable
password
zebra
!
!
Interface
'
s
description
.
!
!
interface
lo
!
description
test
of
desc
.
!
!
interface
sit0
!
multicast
!
!
Static
default
route
sample
.
!
ip
route
0
.
0
.
0
.
0
/
0
192
.
168
.
2
.
2
!
!
log
file
/
var
/
log
/
quagga
/
zebra
.
log
emulation/router1/root/script.sh
0 → 100644
View file @
ffd4afc5
rm
-rf
MulticastRouting/
cp
-rf
/hosthome/Desktop/pim_code/ MulticastRouting/
cd
MulticastRouting
pip-3.2
install
-r
requirements.txt
python3 Run.py
-stop
python3 Run.py
-start
python3 Run.py
-ai
eth0
python3 Run.py
-v
emulation/router2.startup
View file @
ffd4afc5
...
...
@@ -4,6 +4,19 @@ ip addr add dev eth1 10.0.1.2/24
ip link set dev eth1 up
#default route para obter conectividade internet
ip route add 0.0.0.0/0 via 10.0.0.1
#ip route add 0.0.0.0/0 via 10.0.0.1
#ip route del 0.0.0.0/0
# Zebra and OSPF
/etc/init.d/quagga restart
# wait for default route information from OSPF
while ! $(ip route | grep -q "default")
do
sleep 2
done
# install python
apt-get update && apt-get --assume-yes install python3 python3-pip
apt-get update && apt-get install pimd
emulation/router2/etc/quagga/daemons
0 → 100644
View file @
ffd4afc5
# This file tells the quagga package which daemons to start.
#
# Entries are in the format: <daemon>=(yes|no|priority)
# 0, "no" = disabled
# 1, "yes" = highest priority
# 2 .. 10 = lower priorities
# Read /usr/share/doc/quagga/README.Debian for details.
#
# Sample configurations for these daemons can be found in
# /usr/share/doc/quagga/examples/.
#
# ATTENTION:
#
# When activation a daemon at the first time, a config file, even if it is
# empty, has to be present *and* be owned by the user and group "quagga", else
# the daemon will not be started by /etc/init.d/quagga. The permissions should
# be u=rw,g=r,o=.
# When using "vtysh" such a config file is also needed. It should be owned by
# group "quaggavty" and set to ug=rw,o= though. Check /etc/pam.d/quagga, too.
#
# The watchquagga daemon is always started. Per default in monitoring-only but
# that can be changed via /etc/quagga/debian.conf.
#
zebra=yes
bgpd=no
ospfd=yes
ospf6d=no
ripd=no
ripngd=no
isisd=no
babeld=no
emulation/router2/etc/quagga/debian.conf
0 → 100644
View file @
ffd4afc5
#
# If this option is set the /etc/init.d/quagga script automatically loads
# the config via "vtysh -b" when the servers are started.
# Check /etc/pam.d/quagga if you intend to use "vtysh"!
#
vtysh_enable
=
yes
zebra_options
=
" --daemon -A 127.0.0.1"
bgpd_options
=
" --daemon -A 127.0.0.1"
ospfd_options
=
" --daemon -A 127.0.0.1"
ospf6d_options
=
" --daemon -A ::1"
ripd_options
=
" --daemon -A 127.0.0.1"
ripngd_options
=
" --daemon -A ::1"
isisd_options
=
" --daemon -A 127.0.0.1"
babeld_options
=
" --daemon -A 127.0.0.1"
#
# Please note that watchquagga_options is an array and not a string so that
# quotes can be used.
#
# The list of daemons to watch is automatically generated by the init script
# from daemons.conf and appended to the watchquagga_options.
# Example:
# watchquagga_options=("-Adz" "-r" '/sbin/service %s restart' -s '/sbin/service %s start' -k '/sbin/service %s stop')
watchquagga_enable
=
yes
watchquagga_options
=(--
daemon
)
emulation/router2/etc/quagga/ospfd.conf
0 → 100644
View file @
ffd4afc5
! -*-
ospf
-*-
!
!
OSPFd
sample
configuration
file
!
!
hostname
ospfd
password
zebra
!
enable
password
please
-
set
-
at
-
here
!
router
ospf
network
10
.
0
.
0
.
0
/
24
area
0
network
10
.
0
.
1
.
0
/
24
area
0
!
log
stdout
emulation/router2/etc/quagga/vtysh.conf
0 → 100644
View file @
ffd4afc5
!
!
Sample
configuration
file
for
vtysh
.
!
!
service
integrated
-
vtysh
-
config
hostname
quagga
-
router
username
root
nopassword
!
emulation/router2/etc/quagga/zebra.conf
0 → 100644
View file @
ffd4afc5
! -*-
zebra
-*-
!
!
zebra
sample
configuration
file
!
! $
Id
:
zebra
.
conf
.
sample
,
v
1
.
1
2002
/
12
/
13
20
:
15
:
30
paul
Exp
$
!
hostname
Router
password
zebra
enable
password
zebra
!
!
Interface
'
s
description
.
!
!
interface
lo
!
description
test
of
desc
.
!
!
interface
sit0
!
multicast
!
!
Static
default
route
sample
.
!
!
ip
route
0
.
0
.
0
.
0
/
0
203
.
181
.
89
.
241
!
!
log
file
/
var
/
log
/
quagga
/
zebra
.
log
emulation/router2/root/script.sh
0 → 100644
View file @
ffd4afc5
rm
-rf
MulticastRouting/
cp
-rf
/hosthome/Desktop/pim_code/ MulticastRouting/
cd
MulticastRouting
pip-3.2
install
-r
requirements.txt
python3 Run.py
-stop
python3 Run.py
-start
python3 Run.py
-ai
eth0
python3 Run.py
-v
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment