LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 09-30-2013, 11:06 AM   #1
drManhattan
Member
 
Registered: Aug 2010
Location: Warsaw, Poland
Distribution: Ubuntu 10.04 LTS on IBM Lenovo R61e, RHEL5-6,SLES10-11
Posts: 262

Rep: Reputation: 1
bonding (mode=1) above (mode=4) lacp


Hi

Is it possible to setup below picture ?
Click image for larger version

Name:	lacp_bond.jpg
Views:	217
Size:	263.1 KB
ID:	13575

Requirements :
- 2 different stack lan switches
- lacp on 2 x 1Gb
- Active/Stdby (mode=1) bonding on lacp (mode=4)

Last edited by drManhattan; 09-30-2013 at 11:08 AM.
 
Old 09-30-2013, 01:02 PM   #2
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
Quote:
Originally Posted by drManhattan View Post
Hi

Is it possible to setup below picture ?
Attachment 13575

Requirements :
- 2 different stack lan switches
- lacp on 2 x 1Gb
- Active/Stdby (mode=1) bonding on lacp (mode=4)
Your diagrams none too clear, but if I read it right I don't see why not. This is a pretty common setup. Set up two lacp bundles and use them as active/standby interfaces.

Couldn't tell you exactly how with Linux, but I've set up the network sidee to Solaris, Windows and Linux hosts. Google should show you the way :-)
 
Old 09-30-2013, 05:55 PM   #3
drManhattan
Member
 
Registered: Aug 2010
Location: Warsaw, Poland
Distribution: Ubuntu 10.04 LTS on IBM Lenovo R61e, RHEL5-6,SLES10-11
Posts: 262

Original Poster
Rep: Reputation: 1
I have setup two lacp bundles as you suggested @baldy3105.
My oes is RHEL6.4 and below are network configs from my server :

File : /etc/sysconfig/network-scripts/ifcfg-eth1
Code:
DEVICE="eth1"
BOOTPROTO="none"
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"
SLAVE=yes
MASTER=bond0
File : /etc/sysconfig/network-scripts/ifcfg-eth2
Code:
DEVICE="eth2"
BOOTPROTO="none"
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"
SLAVE=yes
MASTER=bond1
File : /etc/sysconfig/network-scripts/ifcfg-eth3
Code:
DEVICE="eth3"
BOOTPROTO="none"
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"
SLAVE=yes
MASTER=bond0
File : /etc/sysconfig/network-scripts/ifcfg-eth4
Code:
DEVICE="eth4"
BOOTPROTO="none"
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"
SLAVE=yes
MASTER=bond1

And bonded device LACP.


File : /etc/sysconfig/network-scripts/ifcfg-bond0
Code:
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=static
BONDING_OPTS="mode=4 miimon=100 min_links=2 lacp_rate=1"
TYPE=Bonding
IPADDR=192.168.122.10
NETMASK=255.255.255.0
BROADCAST=192.168.122.255
DELAY=0
MTU=1500

File : /etc/sysconfig/network-scripts/ifcfg-bond1
Code:
DEVICE=bond1
ONBOOT=yes
BOOTPROTO=static
BONDING_OPTS="mode=4 miimon=100 min_links=2 lacp_rate=1"
TYPE=Bonding
IPADDR=192.168.122.11
NETMASK=255.255.255.0
BROADCAST=192.168.122.255
DELAY=0
MTU=1500

Now I don't know how to create on top of bond0 and bond1 devices, new device (mode=1 active/stdby).
I would like to create one device with IP e.g. 192.168.122.10 in mode=1 that is built from 2 devices in mode=4 : bond0 and bond1.
Could you explain me, how to make that happen ?

Last edited by drManhattan; 09-30-2013 at 06:03 PM.
 
Old 10-01-2013, 10:01 AM   #4
drManhattan
Member
 
Registered: Aug 2010
Location: Warsaw, Poland
Distribution: Ubuntu 10.04 LTS on IBM Lenovo R61e, RHEL5-6,SLES10-11
Posts: 262

Original Poster
Rep: Reputation: 1
Ok I got this. I know howto manually configure it.
I changed ifcfg-bond0 and ifcfg-bond1 to this structure, basicaly added "SLAVE" variable :

File: ifcfg-bond0

Code:
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=static
BONDING_OPTS="mode=4 miimon=100 min_links=2 lacp_rate=1"
TYPE=Bonding
IPADDR=192.168.122.10
NETMASK=255.255.255.0
BROADCAST=192.168.122.255
DELAY=0
MTU=1500
SLAVE=no

File: ifcfg-bond1
Code:
DEVICE=bond1
ONBOOT=yes
BOOTPROTO=static
BONDING_OPTS="mode=4 miimon=100 min_links=2 lacp_rate=1"
TYPE=Bonding
IPADDR=192.168.122.10
NETMASK=255.255.255.0
BROADCAST=192.168.122.255
DELAY=0
MTU=1500
SLAVE=yes

But now I am able to switchover IP 192.168.122.10 between bond0 and bond1 manualy by typing
Code:
ifdown bond0;ifup bond1
But this operation costs me loosing TCP/IP packets.
Is it possible for RHEL to discover automatically that bond0/1 interface failed and to failover IP automaticaly ?

Last edited by drManhattan; 10-01-2013 at 10:05 AM.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding out Bonding mode of Interface ajeet528 Linux - Networking 4 07-09-2015 02:19 AM
Fedora 18 bonded interface LACP mode not aggregating link throughput stevedd Linux - Networking 3 07-28-2013 12:49 PM
[SOLVED] Centos6.4 - LACP (bonding mode 4) + bridge setup mr.b-o-b Linux - Virtualization and Cloud 1 06-04-2013 03:41 PM
bonding mode 1 fails hansaplazt Linux - Networking 1 10-08-2010 06:47 AM
How can I change display mode from character mode to graph mode wuzhong Linux - Hardware 1 08-08-2004 09:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:16 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration