routing problem, was: Re: [SlugBug] Wiki, routing and the last / first meeting...

Chris chris at slugbug.org.uk
Fri Feb 27 14:15:46 GMT 2004


Hi

On Thu 26-Feb-2004 at 08:31:22PM +0000, Andy Davidson
wrote:
> 
> If no hosts on 80.0.0.0/8 can connect, have you
> mistakenly set the subnet mask for the interface you
> presumably have on an 80.x ip address to 255.0.0.0 ?

Well not exactly... I have a ADSL account with a static IP
address and a ADSL device that once it is set up it passes
all request straight though.

This is what I have at the moment (Fedora 1 machine):

  # cat /etc/sysconfig/network-scripts/ifcfg-eth0 | grep -v '#'
  DEVICE=eth0
  BOOTPROTO=none
  ONBOOT=yes
  TYPE=Ethernet
  MTU=1500
  IPADDR=80.176.191.223
  GATEWAY=80.176.191.224

And this results in this:

  # /sbin/route | grep eth0
  80.0.0.0        *               255.0.0.0       U     0 0        0 eth0
  default         mdmgm-adsl.demo 0.0.0.0         UG    0 0        0 eth0

The problem seems to be the netmask:

  # /sbin/ifconfig | grep 80.176.191.223
            inet addr:80.176.191.223  Bcast:80.255.255.255 Mask:255.0.0.0

I used to use this netmask:

  NETMASK=255.255.255.248

But if I try that now it results in no gateway:

  # /sbin/route | grep eth0
  80.176.191.216  *               255.255.255.248 U     0 0        0 eth0

  # /sbin/ifconfig | grep 80.176.191.223
            inet addr:80.176.191.223  Bcast:80.176.191.223 Mask:255.255.255.248

So I guess I need help with the netmask... :-)

Chris

-- 
http://wiki.slugbug.org.uk/
SlugBug - the Sheffield Linux Users Group and BSD Users Group


More information about the SlugBug mailing list