routing query

Linux Advanced Routing and Traffic Control

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

 



Hi,
I have a simple question. I asked a friend about it but he was also not
clear. So, I thought of mailing the list.

I have a linux box (RH 7.2) which will have 2 net cards. I have 2 types
of connections to that box. One RF at eth0 and 1 ISDN at eth1.
Now I told 10 people from the company to give eth1 as their default
gateway and the rest as eth0. Ok, so far? Now my understanding that with
the routing table below, all traffic coming to eth0 will be routed thru'
RF router and all traffic coming to eth1 will be routed through ISDN
router. Am I right? S, if ISDN fails only 10 people will suffer but the
rest can continue using RF line. Same case with RF line, if it fails the
10 people can use ISDN without any glitch. This is no load balancing
network. Just a simple routing decision.

I have,
route add default gw <ISDN router ip> dev eth1
route add default gw <RF router ip> dev eth0


Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
125.0.0.0       *               255.0.0.0       U     0      0        0 eth1
125.0.0.0       *               255.0.0.0       U     0      0        0 eth1
default         203.124.123.111 0.0.0.0         UG    0      0        0 eth0
default         125.125.125.3   0.0.0.0         UG    0      0        0 eth1
default         *               0.0.0.0         U     0      0        0 eth0

Can anyone comment whether I am right in my analysis?

My friend's comments are given below,

| I still say that should be necessary. I believe you need to echo 0
| at some files found by /proc/sys/net/ipv4/conf/*/send_redirects.
| Otherwise devices won't route through your box, they'll be
| redirected straight to one of the routers (at random, as far as I
| know).

With warm regards,
-Payal

-- 
"Visit GNU/Linux Success Stories"
http://payal.staticky.com
Guest-Book Section Updated.
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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