Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

output:

*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"

[fail]

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
        netmask   255.255.255.0
        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 stackoverflow.com 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 10.10.10.210, right? –  skub Mar 10 '13 at 3:31
    
yes that is correct –  Josh Mentwizzler 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 Mentwizzler 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

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.