- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Setting up bonding
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2004 07:57 PM
04-26-2004 07:57 PM
Setting up bonding
I am having problem setting up bonding on Linux with a primary option enabled.
The functionality I am looking for is, all traffic should go through eth0 initially, when it goes down traffic should go through eth2 and when eth0 is brought up, traffic should failback to eth0 even though eth2 is up.
In modules.conf I set
alias bond0 bonding
options bond0 -o bonding0 miimon=100 mode=1 primary=eth0
In the directory /etc/sysconfig/network-scripts, I configure the three files, ifcfg-bond0 with entries:
DEVICE=bond0
BOOTPROTO=none
IPADDR=10.200.8.5
NETMASK=255.255.255.0
NETWORK=10.200.8.0
BROADCAST=10.200.8.255
ONBOOT=yes
USERCTL=no
ifcfg-eth0, ifcfg-eth2 with entries
DEVICE=eth0 or eth2
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
MASTER=bond0
SLAVE=yes
But with this configuration, my machine does not boot up at all. Boot sequence gets struck at initiating eth0.
What's is that I am missing here.
Any ideas ???
Praveen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2004 08:05 PM
04-26-2004 08:05 PM
Re: Setting up bonding
Check that, it could be the problem right there.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2004 08:17 PM
04-26-2004 08:17 PM
Re: Setting up bonding
Are you using a Proliant Server?
Pax, R>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2004 08:32 PM
04-26-2004 08:32 PM
Re: Setting up bonding
no need to reboot your server.
Just do a 'service network restart'.
Also check this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=517376
JP.
P.S.: I didn't have the opportunity to fix my own bonding problem. Oracle also offers hanicd on oss.oracle.com for NIC failover. It's because of Oracle's RAC (Real Application Cluster) on Linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2004 09:29 PM
04-26-2004 09:29 PM
Re: Setting up bonding
I am confident that the bonding works because failover happens correctly, that is eth0 goes down, the traffic goes through eth1. But when eth0 is up again traffic does not go through eth0 and it still goes through eth1. Only if the eth1 goes down, traffic will go through eth0.
What is want is traffic should only go through eth0 is it is up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2004 09:37 PM
04-26-2004 09:37 PM
Re: Setting up bonding
You should install hpasm (I use v6.4 because had problems with 7.0) and cmanic (stuff for eth0). You should compile/install the bonding module and read the following files from PSP:
bonding-1.0.3-3.src.txt
/usr/share/doc/bonding-1.0.3/bonding.txt
Hope it helps.
Peace, R>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2004 11:25 PM
04-27-2004 11:25 PM
Re: Setting up bonding
you wrote: ... But when eth0 is up again traffic does not go through eth0 and it still goes through eth1. Only if the eth1 goes down, traffic will go through eth0.
Reading the bonding.txt document I find the following desription for mode 1:
Mode 1: Active-backup policy: Only one slave in the bond is active. A different slave becomes active if, AND ONLY IF, the active slave fails.
So what you want, eth0 becoming active again when eth0 link comes up again, is not possible with this mode. Your description of what's happening conforms to the Mode 1 description.
None of the other 'bonding' modes support what you want.
So maybe you must think again: why do I want this?
JP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2004 12:06 AM
04-28-2004 12:06 AM
Re: Setting up bonding
I know that this is the default behaviour of bonding. But atleast as per the bonding manual, there is a "primary" option which works with only mode 1 where a primary can be configured which will be preferred when all the interfaces in a bond group are up.
...BPK...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2004 07:17 AM
05-28-2004 07:17 AM
Re: Setting up bonding
http://geocities.com/peeyush_maurya//bonding.htm