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" [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.