Linux as router :
Running Router in Linux.
Using Linux Box as Router instead of Cisco Router.This is achieved using Quagga package, which supports RIP, BGP, OSPF and a Zebra Manager. The commands are almost similar to Cisco.
RPM Packages of Quagga can be downloaded from the below URL
http://www.quagga.net/download.php
After installation you need to start the zebra daemon and rip or bgp or ospf daemon which ever routing protocol you wish to use.
The config files are stored under the /etc/quagga folder ripd.conf --- for RIP config zebra.conf --- for Zebra config etc...
Zebra daemon listens on port 2601 and RIP on 2602, these services are added in the /etc/service file.
You can check the live routing implementation using RIP protocol on the below 2 pc's.
Router A – IP 192.168.2.250 Router B – IP 192.168.2.214
Taking the above scenario I have used only two Linux box as router.
Router A – IP 192.168.2.250 eth0:0 – IP 172.16.2.1 -- which is acting as Serial Interface --- DTE dummy0 – IP 10.0.1.1 -- which is acting as Local LAN eth0 Interface
NOTE: Instead of Serial port I have used eth0:0, as there are no IP assigned to serial ports in Linux
Router B – IP 192.168.2.250 eth0:0 – IP 172.16.2.2 -- which is acting as Serial Interface --- DCE dummy0 -- IP 10.0.2.1 -- which is acting as Local LAN eth0 interface
We can have third Router C which the above similar configs, and if any one of the line goes down the RIP gets updates the routing tables respectively.
Using the router: Router A -- #telnet 192.168.2.250 2601 Router B -- #telnet 192.168.2.214 2601
password for user and privileged mode is legacy.
The configuration files are stored under the directory /etc/quagga/
NOTE: The folder contain the conf files of both the router Router A – IP 192.168.2.250 and Router B – IP 192.168.2.214
Education Links:
http://www.quagga.net/
Monday, August 27, 2007
at
12:43 AM
Labels: Linux Tips
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment