Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
09-10-2014, 01:56 PM
|
#1
|
LQ Newbie
Registered: Aug 2013
Location: San Antonio, TX
Posts: 20
Rep:
|
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.
|
|
|
09-11-2014, 09:11 AM
|
#2
|
LQ Newbie
Registered: Aug 2014
Distribution: CentOS 7
Posts: 11
Rep:
|
I am assuming y'all are using RHEL can you provide the output of service network restart?
|
|
|
09-12-2014, 09:21 AM
|
#3
|
LQ Newbie
Registered: Aug 2013
Location: San Antonio, TX
Posts: 20
Original Poster
Rep:
|
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.
|
|
|
09-12-2014, 11:16 AM
|
#4
|
Member
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457
Rep:
|
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.
|
|
|
09-12-2014, 01:18 PM
|
#5
|
LQ Newbie
Registered: Aug 2013
Location: San Antonio, TX
Posts: 20
Original Poster
Rep:
|
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'
...
|
|
|
09-12-2014, 01:29 PM
|
#6
|
Member
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457
Rep:
|
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...
|
|
|
09-12-2014, 01:50 PM
|
#7
|
LQ Newbie
Registered: Aug 2013
Location: San Antonio, TX
Posts: 20
Original Poster
Rep:
|
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.
|
|
|
09-12-2014, 02:22 PM
|
#8
|
Member
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457
Rep:
|
I'm pretty sure you don't need NM for dhcp...
|
|
|
09-12-2014, 02:48 PM
|
#9
|
LQ Newbie
Registered: Aug 2013
Location: San Antonio, TX
Posts: 20
Original Poster
Rep:
|
Maybe not, but for whatever reason if we turn off NM and try to launch a gold image, it fails every time.
|
|
|
09-12-2014, 03:53 PM
|
#10
|
Member
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457
Rep:
|
'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.
|
|
|
All times are GMT -5. The time now is 06:03 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|