LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   2 eth interfaces not coming up at boot (https://www.linuxquestions.org/questions/linux-networking-3/2-eth-interfaces-not-coming-up-at-boot-938915/)

Need2BaGeek 04-09-2012 11:39 AM

2 eth interfaces not coming up at boot
 
Hi everyone,

Need a little help here. I have 2 interfaces configured on a RHEL 6.2 server: eth0 and eth2. I chose these two interfaces because I may end up having two bonds in the future: eth0/1 and eth2/3.

These interfaces work fine when they're up. The problem is that they don't come up at boot. I have to run the commands ifup eth0 and ifup eth2 to bring them up manually. If I run service network restart it only stops/starts the loopback interface.

Here is the output of chkconfig showing that network should come up when I boot into run level 3:
Code:

[root@lab-vm-ps1 ~]# chkconfig --list | grep network
matahari-network        0:off  1:off  2:off  3:off  4:off  5:off  6:off
network        0:off  1:off  2:on    3:on    4:on    5:on    6:off

I should also mention this is a brand new VM running in KVM, which is also on a RHEL 6.2 host. Not sure how much difference it makes that it's virtual.

Anyone know why the network service wouldn't see these interfaces and I'd have to manually manage them with ifup/ifdown? Any help is greatly appreciated.

Thanks

Kustom42 04-09-2012 01:12 PM

The interfaces will come up on boot if you add the following line to your /etc/sysconfig/network-scripts/ifcfg-eth# files.

Code:

ONBOOT=yes

Need2BaGeek 04-09-2012 03:37 PM

Wow. That was simple. Thanks for helping a noob out!


All times are GMT -5. The time now is 05:01 AM.