Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-01-2007, 11:05 PM
|
#1
|
Member
Registered: Sep 2003
Posts: 239
Rep:
|
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]#
|
|
|
04-02-2007, 02:13 AM
|
#2
|
Member
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 372
Rep:
|
What does your configuration look like?
Can you post the content of /etc/sysconfig/network-scripts/ifcfg-eth0 and /etc/sysconfig/network?
|
|
|
02-21-2011, 12:26 PM
|
#3
|
LQ Newbie
Registered: Feb 2011
Posts: 3
Rep:
|
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
|
|
|
02-16-2012, 12:15 PM
|
#4
|
LQ Newbie
Registered: Jan 2012
Posts: 3
Rep:
|
[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.
|
|
|
06-15-2014, 09:27 PM
|
#5
|
LQ Newbie
Registered: Jun 2014
Posts: 3
Rep:
|
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
|
|
|
06-24-2014, 06:22 AM
|
#6
|
LQ Newbie
Registered: Jun 2008
Posts: 3
Rep:
|
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 01:18 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|