RTNETLINK answers: File exists
Dear All,
When restarting network service on my FC6, I met RTNETLINK answers: File exists.. Could any body please help .. what should I do?. googled but got nothing I am stuck .. Thanks & Regards Winanjaya [root@samquid devices]# /etc/rc.d/init.d/network restart Shutting down interface eth0: [ OK ] Shutting down loopback interface: [ OK ] Disabling IPv4 packet forwarding: net.ipv4.ip_forward = 0 [ OK ] Bringing up loopback interface: [ OK ] Bringing up interface eth0: RTNETLINK answers: File exists [ OK ] [root@samquid devices]# |
What does your configuration look like?
Can you post the content of /etc/sysconfig/network-scripts/ifcfg-eth0 and /etc/sysconfig/network? |
I had the same problem.
I know this thread is super old, but it came first in a google search, so i thought I would post how I solved it.
In /etc/sysconfig/network-scripts/ifcfg-eth1 I had accidentially set DEVICE=eth0. Since the eth0 device already exists, that is why I received the error. Hope this will help someone else looking for a solution. Cheers, Matt South Kansas City Computer Repair Tech gone.south.computing |
[SOLVED?] Re: RTNETLINK answers: File exists
ABSTRACT:
file: Code:
/etc/sysconfig/network-scripts/ifcfg-$interface Contains old MAC address of the interface, but the script file exists, therefore conflict in configuration. ie.: Service tries to use detected setings, but ifcfg script exists, therefore "File exists" error. SOLUTION: Fix the MAC address in the script file, with MAC address from: Code:
ifconfig $interface --> If I find better solution, than fixing by hand, I may update this post. |
An ancient post, but with a possibly newer answer for a Debian 8 system -
Make sure that /etc/network/interfaces have no extraneous lines, especially if configurijng for a static network. Check with ifconfig, and if what you want is already there, dont repeat it. Also: updates may mess with the network card location. often changing it to eth1. Resetting to eth0 may help . Easily checked wit the service networking restart command |
Matt I am an experienced sys admin but you just saved me time - i copied the ifcfg files and forgot to change eth0 to eth1. Thanks!
|
All times are GMT -5. The time now is 10:24 PM. |