Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Netconfig Troubles..

Status
Not open for further replies.

MattWray

Technical User
Nov 2, 2001
2,332
US
Hello,
I am a newbie still to Linux. I have a Web Server that has been working fine. Well, we moved offices and got a new IP address. I used Netconfig to change the IP, mask, gateway and dns. The machine can ping itself fine. But when I try to ping the router that it is attached to, I get a network unreachable error. Any ideas on what I've done wrong...

Thanks,

Matt Wray
 
The "network unreachable" error message indicates a routing problem. If the problem is in the local host's routing table, it is easy to detect and resolve. First, use netstat and grep to see whether or not a valid route to your destination is installed in the routing table.
For example to test route to network 128.8.0.0:
%netstat -nr | grep '128.8.0

Check your ifcfg-eth0 are correct-
ONBOOT=yes
IPADDR=your.ip.address.xxx
NETWORK=your.ip.address.0
BROADCAST=your.ip.address.255
NETMASK=255.255.255.0
GATEWAY=gateway.address

Check your isp DNS nameservers servers (listed in /etc/resolv.conf) and/or a static list in /etc/hosts.


Blizz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top