Super User is a question and answer site for computer enthusiasts and power users. 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 configuring ubuntu server 11.10 to go from dhcp to static and whenever I try to restart my networking manager, I get the error: command ran:

    sudo /etc/init.d/networking restart


*Running /etc/init.d/networking restart is depricated because it may not enable     
again some interfaces
*Reconfiguring network interfaces...
/etc/network/interfaces:10: unknown method
ifdown: couldn't read interfaces file "/etc/network/interfaces"
/etc/network/interfaces:10: unknown method
ifup: couldn't read interfaces file "/etc/network/interfaces"


I assume the ":10:" means line 10 in the interfaces file but I will post my interfaces file here:

#This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
#The loopback interface

auto lo
iface lo inet loopback

#The primary network device
auto eth0
iface eth0 inet static
        address   10.x.x.210
        network   10.x.x.0
        broadcast 10.x.x.255
        gateway   10.x.x.1

Is there anything wrong? How do I resolve this error? The line

    iface eth0 inet static 

used to be

    iface eth0 inet dhcp 

Is that the cause? I am trying to configure this to run a dns server, web server, mail server and file server. Can anyone help?

NOTE: I already tried removing the network manager but it will not let me.

share|improve this question

migrated from Mar 10 '13 at 3:02

This question came from our site for professional and enthusiast programmers.

You didn't use 10.x.x.210 in your actual file, correct? You used something like, right? – skub Mar 10 '13 at 3:31
yes that is correct – Josh Menzel Mar 10 '13 at 4:24
What is the user permissions of that file. The syntax looks fine, so I don't know why it's not reading it. Should be root:root rw-r--r-- (644) – skub Mar 10 '13 at 4:30
that is also correct – Josh Menzel Mar 10 '13 at 17:33
Um, just for the heck of it, can you remove the spaces on the "address" line. Did you happen to paste that config from the internet? I'm wondering if you pasted non-display characters or some unicode business you can't see. – skub Mar 10 '13 at 19:58

You must log in to answer this question.

Browse other questions tagged .