Re: DSL Subnet over PPPoE Problem

From: David Efflandt (efflandt_at_xnet.com)
Date: 09/09/03


Date: Tue, 9 Sep 2003 03:23:00 +0000 (UTC)

On 8 Sep 2003 17:34:18 -0700, Jean-Philippe Côté <jpcot@yahoo.com> wrote:
> Monzai,
>
> When I try to run the command you suggested, I get the following
> error: "SIOCADDRT: Network is unreachable". I did find another way to
> make it work though.
>
> It seems Linux won't accept a network address for a gateway... As you
> might know, the /30 subnet I was awarded comprises the following:
>
> xx.xx.161.92 (network address)
> xx.xx.161.93 (usable ip)
> xx.xx.161.94 (usable ip)
> xx.xx.161.95 (broadcast address)
>
> This means that by setting the gateway to xx.xx.161.92 I'm actually
> directing the nodes to a network address. Mac OS X and Windows 98 have
> no problem with this but it seems RedHat 9 Linux does. To circumvent
> the problem, I assigned a netmask of 255.255.255.240 (instead of
> 255.255.255.252). By doing so, my Linux box doesn't think that
> 66.11.161.92 is a network address anymore and it works like a charm
> (so far).
>
> I do not know enough about networking to foresee all the implications
> of such a change. Do you know if I should expect problems in the
> future by faking it this way ? Is there a proper way to do this ? Have
> you ever experienced such a problem ?

There is nothing that says a gateway has to be in the same network, even a
totally different private IP could be used as gw (as is commonly done for
ppp or pppoe), by using a host route to the gateway (if the gateway device
is capable of that).

However, when using hardware broadband routers, your options are often
limited to a specified subnet. So if your method gets the job done, that
is all that matters.

>> Dear JP,
>> you need a default route!
>> route add default 66.11.161.92 ;-)
>> I'm not sure if it works on rh9... just try
>> Cheers,
>> Monzai
>>
>> JP if you have your line up then visit http://www.monzai.com/

-- 
David Efflandt - All spam ignored  http://www.de-srv.com/
http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
http://cgi-help.virtualave.net/  http://hammer.prohosting.com/~cgi-wiz/


Relevant Pages

  • Re: Hopeless Windows VPN client as gateway in a Linux Network?
    ... > as the gateway to internet and it works fine. ... > way to connect to my office network is via a Windows Shiva VPN client. ... > linux 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: [opensuse] Would like explanation from networking guru
    ... And 192.168.11.1 is the gateway between Linux network and Windows ... How do you get that 192.168.11.1 is gateway to the Windows network? ...
    (SuSE)
  • Re: Routing between two gateways
    ... I'm not able to solve a little problem with Linux Routing. ... I use a Linux PC like a gateway for my LAN, and I route packet to ... and a private network connected to each, ...
    (comp.os.linux.networking)
  • Re: Is my system secure? What else should I do?
    ... > network functionality for my computing activities (browsing, ... My network shows No presence to the outside world, ... browsing and open for secure browsing. ... Linux is no longer protecting the other computers/devices on your local ...
    (comp.os.linux.security)