Doctor Who wrote:
On 2/6/08, K.R. Foley
wrote: Doctor Who wrote:
On 2/6/08, K.R. Foley
wrote: Doctor Who wrote:
I have what should be a simple question about the 'route' command:
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 Well if you are doing what I think you are doing, try this:
"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. Yes it does.
-- kr -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org