Doctor Who pecked at the keyboard and 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.
Another MS screwup on networking. You can only have _one_ functioning *default* gateway. A *default* gateway is one that is used for _all_ traffic that cannot be resolved locally. Therefore you need two gateways defined, one for the internal LAN and one for _all_ other traffic commonly referred to as the *default* gateway. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org