[LARTC] routing query again

2003-11-06 Thread Payal Rathod
Hi,
I have a small routing query again. Same question but asking in simple
language. 
Can I use,
route add -net default gw 192.168.10.1
route add -net default gw 192.168.10.2

Where 192.168.10.1 and 192.168.10.2 are internal IPs of two different
ISPs routers. 

And assume that random routing is enabled? I would like to mention that
this time both default IPs are internal IPs connected to external world.

I am not still clear on real use of multiple default gateways, so please
excuse.
With warm regards,
-Payal


-- 
Visit GNU/Linux Success Stories
http://payal.staticky.com
Guest-Book Section Updated.
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] routing query

2003-09-04 Thread Manish Singh
  route add -net 192.168.1.0 netmask 255.255.255.0 br2

 once i have that, i apply the following

  tc qdisc add dev br2 root handle 3: htb default 11
  tc class add dev br2 parent 3: classid 3:1 htb rate 10mbit
  tc class add dev br2 parent 3:1 classid 3:10 htb rate 9990kbit ceil
 10mbit
  tc class add dev br2 parent 3:1 classid 3:11 htb rate 10kbit ceil
 25kbit
  tc qdisc add dev br2 parent 3:10 handle 30: sfq
  tc qdisc add dev br2 parent 3:11 handle 31: sfq
  tc filter add dev br2 protocol ip parent 3: handle 5 fw classid 3:10
  ebtables -t nat -A POSTROUTING -o eth2 -p IPV4 -d 00:30:65:17:71:8f
 -j mark --set-mark 5

 please note that the ebtables is being applied to eth2.

 when i set this up, all traffic destined for 00:30:65:17:71:8f, i
 think, is being marked as the --Lc count is increasing.  however, when
 i do a

  tc -s qdisc show dev br2

 it looks like all the packets are going into queue 11, which is the
 10kbit class.

 if somebody could shed some light on this problem, i would greatly
 appreciate it.

 r


 --__--__--

 Message: 4
 Date: Wed, 03 Sep 2003 21:20:24 -0500 (COT)
 From: Randolph Carter [EMAIL PROTECTED]
 To: Damjan [EMAIL PROTECTED]
 Cc: Lartc List [EMAIL PROTECTED]
 Subject: [LARTC] (no subject)

 Seem you want to achieve somekind of concave service curve but with
 terrible times, maybe you could try to do it some way the HFSC queuer
 does but definitly not in a script or using HTB, HTB uses a linear service
 curve as a Token Bucket actually does, you should try using the linux port
 of the HFSC made by Alex Goldney you can find further info here

 http://members.optushome.com.au/agoldney/

 HFSC is intented for delay bounding, but I think you could do some strange
 arragments to achieve what u say. Tell me if u get it.

 You're not drunk if you can lie on the floor without holding on.
   -- Dean Martin
 last night.

 --__--__--

 Message: 5
 Date: Fri, 5 Sep 2003 08:03:46 +0530
 From: Payal Rathod [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: [LARTC] routing query

 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 RefUse
 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 UG0  0 
   0 eth0 default 125.125.125.3   0.0.0.0 UG0  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

-- 
Regards,
Manish Singh
Software Engineer
Consilnet India Pvt Ltd
Ph: 011 26868293/94/95

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] routing query

2003-09-04 Thread Manish Singh
, when
 i do a

  tc -s qdisc show dev br2

 it looks like all the packets are going into queue 11, which is the
 10kbit class.

 if somebody could shed some light on this problem, i would greatly
 appreciate it.

 r


 --__--__--

 Message: 4
 Date: Wed, 03 Sep 2003 21:20:24 -0500 (COT)
 From: Randolph Carter [EMAIL PROTECTED]
 To: Damjan [EMAIL PROTECTED]
 Cc: Lartc List [EMAIL PROTECTED]
 Subject: [LARTC] (no subject)

 Seem you want to achieve somekind of concave service curve but with
 terrible times, maybe you could try to do it some way the HFSC queuer
 does but definitly not in a script or using HTB, HTB uses a linear service
 curve as a Token Bucket actually does, you should try using the linux port
 of the HFSC made by Alex Goldney you can find further info here

 http://members.optushome.com.au/agoldney/

 HFSC is intented for delay bounding, but I think you could do some strange
 arragments to achieve what u say. Tell me if u get it.

 You're not drunk if you can lie on the floor without holding on.
   -- Dean Martin
 last night.

 --__--__--

 Message: 5
 Date: Fri, 5 Sep 2003 08:03:46 +0530
 From: Payal Rathod [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: [LARTC] routing query

 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 RefUse
 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 UG0  0 
   0 eth0 default 125.125.125.3   0.0.0.0 UG0  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

-- 
Regards,
Manish Singh
Software Engineer
Consilnet India Pvt Ltd
Ph: 011 26868293/94/95

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] routing query

2003-09-04 Thread Lawrence MacIntyre
Payal:

What subnet are your users' machines on?  Is there a third ethernet
address on the linux machine where the user machines connect or are they
connected to one of the two given ethernet interfaces (eth0 or eth1)?  

On Thu, 2003-09-04 at 22:33, Payal Rathod wrote:
 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 RefUse Iface
 127.0.0.0   *   255.0.0.0   U 0  00 lo
 125.0.0.0   *   255.0.0.0   U 0  00 eth1
 125.0.0.0   *   255.0.0.0   U 0  00 eth1
 default 203.124.123.111 0.0.0.0 UG0  00 eth0
 default 125.125.125.3   0.0.0.0 UG0  00 eth1
 default *   0.0.0.0 U 0  00 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


signature.asc
Description: This is a digitally signed message part


Re: [LARTC] routing query

2003-09-04 Thread Payal Rathod
On Thu, Sep 04, 2003 at 01:33:29PM -0400, Lawrence MacIntyre wrote:
 Payal:
 
 What subnet are your users' machines on?  Is there a third ethernet
 address on the linux machine where the user machines connect or are they
 connected to one of the two given ethernet interfaces (eth0 or eth1)?  

All machines are 125.125.125.0/24. They are either connected t eth0 r
eth1.
HTH,
-Payal

 On Thu, 2003-09-04 at 22:33, Payal Rathod wrote:
  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 RefUse Iface
  127.0.0.0   *   255.0.0.0   U 0  00 lo
  125.0.0.0   *   255.0.0.0   U 0  00 eth1
  125.0.0.0   *   255.0.0.0   U 0  00 eth1
  default 203.124.123.111 0.0.0.0 UG0  00 eth0
  default 125.125.125.3   0.0.0.0 UG0  00 eth1
  default *   0.0.0.0 U 0  00 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



-- 
For GNU/Linux Success Stories and Articles visit:
  http://payal.staticky.com
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] routing query

2003-09-03 Thread Payal Rathod
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 RefUse Iface
127.0.0.0   *   255.0.0.0   U 0  00 lo
125.0.0.0   *   255.0.0.0   U 0  00 eth1
125.0.0.0   *   255.0.0.0   U 0  00 eth1
default 203.124.123.111 0.0.0.0 UG0  00 eth0
default 125.125.125.3   0.0.0.0 UG0  00 eth1
default *   0.0.0.0 U 0  00 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 / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/