LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 04-01-2007, 11:05 PM   #1
Winanjaya
Member
 
Registered: Sep 2003
Posts: 209

Rep: Reputation: 32
Question 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]#
 
Old 04-02-2007, 02:13 AM   #2
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 360

Rep: Reputation: 41
What does your configuration look like?
Can you post the content of /etc/sysconfig/network-scripts/ifcfg-eth0 and /etc/sysconfig/network?
 
Old 02-21-2011, 12:26 PM   #3
mattymcfatty
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Rep: Reputation: 0
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
 
Old 02-16-2012, 12:15 PM   #4
wiren
LQ Newbie
 
Registered: Jan 2012
Posts: 3

Rep: Reputation: Disabled
Arrow [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.
 
Old 06-15-2014, 09:27 PM   #5
klachmann
LQ Newbie
 
Registered: Jun 2014
Posts: 2

Rep: Reputation: Disabled
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
 
Old 06-24-2014, 06:22 AM   #6
saltie
LQ Newbie
 
Registered: Jun 2008
Posts: 3

Rep: Reputation: 0
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RTNETLINK answers: Invalid argument rebel Linux - Newbie 1 04-24-2011 11:52 PM
server ifup: RTNETLINK answers: Network is unreachable problem evasion81 Linux - Networking 5 07-07-2005 09:44 AM
SIOCADDRT: File exists SIOCCADDRT: File Exists Failed to bring up eth0. opsraja Linux - Networking 0 01-10-2005 09:29 AM
RTNETLINK answers: Invalid argument j-me Linux - Networking 1 04-23-2004 04:38 AM
eth0 and eth1 RTNETLINK answers: File existslike RT trouble....need some helpHello pierrot Linux - Networking 0 08-09-2003 04:23 PM


All times are GMT -5. The time now is 10:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration