Forgive the newbie question.

I am trying to setup eth1 in interfaces:

enter image description here

however, I am getting: RTNETLINK answers: file exists

here are the results of ifconfig:

enter image description here

what am i doing wrong?

Manual methods are unlikely to work correctly if Network Manager is installed and running. If it is installed, it is advisable to set the details there:

If you have removed Network Manager, your interfaces file will also need a gateway and DNS nameservers:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
gateway  #or whatever your router address is

Then get the system to re-read and use the changes:

sudo ifdown eth0 && sudo ifup -v eth0


ping -c3
  • thanks so much! what is the difference between setting these through /etc/..interfaces vs this ?? – l--''''''---------'''''''''''' Jun 27 '13 at 18:51
  • The difference is that /etc/network/interfaces is designed for manual methods; servers, etc. and Network Manager is designed for the everyday desktop and laptop user. There is a mechanism in NM designed to use the interfaces file if it's filled in, but, in my experience, it's hit and miss. If you have NM installed, I strongly recommend you use that method. Of course, if you are curious, you can try first one and then the other and see what works best for you. – chili555 Jun 27 '13 at 19:24
  • thanks!! so how do i know from which method the settings are being used? – l--''''''---------'''''''''''' Jun 27 '13 at 19:25
  • The way it's supposed to work is that NM does the work unless /etc/network/interfaces is filled in and then only if 'managed=false' is set in NetworkManager.conf.… However, if BOTH are filled in, then I think it's anybody's guess what happens. That's why I recommend one or the other, not both. You may get some clues from the terminal: cat /var/log/syslog | grep etwork Are there many references to Network Manager? If so, I suspect it's doing all the work. – chili555 Jun 27 '13 at 20:25
  • If /etc/network/interfaces does not exist and networkmanager is the only thing being use, what then? This isn't a ubuntu system but I am still curious :) EDIT: nevermind, removed some malformed /etc/sysconfig/network-scripts/ifcfg-* files from trying to edit networkmanager using another program - it really it picky about what it uses, and seems to recreate files if it don't like them instead of doing a obvious error... Also for systems using the journal thing it seems to be journalctl -xe | grep etwork or systemctl status network – Wilf Oct 19 '16 at 22:25

If you had been manually setting a temporary configuration, e.g by doing something like sudo ifconfig eth0 netmask, as described here, you should clear that up first:

sudo ip addr flush eth0

Now you can try again:

sudo ifup eth0

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.