LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 11-29-2006, 10:54 AM   #1
sc425000
LQ Newbie
 
Registered: Jan 2006
Posts: 8

Rep: Reputation: 0
RHEL4 bonding problem


Hi EveryBody

I have problem with bonding network interface . When I config bonding complete and test unplug network bonding work fine. But after reboot I test unplug network cable again and I see bonding not work. Then I use command "service network restart" and test unplug cable . Bonding just work fine

This is my config

/etc/modprobe.conf

alias eth0 tg3
alias eth0 tg3
alias bond0 bonding
options bond0 mode=1 miimon=100


/etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE=bond0
IPADDR=10.65.24.60
NETMASK=255.255.255.0
NETWORK=10.65.24.0
GATEWAY=10.65.24.254
BROADCAST=10.65.24.255
ONBOOT=yes
BOOTPROTO=none
USERCTL=no

/etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
TYPE=Ethernet
ETHTOOL_OPTS="speed 100 duplex full autoneg off"

/etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE=eth0
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
TYPE=Ethernet
ETHTOOL_OPTS="speed 100 duplex full autoneg off"

Something wrong ?

THX
 
Old 11-29-2006, 05:52 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697

Rep: Reputation: 61
Not sure but would this be this changing eth0 to eth1.
/etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE=eth1

Brian
 
Old 11-30-2006, 08:39 AM   #3
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 30
Are you really having two different ethernet interface at this box ??
 
Old 08-07-2008, 06:50 AM   #4
littleking
Member
 
Registered: Jun 2003
Location: New Albany, OH
Posts: 190

Rep: Reputation: 30
Quote:
Originally Posted by sc425000 View Post
Hi EveryBody

I have problem with bonding network interface . When I config bonding complete and test unplug network bonding work fine. But after reboot I test unplug network cable again and I see bonding not work. Then I use command "service network restart" and test unplug cable . Bonding just work fine

This is my config

/etc/modprobe.conf

alias eth0 tg3
alias eth0 tg3
alias bond0 bonding
options bond0 mode=1 miimon=100


/etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE=bond0
IPADDR=10.65.24.60
NETMASK=255.255.255.0
NETWORK=10.65.24.0
GATEWAY=10.65.24.254
BROADCAST=10.65.24.255
ONBOOT=yes
BOOTPROTO=none
USERCTL=no

/etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
TYPE=Ethernet
ETHTOOL_OPTS="speed 100 duplex full autoneg off"

/etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE=eth0
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
TYPE=Ethernet
ETHTOOL_OPTS="speed 100 duplex full autoneg off"

Something wrong ?

THX
also, take the autoneg line off.

u could always use this script:
Code:
#!/bin/bash
#
#script used to set up channel bonding in RHEL
#
#define $hostname
HOST_NAME=$(hostname)
#look up ip for system
DNS_IP=$(nslookup $HOST_NAME | grep -A 1 Name | awk 'NR==2 {print $2}')
if [ "$DNS_IP" == "" ]; then
  echo "Could not find the IP in DNS!"
  exit 1
fi
#define $gw
GATEWAY=$(route -n | grep '^0\.0\.0\.0.*' | awk '{print $2}')
if [ "$GATEWAY" == "" ]; then
  echo "Could not find the GATEWAY!"
  exit 1
fi
#define netmask
NETMASK=$(ifconfig eth0 | grep Mask | awk '{split($4,a,":"); print a[2]'})
if [ "$NETMASK" == "" ]; then
  echo "Could not find the NETMASK!"
  exit 1
fi
#copy orig files
cp /etc/sysconfig/network /etc/sysconfig/network.orig
#create new /etc/sysconfig/network file
# Verify that this is not already configured and modify the setting
# if it is.
if [ ! $(grep 'GATEWAY=' /etc/sysconfig/network) ]; then
  echo "GATEWAY=$GATEWAY" >> /etc/sysconfig/network
else
  mv /etc/sysconfig/network /etc/sysconfig/network.orig
  cat /etc/sysconfig/network.orig | sed "s/GATEWAY=.*/GATEWAY=$GATEWAY/" > /etc/sysconfig/network
fi
#copy orig files
cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/backup/ifcfg-eth0.orig
cp /etc/sysconfig/network-scripts/ifcfg-eth1 /etc/sysconfig/network-scripts/backup/ifcfg-eth1.orig
#create bond0 config file
cat > /etc/sysconfig/network-scripts/ifcfg-bond0 << BOND0
DEVICE=bond0
IPADDR=$DNS_IP
NETMASK=$NETMASK
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
BOND0
#create interface(s) config file
for ETH in $(ifconfig | grep eth | awk '{print $1}'); do
	SPEED=$(ethtool $ETH | grep Speed | awk '{split($2,a,"M"); print a[1]}')
	cat > /etc/sysconfig/network-scripts/ifcfg-$ETH << NIC1
DEVICE=$ETH
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
ETHTOOL_OPTS="speed $SPEED duplex full"
NIC1
done
#copy orig files
cp /etc/resolv.conf /etc/resolv.conf.orig
#create /etc/resolv.conf file
cat > /etc/resolv.conf << DNS
search aepsc.com
nameserver 10.90.128.2
nameserver 10.70.0.1
nameserver 10.20.0.1
DNS
#copy orig files
cp /etc/modprobe.conf /etc/modprobe.orig
#configure the required modules
echo "alias bond0 bonding options bond0 miimon=100 mode=1" >> /etc/modprobe.conf
#restart networking
reboot
 
Old 07-15-2009, 11:59 PM   #5
msg
LQ Newbie
 
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
Was this issue resolved ?

Quote:
Originally Posted by sc425000 View Post
Hi EveryBody

I have problem with bonding network interface . When I config bonding complete and test unplug network bonding work fine. But after reboot I test unplug network cable again and I see bonding not work. Then I use command "service network restart" and test unplug cable . Bonding just work fine

This is my config

/etc/modprobe.conf

alias eth0 tg3
alias eth0 tg3
alias bond0 bonding
options bond0 mode=1 miimon=100


/etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE=bond0
IPADDR=10.65.24.60
NETMASK=255.255.255.0
NETWORK=10.65.24.0
GATEWAY=10.65.24.254
BROADCAST=10.65.24.255
ONBOOT=yes
BOOTPROTO=none
USERCTL=no

/etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
TYPE=Ethernet
ETHTOOL_OPTS="speed 100 duplex full autoneg off"

/etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE=eth0
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
TYPE=Ethernet
ETHTOOL_OPTS="speed 100 duplex full autoneg off"

Something wrong ?

THX
Hi..

I am having the same issue. Was this issue resolved ? What did you do ?

Thanks.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NIC Teaming/Bonding RHEL4 Labbrat Linux - Networking 1 11-28-2006 07:27 AM
problem with bonding slave interfaces zamri Linux - Networking 1 10-12-2006 08:48 PM
RHEL 3 ES EtherChannel Bonding Problem frankcheong Linux - Networking 2 05-14-2005 08:36 AM
NIC Bonding Problem jon3k Linux - Networking 4 08-31-2004 02:36 PM
Redhat 8.0 bonding Problem FragInHell Linux - Networking 0 05-26-2004 01:26 PM


All times are GMT -5. The time now is 06:34 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration