5
1
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
How did you do that on Debian? It's Red Hat and its derivatives that use that sort of configuration, not Debian. – Michael Hampton – 2013-07-11T05:56:38.507
i am not shure. Its some months ago. I remember that I deleted a special config file so that on ifup debian was able to create it new. I thought is was the ifcfg-eth* file but its possible that I am wrong. – steven – 2013-07-11T06:01:35.043
@lain sorry, you are right I am a little bit confused. I updated my question and hope it is clearer now – steven – 2013-07-11T07:14:39.790
check here, it may be helpful? http://www.linuxquestions.org/questions/linux-networking-3/rtnetlink-answers-file-exists-542525/
– Angs – 2013-07-18T11:10:07.840if you type
/sbin/ip link show
what do you get? Most likely is that @lornix got the answer why it does not work. – Manwe – 2013-07-22T17:58:42.267