[LARTC] Can't use two links on a linux box

Linux Advanced Routing and Traffic Control

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

 



Hi,

I have a linux box connected to two leased lines as follows:

	  _/\__/\_
	 /	  \	+--------+	  +------------+
	( Internet )----+ Router |	  | SMTP server|
	 \_  __  _/	+----+---+        +------+-----+
	   \/  \/	     | 200.200.200.254   |
   100.100.100.2\   -+-------+----- ... ---------+--
    100.100.100.1\   | 200.200.200.1
		+-+--+--+
		| Linux |
		+---+---+    _/\__/\_
	192.168.1.1 |	    /	     \
		   -+------( Intranet )
			    \_  __  _/
			      \/  \/

The router came first when there was a small intranet. Now the network
has grown very much and we were unable to upgrade our link speed because
the local telco is unable to provide a 128Kbps link. Then we decided to
install a linux box to act as a proxy server (squid) with a wanpipe card
and lease a frame-relay link. This new link would have a different IP
address and there would be two squids running. One would use the old
link and another the new one. In order to achieve that I first attached
the outgoing IP address for each squid to the propper network interface.
Then I followed Adv-Routing HowTo and tried the following:

# ip rule add from 100.100.100.1 table 200
# ip route add default via 100.100.100.2 table 200
# ip route add default via 200.200.200.1 table main
# ip route flush cache

I tried some traceroutes with the -s option to check whether this was
working but apparently it was not. I also tried to create the default
route via 200.200.200.1 on table 253 but it behaved just the same way.
Then I created it on a custom table (201) and added a rule for it. Then
the network was unreachable.

I tried the same things on kernel 2.2.14 (suse 6.4) and kernel 2.2.16
(on a modified redhat). I tried also on a machine with two network
cards. I also played with /proc/sys/net/ipv4/ip_forward.

The ip command version was ss991023 (suse 6.4) and ss001007 on redhat.

What am I doing wrong?

	Thank you,
		Gustavo.

-- 
"E pur si muove"

	-- Galileo Galilei



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