Solved

EthX don't become up during startup

Posted on 2008-10-21
3
282 Views
Last Modified: 2013-12-15
In my envirnment with RedHat Linux the eth0 and arh1 are configured in bonding in bond0.

here the configuration:
# cat ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.130.15.22
NETMASK=255.255.255.192
GATEWAY=10.130.15.1
# cat ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
MASTER=bond0
SLAVE=yes
ETHTOOL_OPTS="autoneg off speed 100 duplex full"
# cat ifcfg-eth1
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=static
MASTER=bond0
SLAVE=yes
ETHTOOL_OPTS="autoneg off speed 100 duplex full"


When the operating system startup the eth0 and eth1 don't come up and I need to give the command:
ifconfig eth0 up
ifconfig eth1 up
to make it working.

in boot.log i see:
Oct 20 12:14:14 t1nlas2a sysctl: net.ipv4.ip_forward = 0
Oct 20 12:14:14 t1nlas2a sysctl: net.ipv4.conf.default.rp_filter = 1
Oct 20 12:14:14 t1nlas2a sysctl: kernel.sysrq = 0
Oct 20 12:14:14 t1nlas2a sysctl: kernel.core_uses_pid = 1
Oct 20 12:14:14 t1nlas2a network: Setting network parameters:  succeeded
Oct 20 12:14:14 t1nlas2a network: Bringing up loopback interface:  succeeded
Oct 20 12:14:17 t1nlas2a ifup: Enslaving eth0 to bond0
Oct 20 12:14:17 t1nlas2a ifup: Enslaving eth0 to bond0
Oct 20 12:14:17 t1nlas2a ifup: Enslaving eth1 to bond0
Oct 20 12:14:18 t1nlas2a ifup: Enslaving eth1 to bond0
Oct 20 12:14:18 t1nlas2a network: Bringing up interface bond0:  succeeded
Oct 20 12:14:18 t1nlas2a tune_vm: Setting the VM Inactive Clean Percent value to 100
Oct 20 12:14:18 t1nlas2a rc: Starting tune_vm:  succeeded
Oct 20 12:17:39 t1nlas2a ntpd:  failed
Oct 20 12:17:40 t1nlas2a ntpd: ntpd startup succeeded

in
messages:
Oct 20 12:16:25 t1nlas2a kernel: ip_tables: (C) 2000-2002 Netfilter core team
Oct 20 12:16:25 t1nlas2a kernel: Ethernet Channel Bonding Driver: v2.6.0 (January 14, 2004)
Oct 20 12:16:25 t1nlas2a kernel: bonding: MII link monitoring set to 100 ms
Oct 20 12:16:25 t1nlas2a kernel: ip_tables: (C) 2000-2002 Netfilter core team
Oct 20 12:16:25 t1nlas2a kernel: tg3.c:v3.52RH (Mar 06, 2006)
Oct 20 12:16:25 t1nlas2a kernel: eth0: Tigon3 [partno(349321-001) rev 2100 PHY(5704)] (PCIX:66MHz:64-bit) 10/100/1000BaseT Ethernet 00:17:a4:a9:d5:f0
Oct 20 12:16:25 t1nlas2a kernel: eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] Split[0] WireSpeed[1] TSOcap[0]
Oct 20 12:16:25 t1nlas2a kernel: eth0: dma_rwctrl[769f0000]
Oct 20 12:16:25 t1nlas2a kernel: eth1: Tigon3 [partno(349321-001) rev 2100 PHY(5704)] (PCIX:66MHz:64-bit) 10/100/1000BaseT Ethernet 00:17:a4:a9:d5:ef
Oct 20 12:16:25 t1nlas2a kernel: eth1: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] Split[0] WireSpeed[1] TSOcap[0]
Oct 20 12:16:25 t1nlas2a kernel: eth1: dma_rwctrl[769f0000]
Oct 20 12:16:25 t1nlas2a kernel: bonding: bond0: enslaving eth0 as a backup interface with a down link.
Oct 20 12:16:25 t1nlas2a kernel: bonding: bond0: enslaving eth1 as a backup interface with a down link.


How could I solve the problem?
Thanks
0
Comment
Question by:nokiamobile
3 Comments
 
LVL 3

Expert Comment

by:ricardoelena
Comment Utility
An easy way is to write:
ifconfig eth0 up
ifconfig eth1 up

in the file /etc/rc.local and restart
0
 
LVL 11

Expert Comment

by:jgiordano
Comment Utility
did you put the bond parameters in the modprobe.conf?

also I like to put the mac addresses in
ifcfg-eth0
ifcfg-eth1
0
 

Accepted Solution

by:
nokiamobile earned 0 total points
Comment Utility
The correct solution was to delete al
ifcfg-eth0*
ifcfg-eth1*
files
there was some ifcfg-ethX.orig in the directory.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now