RTNETLINK answers: File exists... maybe because assigned a new mac adress
Posted
by
steven
on Super User
See other posts from Super User
or by steven
Published on 2013-07-11T05:40:46Z
Indexed on
2013/11/09
10:00 UTC
Read the original article
Hit count: 268
I got a "RTNETLINK answers: File exists Failed to bring up eth0:1" on "ifup eth0:1".
I suspect it happens because i assigned a new mac adress in my VM's network adapter.
Can you tell me how to fix the issue?
My configuration looks like this:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.80
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1
# Alias being connected to 192.168.10.x Network
auto eth0:1
allow-hotplug eth0:1
iface eth0:1 inet static
address 192.168.10.83
netmask 255.255.255.0
gateway 192.168.10.10
dns-nameservers 192.168.10.1
Why do I get "RTNETLINK answer: File exists.." suddenly? I worked with this configuration before without problems. All i did in the past is to renew the adapters mac adress.
At the moment I am connected to the 192.168.10.x Network and if I do
/etc/init.d/networking stop
/etc/init.d/networking start
then i got "RTNETLINK [...] falied to bring up eth0:1" but the strage thing is that i am able to connect to 192.168.10.83 via ssh from my host machine. But I cannot reach the internet from the debian client.
I hope it is clear what my problem is, now.
update
if i change my /etc/network/interfaces like this then "ifup eth0" fails, too with the same error!
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.10.83
netmask 255.255.255.0
gateway 192.168.10.10
dns-nameservers 192.168.10.1
with verbose option enabled i got:
Configuring interfache eth0=eth0 (inet)
run-parts --verbose /etc/network/if-pre-up.d
ip addr add 192.168.10.83/255.255.255.0 broadcast 192.168.10.255 dev eth0 label eth0
RTNETLINK answers: File exists Failed to bring up eth0.
same if i type this manually:
ip addr add 192.168.10.83/255.255.255.0 broadcast 192.168.10.255 dev eth0 label eth0
© Super User or respective owner