Hi, I was wondering if somebody could assist me in the following I have a lan with a mail server, a fixed outside ip address leased line router at 10.1.1.1, and a dynamic outside ip address adsl router at 10.1.1.5 Our linux mail server always used to have the leased line router at 10.1.1.1, but now with our adsl, I''d like traffic to go across 10.1.1.5, I thought it would be straight forward to just change the default gateway from 10.1.1.1 to 10.1.1.5, but this resulted in any traffic coming in via 10.1.1.1 being ignored. I''ve been told it is because the replies go out over 10.1.1.5 I''ve looked over the adv routing howto, but can''t see how I would implement it according to section 4.2.1, as I won''t always know our ip address for the adsl connection. Could someone point me in the right direction? Thanks, Alex _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> Hi, > > I was wondering if somebody could assist me in the following > > I have a lan with a mail server, a fixed outside ip address leased line > router at 10.1.1.1, and a dynamic outside ip address adsl router at 10.1.1.5 > > Our linux mail server always used to have the leased line router at > 10.1.1.1, but now with our adsl, I''d like traffic to go across 10.1.1.5, > I thought it would be straight forward to just change the default > gateway from 10.1.1.1 to 10.1.1.5, but this resulted in any traffic > coming in via 10.1.1.1 being ignored. I''ve been told it is because the > replies go out over 10.1.1.5 > > I''ve looked over the adv routing howto, but can''t see how I would > implement it according to section 4.2.1, as I won''t always know our ip > address for the adsl connection. > > Could someone point me in the right direction? > > Thanks, > Alex >I found this to be excellent... http://www.linuxpowered.com/HOWTO/Adv-Routing-HOWTO/lartc.rpdb.multiple-links.html Leigh. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>>I found this to be excellent... >> >>http://www.linuxpowered.com/HOWTO/Adv-Routing-HOWTO/lartc.rpdb.multiple-links.html >> >> >That''s the exact same thing I used, but I don''t have separate ethernet >cards, which this set up relies on. Both my routers are on a switch, >along with my server, so everything goes over eth0 > >ip route add default dev eth0 src 10.1.1.1 >ip route add 10.1.1.1 dev eth0 src 10.1.1.1 > >don''t work.The routing system needs to be able to differentiate between packets coming from the two routers, so I would suggest that you put another nic in the machine. this setup makes source based routing very easy to implement. I don''t know if multihoming your current eth0 nic would make it possible because both routers are on the same network...> >I also can''t find any info on creating tables T1, and T2 >Go to the link I gave and click "Prev" - the info you need is on that page...>AlexLeigh _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/