Linux - NetworkingThis 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.
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.
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]#
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.