Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I had a Fedora box running using my static IP, etc, all configured according to what the ISP required. Just recently the hard drive failed (and I should have been keeping better backups) - while it is being recovered I would like to put up a webpage on my Archlinux PC explaining the problem - I presently do not have sufficient access to change the DNS record assigned to the domain.

When I change my ip address while my system is running to, ifconfig reports the new ip address, but does not. When I change it and reboot, I can't ping - the message I recieve is "connect: Network is unreachable" (when given one of 's IP addresses - hostnames give me ping: unknown host xxx). Until I have access to the DNS system, what can I do to make this work?

Edit: With new IP address, same problem, IP is now Some commands might be useful:

PING ( 56(84) bytes of data.
64 bytes from icmp_seq=1 ttl=64 time=0.377 ms

connect: Network is unreachable
connect: Network is unreachable

eth0      Link encap:Ethernet  HWaddr 00:E0:4D:97:23:9B  
          inet addr:  Bcast:  Mask:
          inet6 addr: fe80::2e0:4dff:fe97:239b/64 Scope:Link
          RX packets:132091 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:9635179 (9.1 Mb)  TX bytes:1322 (1.2 Kb)
          Interrupt:29 Base address:0x6000 

lo        Link encap:Local Loopback  
          inet addr:  Mask:
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:48 errors:0 dropped:0 overruns:0 frame:0
          TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2480 (2.4 Kb)  TX bytes:2480 (2.4 Kb)

#ip route dev eth0  proto kernel  scope link  src 

#cat /etc/resolv.conf
# Generated by dhcpcd

# /etc/resolv.conf.tail can replace this line

Update: have new static IP addresses, verified to work in Windows... Relevant portions of /etc/rc.conf below:

#Static IP example
#eth0="eth0 netmask broadcast"
#eth0="eth0 netmask broadcast"
eth0="eth0 netmask broadcast"

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#gateway="default gw"
gateway="default gw"
share|improve this question
Seen in the last file, the problem was the presence of the ! in ROUTES=(!gateway) - should have been ROUTES=(gateway). #LFMF –  Iiridayn Mar 30 '10 at 8:24

2 Answers 2

up vote 1 down vote accepted

From the output of your ip route you don't have the default gateway set - try running:

ip route add default via

I'm not sure if it's different on archlinux, but on the Redhat variants to make that permenant you can add the following to /etc/sysconfig/network:

share|improve this answer
Using that command, I was able to gain connectivity through the static IP. Now I just have to figure out how to make it permanent. –  Iiridayn Mar 30 '10 at 8:17
Read over the relevant portion of again, was a classic PEBKAC; I'd not noticed the absence of the ! in the ROUTES command when using a static IP. Thank you both for your help. –  Iiridayn Mar 30 '10 at 8:22

check your network settings:

  • is your network mask and broadcast address set correctly?
  • is your default gateway set correctly?
share|improve this answer
Yes to both - I called up my ISP to verify (was what took so long to reply). –  Iiridayn Jan 26 '10 at 1:25
try how far you can go with your network config. try to ping your gateway. when this works try to ping your dns servers, and so on. when pinging your default gw fails, look at your ip, netmask and routes. when pinging your dns fails, try to telnet on dns port. when this fails, take a look at your firewall rules. this way it should be possible to pinpoint your problem. –  Christian Jan 26 '10 at 7:32
Still no contact with ISP :P. They keep promising to call back. –  Iiridayn Mar 1 '10 at 10:55
please add the output of the following commands to your question: ifconfig, ip route and cat /etc/resolv.conf. –  Christian Mar 1 '10 at 14:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.