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

System: Debain Squeeze

Problem: cannot restart networking (/etc/init.d/networking restart) without error.

I used and edited a sample configuration from my provider and now wanted to add IPv6 support. But before adding v6 I'd like to get rid of the following error:

# /etc/init.d/networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning).
Reconfiguring network interfaces...SIOCADDRT: File exists
Failed to bring up eth0.

Any suggestions?


# ip r l
x.y.132.64/26 via x.y.132.65 dev eth0 
x.y.132.64/26 dev eth0  proto kernel  scope link  src x.y.132.68 dev vboxnet0  proto kernel  scope link  src 
default via x.y.132.65 dev eth0 

btw: Networking works just fine - I can reach the server and from the server I can reach the internet. Only networking restart is not satisfied.

share|improve this question
cat /etc/network/interfaces? cat /etc/init.d/networking? – quanta Aug 27 '12 at 10:44
At the moment -> see the posted sample configuration. – Jens Aug 27 '12 at 10:48

2 Answers 2

The "gateway" line already adds the default route. The "up route ..." and "down route ..." lines are unnecessary.

As the "gateway" line already adds the default route, a second attempt at the "up ..." line fails with the given error.

share|improve this answer
Thanks, but removing the two routes (or the gateway) has no effect and the error remains. – Jens Aug 27 '12 at 11:15
try a ../networking stop; ../networking start ? – hayalci Aug 27 '12 at 20:46

The SIOCADDRT: File exists error is generally caused by trying to add a route that already exists when you restart networking services:

From here:

Understanding SIOCADDRT: File exists Message

SIOC: Serial Input Output Controller.
ADD: ADD (addition).
RT: RouTe (routing ip).
File exists - Routing is already configured so delete wrong one and add the new one.

As @hayalci mentioned you need to remove either the gateway or the up-route/down-route directives. It's likely that this did not fix your issue because the route had already been added. Check the output of ip route show and if you have multiple routes for that IP address manually remove them and restart networking.

You should also confirm that you don't have any network auto configuration utilities like NetworkManager or WicD running.

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.