LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-17-2009, 06:14 AM   #1
homyangcha
Member
 
Registered: Jun 2008
Posts: 31

Rep: Reputation: 15
bringing up interface eth1 rtnetlink answers file exists, error adding address


I have been facing this problem for about a week. Try to troubleshoot using google but to no avail. I have to NIC cards in my server. I was using the first one and this problem came up. I changed to the other one. It work for about a week and the same problem came up. I cannot ping or browse internet from this machine, however, i can ping, ssh and connect to this machine from another one.

Any help will be appreciated
 
Old 06-17-2009, 08:40 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

A little more information would be helpful. What distribution?

Why & how did the first NIC quit?

What type NIC and is it embedded or card? What about the link media (cable bad)?

You say you can ping from outside, what about errors listed from the output of 'ifconfig -a' from both machines.

What does the logs show for any relative errors on the machine in question?

What about the LAN? Does your router/switch/hub function properly?
 
Old 06-18-2009, 05:24 AM   #3
homyangcha
Member
 
Registered: Jun 2008
Posts: 31

Original Poster
Rep: Reputation: 15
bringing up interface eth1 rtnetlink answers file exists, error adding address

Hi onebuck, thanks for the tips. My distro is CentOS 5.3. I am using this box as a webserver. My NIC is embedded and there is no problem with the physical connection as i can connect to this machine remotely. I can access the other machines using their ip address from this machine but not with their domain name. When i do the follwing in this machine this is the results:

First:
# /etc/rc.d/init.d/network restart
Shutting down interface eth1: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth1: RTNETLINK answers: File exists
Error adding address (ip) for eth1.
[ OK ]
Second:
$ ping www.google.com
ping: unknown host www.google.com


Third:
#vi /etc/resolv.conf

# Generated by NetworkManager
# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com

In the third case when i put the nameservers manually and restart the network the same results comes.

Any help will be appreciated. Thanks
 
Old 06-18-2009, 05:39 AM   #4
arckane
Member
 
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 308

Rep: Reputation: 39
Sounds like something has gone duff with your resolv.conf if you cannot do name resolution but you can ping stuff. Either that or a routing issue.

Do you have a static IP address set on the cards, or do you use DHCP?
 
Old 06-18-2009, 06:03 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

It does sound like you have a 'DNS' problem. You can try a third level 'DNS' like Verizon's;

Quote:
example '/etc/resolv.conf';

search 192.168.1.1 #local

nameserver xxx.xxx.xxx.xxx #ISP DSN

nameserver 4.2.2.1 #Verizon third level DNS
nameserver 4.2.2.2
nameserver 4.2.2.3
nameserver 4.2.2.4
But you should use your ISP 'DNS'.
 
Old 06-24-2009, 12:26 AM   #6
homyangcha
Member
 
Registered: Jun 2008
Posts: 31

Original Poster
Rep: Reputation: 15
Yeah i have static public ip address used in the server. we have our own primary and secondary name servers i have been using that for all our dns purposes. what is the use of verizon? when i manually put our dns ips in the /etc/resolv.conf and restart the network the result is the same. i.e the resolv.conf becomes empty again without any name server's details. Thanks for your help.
 
Old 06-24-2009, 08:00 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

The verizon is third level DNS. It can be by anyone.
 
Old 10-20-2010, 11:40 PM   #8
cuongvttt
LQ Newbie
 
Registered: Oct 2010
Posts: 1

Rep: Reputation: 0
Bringing up interface eth1: RTNETLINK answers: File exists Error adding address (ip) for eth1.

i have same issue
Bringing up interface eth1: RTNETLINK answers: File exists
Error adding address (ip) for eth1.

This is my resolution.

After u do #setup
u set name server then saved.
And do #service network restart

Now do #vi /etc/resolv.conf
U will never see any name server here.

Some reasons i dont know why??????

So when u do #setup
u set name server then saved.

DONT NEED TO DO THIS #service network restart

#ping yahoo.com

It works wellllllllllll


Enjoy.......................
 
  


Reply



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
[SOLVED] RTNETLINK answers: File exists - Error when doing ifup on alias (eth1:1) on RHEL5 MensaWater Linux - Networking 17 04-12-2015 07:32 AM
RTNETLINK answers: File exists Winanjaya Linux - Networking 5 06-24-2014 05:22 AM
RTNETLINK answers: Invalid argument rebel Linux - Newbie 1 04-24-2011 10:52 PM
fc9 booting Bringing up interface eth0: RTNETLINK answers: File exists pankajd Linux - Software 0 11-27-2008 08:33 AM
eth0 and eth1 RTNETLINK answers: File existslike RT trouble....need some helpHello pierrot Linux - Networking 0 08-09-2003 03:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:56 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
Open Source Consulting | Domain Registration