Quagga

Installation

sudo aptitude install quagga
ls -l /etc/quagga
total 8
-rw-r--r-- 1 root root 990 Mar 13  2015 daemons
-rw-r--r-- 1 root root 945 Mar 13  2015 debian.conf

cd /etc/quagga
sudo cp daemons daemons.orig
sudo nano daemons
diff daemons daemons.orig
24c24
< zebra=yes
---
> zebra=no
sudo cp /usr/share/doc/quagga/examples/zebra.conf.sample /etc/quagga/zebra.conf
sudo service quagga restart
ps -ef | grep quagga
root      1976     1  0 04:31 ?        00:00:00 /usr/lib/quagga/watchquagga --daemon zebra

sudo vtysh

Hello, this is Quagga (version 0.99.24.1).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

Quagga# exit

telnet localhost 2601
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

Hello, this is Quagga (version 0.99.24.1).
Copyright 1996-2005 Kunihiro Ishiguro, et al.


User Access Verification

Password: 
Suhu-Router> enable
Password: 
Suhu-Router# configure terminal
Suhu-Router(config)# service password-encryption 
Suhu-Router(config)# interface eth0 
Suhu-Router(config-if)# ip address 192.168.180.252/24 label LAN
Suhu-Router(config-if)# end
Suhu-Router# show running-config

Current configuration:
!
hostname Suhu-Router
password 8 AH9D3yqe92ZvE
enable password 8 J..LfSbjRBhYk
service password-encryption
!
interface eth0
 no link-detect
 ip address 192.168.180.253/24
 ipv6 nd suppress-ra
!
interface lo
 no link-detect
!
!
!
line vty
!
end

Suhu-Router# write
Can't backup old configuration file /etc/quagga/zebra.conf.sav.
Suhu-Router# exit
Connection closed by foreign host.

sudo chown quagga.quaggavty /etc/quagga/*.conf
sudo chmod 640 /etc/quagga/*.conf
telnet localhost 2601
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

Hello, this is Quagga (version 0.99.24.1).
Copyright 1996-2005 Kunihiro Ishiguro, et al.


User Access Verification

Password: 
Suhu-Router> enable 
Password: 
Suhu-Router# write 
Configuration saved to /etc/quagga/zebra.conf
Suhu-Router# show ip route 
Codes: K - kernel route, C - connected, S - static, R - RIP,
       O - OSPF, I - IS-IS, B - BGP, P - PIM, A - Babel,
       > - selected route, * - FIB route

K>* 0.0.0.0/0 via 192.168.180.254, eth0
C>* 127.0.0.0/8 is directly connected, lo
C>* 192.168.180.0/24 is directly connected, eth0




References

Quagga Routing Suite
QUAGGA - The Easy Tutorial - How to use Quagga
Quagga - SOWNWiki