LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-10-2014, 01:56 PM   #1
wveagle81
LQ Newbie
 
Registered: Aug 2013
Location: San Antonio, TX
Posts: 20

Rep: Reputation: Disabled
Ensuring eth0 is recognized first?


We're working with a virtual desktop product and on occasion the desktop comes up with eth0 first, and sometimes eth1 first.

I'm not sure why this is happening, but we need eth0 to be the interface that comes up fist because it's on the "real" network. eth1 is on the "internal" network the product uses to communicate. When it comes up first, the desktop cannot connect.

Is there a way to ensure eth0 comes up first?

Thanks.
 
Old 09-11-2014, 09:11 AM   #2
osucowboy0510
LQ Newbie
 
Registered: Aug 2014
Distribution: CentOS 7
Posts: 11

Rep: Reputation: Disabled
I am assuming y'all are using RHEL can you provide the output of service network restart?
 
Old 09-12-2014, 09:21 AM   #3
wveagle81
LQ Newbie
 
Registered: Aug 2013
Location: San Antonio, TX
Posts: 20

Original Poster
Rep: Reputation: Disabled
Sorry, I should have mentioned that first. We're using Centos 6.5. It's a virtual Linux box running in the Virtual Bridges software suite.

If the system recognizes eth1 first, 90% of the time it won't come up properly. Sometimes it does, it's weird. Since it's not up, I can't do a service network restart on it.
 
Old 09-12-2014, 11:16 AM   #4
GaWdLy
Member
 
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457

Rep: Reputation: Disabled
What do the logs say about why eth0 comes up second? If there's a reason, I will be in there. Look in var/log/messages and var/log/dmesg.
 
Old 09-12-2014, 01:18 PM   #5
wveagle81
LQ Newbie
 
Registered: Aug 2013
Location: San Antonio, TX
Posts: 20

Original Poster
Rep: Reputation: Disabled
I'm looking at the /var/adm/messages file on two separate desktops. One started with eth0 first, the other with eh1 first. This is my first glance and I may find more things later, but here's what I'm seeing.

After the "modem-manager" lines where it loads plugins, I'm seeing "Network-Manager" lines. They look like this:

On the desktop that has eth1 coming up first:

<date> <time> <workstation> NetworkManager[<pid>]: <info> monitoring kernel firmware directory '/lib/firmware'/
<date> <time> <workstation> NetworkManager[<pid>]: <info> Bonding/Bridging/VLAN support disabled
<date> <time> <workstation> NetworkManager[<pid>]: ifcfg-rh: Acquired D-Bus service com.redhat.ifcfgrh1
<date> <time> <workstation> NetworkManager[<pid>]: <info> Loaded plugin ifcfg-rh: (c) 2007 - 2008 Red Hat, Inc.
<date> <time> <workstation> NetworkManager[<pid>]: <info> Loaded plugin keyfile: (c) 2007 - 2008 Red Hat, Inc.
<date> <time> <workstation> NetworkManager[<pid>]: ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-eth1 ...
<date> <time> <workstation> NetworkManager[<pid>]: ifcfg-rh: warning: NM_CONTROLLED was false but HWADDR or SUBCHANNELS was missing; ...
<date> <time> <workstation> NetworkManager[<pid>]: ifcfg-rh: read connection 'System eth1'
<date> <time> <workstation> NetworkManager[<pid>]: ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-lo ...
<date> <time> <workstation> NetworkManager[<pid>]: ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-eth0 ...
<date> <time> <workstation> NetworkManager[<pid>]: ifcfg-rh: warning: NM_CONTROLLED was false but HWADDR or SUBCHANNELS was missing; ...
<date> <time> <workstation> NetworkManager[<pid>]: ifcfg-rh: read connection 'System eth1'
...

On the desktop that haseth0 coming up first:

<date> <time> <workstation> NetworkManager[<pid>]: <info> monitoring kernel firmware directory '/lib/firmware'/
<date> <time> <workstation> NetworkManager[<pid>]: <info> Bonding/Bridging/VLAN support disabled
<date> <time> <workstation> NetworkManager[<pid>]: ifcfg-rh: Acquired D-Bus service com.redhat.ifcfgrh1
<date> <time> <workstation> NetworkManager[<pid>]: <info> Loaded plugin ifcfg-rh: (c) 2007 - 2008 Red Hat, Inc.
<date> <time> <workstation> NetworkManager[<pid>]: <info> Loaded plugin keyfile: (c) 2007 - 2008 Red Hat, Inc.
<date> <time> <workstation> NetworkManager[<pid>]: ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-lo ...
<date> <time> <workstation> NetworkManager[<pid>]: ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-eth0 ...
<date> <time> <workstation> NetworkManager[<pid>]: ifcfg-rh: warning: NM_CONTROLLED was false but HWADDR or SUBCHANNELS was missing; ...
<date> <time> <workstation> NetworkManager[<pid>]: ifcfg-rh: read connection 'System eth1'
<date> <time> <workstation> NetworkManager[<pid>]: ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-eth1 ...
<date> <time> <workstation> NetworkManager[<pid>]: ifcfg-rh: warning: NM_CONTROLLED was false but HWADDR or SUBCHANNELS was missing; ...
<date> <time> <workstation> NetworkManager[<pid>]: ifcfg-rh: read connection 'System eth1'
...
 
Old 09-12-2014, 01:29 PM   #6
GaWdLy
Member
 
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457

Rep: Reputation: Disabled
Let's start with stopping NetworkManager, and putting normal ifcfg files in place with NM_CONTROLLED=no in them.

I'd suggest a reboot after that, but you can just restart the network a few times if you get weird behavior.

Don't forget to chkconfig NetworkManage OFF...
 
Old 09-12-2014, 01:50 PM   #7
wveagle81
LQ Newbie
 
Registered: Aug 2013
Location: San Antonio, TX
Posts: 20

Original Poster
Rep: Reputation: Disabled
We can't stop NM unfortunately because it controls the dynamic network assignments which are coming in from the DHCP server. We've tried shutting it of and at that point the virtual desktop won't launch at all.
 
Old 09-12-2014, 02:22 PM   #8
GaWdLy
Member
 
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457

Rep: Reputation: Disabled
I'm pretty sure you don't need NM for dhcp...
 
Old 09-12-2014, 02:48 PM   #9
wveagle81
LQ Newbie
 
Registered: Aug 2013
Location: San Antonio, TX
Posts: 20

Original Poster
Rep: Reputation: Disabled
Maybe not, but for whatever reason if we turn off NM and try to launch a gold image, it fails every time.
 
Old 09-12-2014, 03:53 PM   #10
GaWdLy
Member
 
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457

Rep: Reputation: Disabled
'Try to launch a gold image' <-- What does this mean?

If your ifconfig files are set up correctly, you should be able to fully disable NetworkManager and restart the network (preferably after a reboot), with DHCP. If that is not working out for whatever reason, perhaps you should investigate that, since I think it would either un-complicate troubleshooting and/or resolve the issue.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Eth0 Not being recognized! konark Linux - Hardware 3 11-08-2008 07:42 AM
eth0 recognized, but does not get IP BigNate37 Linux - Networking 13 12-03-2007 09:35 PM
Eth0 Not Being Recognized Lucinda Slackware 4 05-19-2004 11:32 AM
eth0 recognized but not recognized? rafc Linux - Newbie 7 04-21-2004 04:13 AM
eth0 not recognized (sometimes!) cucolin@ Linux - Networking 1 11-10-2003 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:03 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