Re: [opensuse] route question



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:

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.
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: ndiswrapper & SuSe 9.1 in Latitude D600
    ... >> another machine in my network if I give the ip address. ... > 2.Made sure to input the router as gateway. ... disable the wireless interface and just use the eth0 (eth0 is always ... Someone mentioned that if a dhcpcd process is already running the ...
    (alt.os.linux.suse)
  • Re: routing VS nat: can FC3 just be a router between eth0 <-> ppp0 with no MASQ/NAT???
    ... So the FC3 machine, with a connection to eth0 and ppp0, ... but does each of your machines inside your ... know where to find my network. ...
    (Fedora)
  • Re: Two network adapters on seperate networks problem
    ... You don't want to do this, since 10.9.81.193 is not the gateway to the outside world. ... machines on this network can see other machines. ... going through eth0 onto the private network. ...
    (comp.os.linux.networking)
  • Re: [SLE] Network problems Help!!!!
    ... the dsl model (eth0) and 2nd is to a hub for internet network. ... eth0 should use the gateway and ip that is provided by your provider ... can you ping the NT box from the Linux box. ...
    (SuSE)
  • Re: DSL Router Help
    ... > Adsl modem/router, which I'm trying to use as a replacement for a SpeedTouch ... > I've got a network setup with static IP addresses. ... how to reach it (would not know to use 192.168.0.2 as gateway to Win box). ... host route to 10.0.0.2 on eth0 and as default gateway ...
    (alt.os.linux.suse)