[Server-devel] Static Ip settings

James Cameron quozl at laptop.org
Fri Jul 25 19:52:48 EDT 2008


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