Have you looked into the routed program?


>
>
> Hi, Jack,
>
>  Yes, you're right... I can have more than one static route... but there
> are two drawbacks in what you've said (I hope I understood right
> everything that you wrote me):
>
> 1. I'm not going to build static routes for every network in the Internet.
>  (the two gateways are ISPs, and the goal is that my server would
> choose the best route to the destination IP address -- any destination)
> 2. If one interface goes down (the interface 'closest' to slashdot, in
> your example), it should automatically be labeled 'very expensive' and not
> be used for anything. All the traffic should be switched to the other
> interface.
>
>  I know that this is done by some protocols like RIP or OSPF. And I also
> know there are some pieces of software out there which claim to have RIP
> and OSPF included ('zebra' is one of them). But I've got lots of trouble
> installing 'zebra'. So any help would be really appreciated... this is
> getting urgent, and that is why I changed the topic.
>
> Thank you,
> bogdan
>
> On Tue, 8 Aug 2000, Jack Barnett wrote:
>
> >
> > I don't think you can have to default routes (atleast this is the way I
> > understand it, I could be wrong.) but you can set more then 1 static
routes.
> > For example say
> >
> > eth0 - 192.168.17.2
> > eth1 - 10.10.10.2
> >
> > (I know this are bunk ip's, just for example)
> >
> > everything that goes to 192.168.17.** should be faster if routed out
though
> > eth0, so we can put that route in:
> >
> > route add -net 192.168.17.0 gw 192.168.17.2 eth0
> >
> > (check sytnax, can't remember to well from memory)
> >
> > and everything that goes to 10.10.10.** should be faster if routed out
> > though eth1, so we could put that route in:
> >
> > route add -net 10.10.10.0 gw 10.10.10.2 eth1
> >
> > Say slashdot is 4 hops from eth1 and 102 from eth0, so it should be
faster
> > if we route all packets to/from slashdot though eth1
> >
> > route add -net 64.28.67.0 gw 10.10.10.2 eth1
> >
> > You could add static routes like this.
> >
> > Any one knows if this works, it sound logical right?
> >
> > Jack
> >
> > >
> > > Hi, Jos,
> > >
> > >   The problem is that I don't do dial-up. My two connections are
permanent
> > > (leased line and cable), so I need to use both of them simultaneous.
Any
> > > ideas welcomed!
> > >
> > > bogdan
> > >
> > > On Mon, 7 Aug 2000, Jos Lemmerling wrote:
> > >
> > > > On Mon, 7 Aug 2000, Bogdan Taru wrote:
> > > >
> > > > >
> > > > > Hello everyone,
> > > > >
> > > > >  Gotta question: I've got a machine which is connected to 2 ISPs.
So,
> > what
> > > > > can I do in order to use both of them? I've tryied two default
> > gateways,
> > > > > but it always uses the last inserted. I've tryied to use 'routed',
but
> > > > > something seems to be missing...
> > > > >  Any suggestions?
> > > > >
> > > > > bogdan
> > > > >
> > > >
> > > > On my machine i've three providers working 'together'; in my ip-up
> > script
> > > > the correct route is added, and in ip-down the route is deleted
again.
> > > >
> > > > You may have to use sudo or something (i needed it to run the
command
> > > > 'route del default').
> > > >
> > > >
> > > > Greetz Jos Lemmerling
> > > >
> > > >
> > > >
> >
> >
>
>


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to