Re: [opensuse] route question
- From: "Doctor Who" <whodoctor@xxxxxxxxx>
- Date: Thu, 7 Feb 2008 08:06:15 -0500
On 2/6/08, K.R. Foley <kr@xxxxxxxxxx> wrote:
Doctor Who wrote:
On 2/6/08, K.R. Foley <kr@xxxxxxxxxx> wrote:
Doctor Who wrote:
I have what should be a simple question about the 'route' command:Well if you are doing what I think you are doing, try this:
I'm at a client and am plugged into their network with eth0. I have a
broadband card I'm using (ppp0) so I can get out to the Internet
(which I can't on their network). The laptop I'm on dual-boots WinXP
and openSUSE10.3
With WinXP, I simply:
route delete 0.0.0.0 mask 0.0.0.0 ###.###..###.### <-Client IP
route add ###.0.0.0 mask 255.0.0.0 ###.###.###.1
"route del 0.0.0.0" (could also use "route del default")
"route add -net ###.0.0.0 netmask 255.0.0.0 gw ###.###.###.1 <dev>"
<dev> should be replaced with the network interface the traffic should
be sent over (ppp0 or eth0, etc.).
This is the equivalent of the commands above. Although I am not 100%
sure it will do what you want.
Thanks. What happens is that when I plug into their network using
eth0 I get their gateway as the default. I want to have my broadband
card (ppp0) provide the default gateway for all traffic with the
exception being the traffic destined for the client's network.
In Windows, when I'm connected to their network using eth0 *and* have
ppp0 up, 'route print' shows two (2) default gateways. When I delete
their default gateway, the one provided by ppp0 remains.
In Linux, with the same setup, i only see one (1) default gateway,
which is the client's network. I want to delete that and add a
default gateway that uses my wireless broadband card (Sprint).
Thanks.
Then what I think you want is:
route del default
route add -net 0.0.0.0 netmask 0.0.0.0 gw ###.###.###.1 <dev>
where ###.###.###.1 is the ip address of the default gateway (likely a
router) and dev is ppp0
Does the 'route add -net 0.0.0.0 netmask 0.0.0.0 gw ###.###.###.1
<dev>' designate this as the 'default' route or must that be specified
somehow?
Thanks.
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
- Follow-Ups:
- Re: [opensuse] route question
- From: K.R. Foley
- Re: [opensuse] route question
- References:
- [opensuse] route question
- From: Doctor Who
- Re: [opensuse] route question
- From: K.R. Foley
- Re: [opensuse] route question
- From: Doctor Who
- Re: [opensuse] route question
- From: K.R. Foley
- [opensuse] route question
- Prev by Date: Re: [opensuse] boot after installation problem
- Next by Date: Re: [opensuse] Unstable system - who is the culprit?
- Previous by thread: Re: [opensuse] route question
- Next by thread: Re: [opensuse] route question
- Index(es):
Relevant Pages
|