LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   RTNETLINK answers: File exists (https://www.linuxquestions.org/questions/linux-networking-3/rtnetlink-answers-file-exists-542525/)

Winanjaya 04-01-2007 10:05 PM

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]#

rhoekstra 04-02-2007 01:13 AM

What does your configuration look like?
Can you post the content of /etc/sysconfig/network-scripts/ifcfg-eth0 and /etc/sysconfig/network?

mattymcfatty 02-21-2011 11:26 AM

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

wiren 02-16-2012 11:15 AM

[SOLVED?] Re: RTNETLINK answers: File exists
 
ABSTRACT:

file:
Code:

/etc/sysconfig/network-scripts/ifcfg-$interface
where $interface is your interface, i.e.: eth0, p3p1, etc.

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.

klachmann 06-15-2014 08:27 PM

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

saltie 06-24-2014 05:22 AM

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.