LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   bringing up interface eth1 rtnetlink answers file exists, error adding address (https://www.linuxquestions.org/questions/linux-newbie-8/bringing-up-interface-eth1-rtnetlink-answers-file-exists-error-adding-address-733575/)

homyangcha 06-17-2009 06:14 AM

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

onebuck 06-17-2009 08:40 AM

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?

homyangcha 06-18-2009 05:24 AM

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

arckane 06-18-2009 05:39 AM

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?

onebuck 06-18-2009 06:03 AM

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'.

homyangcha 06-24-2009 12:26 AM

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.

onebuck 06-24-2009 08:00 AM

Hi,

The verizon is third level DNS. It can be by anyone.

cuongvttt 10-20-2010 11:40 PM

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.......................


All times are GMT -5. The time now is 02:19 PM.