From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arthur van Leeuwen Date: Fri, 06 Apr 2001 14:53:56 +0000 Subject: RE: [LARTC] @home cable modem Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Sorry for not responding earlier, I've been *extremely* busy. On Fri, 6 Apr 2001, Josh Sides wrote: > I would like to put 3 different ip addresses that are in three different > subnets on the same interface. The interface is directly connected to a > cable modem. These ip addresses are assigned to me by my ISP. How do I set > up the routing on my linux machine so that all three addresses are reachable > from the internet. The simple recipe (in pseudocode, hope this is clear enough): 0. put the ip addresses on the interfaces: for each ip/mask: ip address add dev 1. set up the default routing table: for each ip/mask: ip route add src dev ip route add default scope global \ nexthop via \ nexthop via \ nexthop via (etcetera) 2. set up policy routing tables for each of the ip addresses: for each ip/mask: ip route add dev table ip route add default via table 3. set up rules to select the correct outgoing routes for each ip/mask: ip rule add from table \ prio > Is it possible to setup multiple default routes? More or less, yes. See in the recipe. :) Doei, Arthur. -- /\ / | arthurvl@sci.kun.nl | Work like you don't need the money /__\ / | A friend is someone with whom | Love like you have never been hurt / \/__ | you can dare to be yourself | Dance like there's nobody watching _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/