LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author] [stats]
  From: Jake Hawkes <jake@infinitylimited.net>
  To  : David Lloyd <lloy0076@rebel.net.au>
  Date: Fri, 16 Feb 2001 02:07:17 +0000

Re: Routed I Think?

David Lloyd wrote:
> 
> Mick!
> 
> > Hello Group. I am experiencing problems with routed.
> 
> From what I glean below you're not running routed but you do have a
> routing problem. 

right and wrong. Not a routing problem, an interface configuration
problem. see below.


> > Feb 13 21:27:29 graphite network: Bringing up interface lo succeeded
> > Feb 13 21:27:30 graphite ifup: route: netmask doesn't match route address

bingo! this is the root of your problems. The rest is a help message
from the route command

> > Feb 13 21:27:30 graphite ifup: Usage: route [-nNvee] [-FC] [<AF>]
> > List
> >  kernel routing tables
> > Feb 13 21:27:30 graphite ifup:        route [-v] [-FC] {add|del|flush} ...

> hmmm, do a search for
> documentation on TCP/IP and routing.

There's a pearl of advice

> > Now I cant find anything that would be the problem apart from during the
> > setup I setup the static ip on the linux machine
> >
> > IP : 192.168.1.1
> > Netmask : 255.255.255.255
> > Nameserver : 127.0.0.1
> 
> Shouldn't IP be IPADDR? Check that FIRST.

well, I would check FIRST your netmask. It looks wrong. I think you want
255.255.255.0


> > Feb 13 21:28:34 graphite linuxconf:     Executing: /sbin/route add -net
> > 255.255.255.255 netmask 255.255.255.255 dev eth0
> 
> That is an error. Big time. That says "broadcast to all umpteen million
> internet addresses". I'm sure we all love you but not _that_ much...look
> in /etc/sysconfig/network-scripts/ifcfg-eth0 or such.

uh, only if his eth0 is connected to the internet, and with an ip of
192.168.x.x, unless there was some big ipv4 oberhaul, there isn't going
to be a problem.

Generally, you set up your ethernet on a class C.

IP: 192.168.1.x
MASK: 255.255.255.0
broadcast: 192.168.1.255
netowrk: 192.168.1.0

(generally, these days you do not need to supply the last two arguments,
the tools can figure it out)


and then, when it comes to the internet, you need to worry about default
gateways, and extra interfaces and stuff ( you haven't mentioned how
this is setup for you)

Also, it looks as if linuxconf (shudder) is trying to get a DHCP address
for you. If you are on a network with a DHCP server, this is good. If
not tell linuxconf not to use DHCP or BOOTP.

good luck,
Jake


--
Jake Hawkes B.Eng, (CSE)

LSD: melts in your mind, not in your hand.

-- 
LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author] [stats]
Return to the LinuxSA Mailing List Information Page