Quagga

From HackerNet
Revision as of 10:37, 8 April 2016 by Helikopter (talk | contribs)
Jump to: navigation, search

Quagga är en network routing software suite och har stöd för OSPF, BGP, RIP och IS-IS. Quagga har en core daemon som heter zebra och sedan klienter till det, ospfd, isisd, ripd, ospf6d, ripngd och bgpd.

Installation

dnf install quagga
apt-get install quagga

Konfiguration

Slå på det som är nödvändigt

sudo nano /etc/quagga/daemons
sudo cp /usr/share/doc/quagga/examples/zebra.conf.sample /etc/quagga/zebra.conf
sudo service quagga restart

File Permissions

sudo chown quagga.quaggavty /etc/quagga/*.conf
sudo chmod 640 /etc/quagga/*.conf

CLI

telnet localhost zebra

VTYSH

sudo cp /usr/share/doc/quagga/examples/vtysh.conf.sample /etc/quagga/vtysh.conf
sudo chown quagga:quaggavty /etc/quagga/vtysh.conf && sudo chmod 660 /etc/quagga/vtysh.conf
echo "VTYSH_PAGER=more" | sudo tee -a /etc/environment
sudo vtysh

Allow routing

echo "net.ipv4.conf.all.forwarding=1" | sudo tee -a /etc/sysctl.conf 
echo "net.ipv4.conf.default.forwarding=1" | sudo tee -a /etc/sysctl.conf

OSPF

sudo cp /usr/share/doc/quagga/examples/ospfd.conf.sample /etc/quagga/ospfd.conf
sudo nano /etc/quagga/ospfd.conf && sudo service quagga restart
hostname ospfd
router ospf
 network 10.0.0.0/24 area 0

CLI

telnet localhost ospfd

wr för att spara

BGP

sudo cp /usr/share/doc/quagga/examples/bgpd.conf.sample /etc/quagga/bgpd.conf
sudo nano /etc/quagga/bgpd.conf && sudo service quagga restart
hostname bgpd
router bgp 100
 bgp router-id 10.0.0.1
 network 10.0.0.0/24
 neighbor 10.0.0.2 remote-as 100

CLI

telnet localhost bgpd

wr för att spara