bringing up interface eth0 rtnetlink


 
Thread Tools Search this Thread
Operating Systems Linux bringing up interface eth0 rtnetlink
# 1  
Old 10-10-2012
bringing up interface eth0 rtnetlink

Hi all,

OS: fedora release 10

when i try to restart network service, ending up with following errors. There are two interfaces eth0 and eth1
Code:
bringing up interface eth0 rtnetlink answers file exists
error adding <IP Address here> to eth0

bringing up interface eth0 rtnetlink answers invalid argument

below are ifcfg-eth0 and eth1 files under /etc/sysconfig/network-scripts/ directory

Code:
# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
BROADCAST=19.16.12.255
HWADDR=<MAC ADDRESS HERE>
IPADDR=19.16.12.125
IPV6_AUTOCONF=yes
NETMASK=255.255.255.0
NETWORK=19.16.12.0
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
NM_CONTROLLED=yes

# cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=none
HWADDR=<MAC ADDRESS HERE>
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
NETMASK=255.255.255.0
IPADDR=<IP ADDRESS HERE>
GATEWAY=<GATEWAY HERE>
NM_CONTROLLED=yes
PEERDNS=No
DNS1=127.0.0.1
DNS2=<DNS IP HERE>


# service network status
Configured devices:
lo eth0 eth1
Currently active devices:
lo eth0 eth1


# service NetworkManager status
NetworkManager (pid  4236) is running...

There is another similar server, and ifcfg-eth0 and ifcfg-eth1 are similar(ofcourse different IP etc).
The other server is working fine.

difference is

Code:
on WORKING server

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
IP ADDRESS HERE *               255.255.255.0   U     1      0        0 eth1
19.16.12.1      *               255.255.255.0   U     1      0        0 eth0
default         GATEWAY HERE    0.0.0.0         UG    0      0        0 eth1


on NON-WORKING server
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
IP ADDRESS HERE  *               255.255.255.0   U     1      0        0 eth1
19.16.12.0      *               255.255.255.0   U     1      0        0 eth0
link-local      *               255.255.0.0   U     1002      0        0 eth0
link-local      *               255.255.0.0   U     1003      0        0 eth1
default         GATEWAY HERE    0.0.0.0         UG    0      0        0 eth1

and WORKING server is able to resolve IP but NON-WORKING server is not able resolve IP and ending up with an error when it try to use nslookup command to resolve some other server

Code:
on WORKING server
# more /etc/resolv.conf
# Generated by NetworkManager
nameserver 127.0.0.1
nameserver <DNS IP HERE>

on NON-WORKING server
# more /etc/resolv.conf
# Generated by NetworkManager
nameserver 127.0.0.1
nameserver <SAME DNS IP HERE AS ABOVE FOR WORKING SERVER>

Please help to solve this issue.
Thanks in advance!
# 2  
Old 10-11-2012
# 3  
Old 10-12-2012
It's saying "file exists" because the interface is already defined at the time the script tries to define it again. I'm pretty sure (not certain) this is because you're mixing old-style ifcfg files with NetworkManager. Since these are two different ways of accomplishing the same end, you're going to have to pick one or the other. It sounds like you're using ifcfg on the other server as well.

Personally, I prefer ifcfg, so I would stop and chkconfig off the NetworkManager service, change NM_CONTROLLED to be no in each ifcfg and reboot the system (sometimes you can get away with just restarting the network service but if it's already off the network you might as well use this as a chance to clear out anything NM has done in the background before people start depending on this server again).
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. IP Networking

What's the rtnetlink behavior if adding or removing ethernet?

Hello All, While I am studying on RTNETLINK, I understand that the kernel will send RTM_ADDLINK or RTM_DELLINK if interface is added/removed at kernel space. However, I have a question regarding to the RTNETLINK message if adding or removing ethernet to/from bridge? Since adding or removing... (0 Replies)
Discussion started by: urnoicxk
0 Replies

2. IP Networking

Stuck at "bringing up interface eth0:"

Server is stuck at "Stuck at "bringing up interface eth0:"" after i hard reset the server I have IPMI access, please help me diagnose the cause if you can :( (0 Replies)
Discussion started by: postcd
0 Replies

3. SuSE

Routing RTNETLINK answers: No such process

Hello, I have a opensuse Linux server with two nics. eth0 = internal network with 172.16.1.24 eth1 = external network with ip 172.19.3.2 Internal networks: 172.16.0.0/16, 172.17.0.0/16 and 192.168.0.0/16. External network: 172.19.3.0/16 The default gateway is 172.19.3.1 on eth1. ... (3 Replies)
Discussion started by: felix123
3 Replies

4. IP Networking

Splitting eth0 traffic into two virtual interface

Hello everybody, I have been reading many posts about this topic but I have no figure out how to solve it. I need to split the traffic incoming on eth0 on two other interfaces (for instance one receiving on port 80 and the others on the other interface). I cannot understand how to do that.... (2 Replies)
Discussion started by: nicandro
2 Replies

5. IP Networking

Socket and interface (eth0, eth 1)relationship

hi, Could some one answer this please we have a program with client socket declared which connect to a server for the above program description we wont send an interface information ... let us suppose, I have two interfaces (eth0 , eth1) which are assigned some ip, which interface the... (1 Reply)
Discussion started by: Gopi Krishna P
1 Replies

6. SCO

Change SCO - GUI or Desktop interface to DOS based interface

Hi all I have installed a demo version of SCO OpenServer 5.0.2, I finally found it is Desktop Interface, I would like to know how to change its interface to dos based interface? If you have any ideas, please tell me then. Thank you (2 Replies)
Discussion started by: TinhNhi
2 Replies

7. Solaris

Command line Interface or GUI Interface not shown on solaris

Dear all, I am a newbie in solaris and I need your advice. I have a Solaris version 5.9 installed on Sunfire V240. I am able to ssh the machine from putty remotely. My problem is that I cannot see the display from KVM switch I have connected to it. I need also to be able to see the GUI... (2 Replies)
Discussion started by: mbouster
2 Replies

8. UNIX for Dummies Questions & Answers

bringing a process to the foreground

If i have a single file i would just press fg but if i have multiple files running in the backgound and want to bring a specific one to the foreground how would i do that? Thanks!! (1 Reply)
Discussion started by: JamieMurry
1 Replies

9. UNIX for Dummies Questions & Answers

Need FIX for: RTNETLINK answers: Invalid argument

OK...I'm using the latest version of Fedora 10. My network connection was working fine, and I had several network LAN shares on my desktop. Then I rebooted the system without dismounting those shares first. ooops. <:( ...When the system came back up, my network connection was gone. All... (2 Replies)
Discussion started by: Pudnik
2 Replies
Login or Register to Ask a Question