[Server-devel] Static Ip settings

David Leeming leeming at pipolfastaem.gov.sb
Sat Jul 26 18:40:04 EDT 2008


Thanks James, I think this was a case of a typo and fixation with the error
staring me in the face!!!!!! Sometimes one should look for the obvious!!!

David Leeming
OLPC Coordinator, SPC and Technical Advisor, People First Network
Honiara, Solomon Islands

-----Original Message-----
From: quozl at us.netrek.org [mailto:quozl at us.netrek.org] On Behalf Of James
Cameron
Sent: Saturday, 26 July 2008 10:53 a.m.
To: David Leeming
Cc: server-devel at lists.laptop.org
Subject: Re: [Server-devel] Static Ip settings

G'day David,

Destination host unreachable suggests either incorrect netmask, a route
missing on the XS, causing it to use another interface it has, or a
reply from the gateway over ICMP refusing to forward the packets.

Based on the data you sent, I think the network mask is the cause,
especially given that you had incomplete ARP.  You wrote:

> I have changed the /etc/sysconfig/network-scripts/ifcfg-eh0 to
> 
> DEVICE=eth0
> ONBOOT=yes
> BOOTPROTO=static
> IPADDR=202.0.158.99
> NETWORK=202.0.158.96
> NETMASK=202.0.158.248
> GATEWAY=202.0.158.97

The NETMASK should be 255.255.255.248 according to a calculator ...

$ ipcalc 202.0.158.96/29
Address:   202.0.158.96         11001010.00000000.10011110.01100 000
Netmask:   255.255.255.248 = 29 11111111.11111111.11111111.11111 000
Wildcard:  0.0.0.7              00000000.00000000.00000000.00000 111
=>
Network:   202.0.158.96/29      11001010.00000000.10011110.01100 000
HostMin:   202.0.158.97         11001010.00000000.10011110.01100 001
HostMax:   202.0.158.102        11001010.00000000.10011110.01100 110
Broadcast: 202.0.158.103        11001010.00000000.10011110.01100 111
Hosts/Net: 6                     Class C

Try changing that and taking the interface down and up,

	ifdown eth0
	ifup eth0

Or to temporarily test on the active system ...

	ifconfig eth0 netmask 255.255.255.248

-- 
James Cameron    mailto:quozl at us.netrek.org     http://quozl.netrek.org/



More information about the Server-devel mailing list