Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to switch from using dhcp to a static IP on an Ubuntu 10.04 server.

In /etc/network/interfaces I changed

auto eth0
iface eth0 inet dhcp


auto eth0
iface eth0 inet static

and added a line to /etc/hosts as so servername

Now when I restart networking from inside an SSH connection I get

user@servername:~$ sudo /etc/init.d/networking restart
 * Reconfiguring network interfaces...
SIOCDELRT: No such process

and networking is still running using the DHCP address.

Even worse, if I restart networking from the virtual server console, (or I reboot the server), it fails to bring up eth0 and the server is unreachable.

user@servername:~$ sudo /etc/init.d/networking restart
 * Reconfiguring network interfaces...
SIOCADDRT: No such process
Failed to bring up eth0

What do these errors mean and how do I fix them?

share|improve this question
Possibly, you have an error in the interface name. Can you post the output of $ sudo ifconfig -a? – Khaled Mar 8 '11 at 11:25
up vote 2 down vote accepted

Ah, silly me. After further searching, turns out SIOCADDRT and SIOCDELRT are at least related to ADDing and DELeting routes.

Because I was using a fancy subnet mask of, I didn't notice that I had the gateway set to the base address of the subnet, not the default route (In this case using .64 instead of .65).

So if anyone else gets this error, it is probably because you have the wrong gateway set. Why it errors out with "No such process" is beyond me though.

share|improve this answer

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.