- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Need help configuring bond1
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
Discussions
Discussions
Forums
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
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
тАО08-04-2010 07:02 AM
тАО08-04-2010 07:02 AM
I have the need to create a network bond0 and bond1. bond0 appears to be configured OK, but when starting the network for bond1 I get this error.
[root@robin etc]# uname -r
2.6.18-8.el5
[root@robin etc]#
[root@robin etc]# ifup bond1
bonding device bond1 does not seem to be present, delaying initialization.
[root@robin etc]#
Here are thke configuration files:
[root@robin etc]# cat ifcfg-bond1
DEVICE=bond1
BOOTPROTO=none
ONBOOT=yes
NETWORK=192.168.2.0
NETMASK=255.255.255.0
IPADDR=192.168.2.11
USERCTL=no
TYPE=Ethernet
IPV6INIT=no
PEERDNS=yes
BONDING_OPTS="mode=1 miimon=500"
[root@robin etc]# cat ifcfg-eth2
# Broadcom Corporation NetXtreme BCM5715S Gigabit Ethernet
DEVICE=eth2
BOOTPROTO=none
ONBOOT=no
MASTER=bond1
SLAVE=yes
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
[root@robin etc]# cat ifcfg-eth3
# Broadcom Corporation NetXtreme BCM5715S Gigabit Ethernet
DEVICE=eth3
BOOTPROTO=none
ONBOOT=no
MASTER=bond1
SLAVE=yes
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
[root@robin etc]# cat /etc/modprobe.conf
alias bond0 bonding
alias bond1 bonding
alias scsi_hostadapter1 usb-storage
alias scsi_hostadapter2 qla2xxx_conf
alias scsi_hostadapter3 qla2xxx
alias scsi_hostadapter4 qla2300
alias scsi_hostadapter5 qla2400
options qla2xxx ql2xmaxqdepth=16 qlport_down_retry=30 ql2xloginretrycount=30 ql
2xfailover=1 ql2xlbType=1 ql2xautorestore=0xa0 ConfigRequired=0
remove qla2xxx /sbin/modprobe -r --first-time --ignore-remove qla2xxx && { /sbin
/modprobe -r --ignore-remove qla2xxx_conf; }
alias eth0 bnx2
alias eth1 bnx2
alias eth2 tg3
alias eth3 tg3
[root@robin etc]#
Thanks,
Randy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2010 07:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2010 07:38 AM
тАО08-04-2010 07:38 AM
Re: Need help configuring bond1
Thanks for the suggestion, but I read on a post that max_bonds shouldn't be used when configuring networking with sysconfig files as it may confuse things. Instead using multiple ifcfg-bondX files is preferred.
Thanks,
Randy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2010 10:33 PM
тАО08-04-2010 10:33 PM
Re: Need help configuring bond1
Hi Randy,
you didn't tell the os which interfaces he should use.
This is a exsample from a SLES10 system:
/etc/sysconfig/network/ifcfg-bond0:
BONDING_MASTER=yes
BONDING_MODULE_OPTS='miimon=100 mode=1 use_carrier=1'
BONDING_SLAVE0='eth-id-00:17:a4:77:d4:60'
BONDING_SLAVE1='eth-id-00:17:a4:77:d4:62'
BOOTPROTO='static'
IPADDR='192.168.2.7'
MTU='1500'
NETMASK='255.255.255.0'
STARTMODE='onboot'
regards, Uli
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2010 05:08 AM
тАО08-05-2010 05:08 AM
Re: Need help configuring bond1
The O/S is RHEL 5.
# uname -r
2.6.18-8.el5
Thanks,
Randy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2010 11:48 AM
тАО08-06-2010 11:48 AM
Re: Need help configuring bond1
/etc/modprob.conf
alias bond0 bonding
options bonding max_bonds=2
alias bond1 bonding
/etc/sysconfig/network-scripts
ifcfg-bond0
DEVICE=bond0
IPADDR=xx.xx.xx.xx
NETMASK=255.255.255.192
BROADCAST=xx.xx.xx.127
ONBOOT=YES
BOOTPROTO=none
USERCTL=no
TYPE=Bonding
BONDING_OPTS="mode=1 miimon=100"
ifcfg-eth0
DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
BOOTPROTO=none
SLAVE=yes
ifcfg-eth1
DEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
BOOTPROTO=none
SLAVE=yes
repeat the above for bond1 and ethx associated.
service network restart
cat /proc/net/bonding/bond0
cat /proc/net/bonding/bond1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2010 05:25 AM
тАО08-09-2010 05:25 AM
Re: Need help configuring bond1
Also, it is possible the nics can be mapped differently on each boot. So to prevent this on RHEL 5, we created the file /etc/udev/rules.d/50-netdev.rules containing
KERNEL =="eth*" , SYSFS{address} =="00:17:a4:77:24:10 " , NAME ="eth0"
KERNEL =="eth*" , SYSFS{address} =="00:17:a4:77:24:12" , NAME ="eth1"
KERNEL =="eth*" , SYSFS{address} =="00:17:a4:77:24:0c " , NAME ="eth2"
KERNEL =="eth*" , SYSFS{address} =="00:17:a4:77:24:0e" , NAME ="eth3"
Another method would be adding the HWADDR option to the /etc/sysconfig/network-scripts/ethX files.
Thanks,
Randy