Routing Configuration

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have emailed the list before (email can be found here
http://mailman.ds9a.nl/pipermail/lartc/2005q4/017220.html) regarding this
matter. Basically, I am trying to set up a router for my college, to route
conference guests over an adsl line, and students over an academic
connection. I've looked at man ip(8), and a few examples, and think I have a
configuration that will work, but was wondering if somebody would mind
taking a look at it before I implement it (the system is currently live, so
I want to minimize downtime while implementing this change).

The configuration I have devised below is based on the tutorial here
(http://www.linuxquestions.org/questions/answers.php?action=viewarticle&arti
d=490).

The setup I have is shown below, along with the commands I think I will need
to run to set up routing correctly:


		  --------------------------------------
		 | eth2			           eth0 |
 ----- 	 | 192.168.7.253  --->  192.168.100.253 | ISP_1  -----
|     |------| 255.255.252.0          255.255.255.0 |-------|     |
|     |	 |					          |	      |
|
| LAN |	 |		      ROUTER	          |	      | WEB |
|     |	 |				      	    | ISP_2 |     |
|     |------| eth1			           eth3 |-------|     |
 ----- 	 | 192.168.3.253  ---->  192.168.20.253 |	       -----
		 | 255.255.252.0          255.255.255.0 |
		  --------------------------------------

echo "ISP_1" >> /etc/iproute2/rt_tables
echo "ISP_2" >> /etc/iproute2/rt_tables

ip route add 192.168.4.0/22 dev eth2 src 192.168.7.253 table ISP_1
ip route add default via 192.168.100.253 table ISP_1
ip route add 192.168.0.0/22 dev eth1 src 192.168.3.253 table ISP_2
ip route add default via 192.168.20.253 table ISP_2

ip rule add from 192.168.7.253 table ISP_1
ip rule add from 192.168.3.253 table ISP_2


If anyone could advise as to whether this is correct, or if there is
something I have completely missed or overlooked, or interpreted
incorrectly, it would be greatly appreciated.

Paul

---
Paul Lewis (paul.lewis@xxxxxxxxxxxxxxxxx)
JCR Computing Rep
St Anne's College
http://www.stannesjcr.org 





_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux