LinuxQuestions.org
Help answer threads with 0 replies.
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 01-23-2012, 04:04 AM   #1
San123
LQ Newbie
 
Registered: Nov 2011
Posts: 21

Rep: Reputation: Disabled
About NIC bonding in Ubuntu


I have 2 NIC cards and tried for NIC bonding as:

1) Shutdown active interfaces by the following command: ifdown eth0 and ifdown eth1

2) Commentout the ethernet configurations and add bonding configuration into /etc/network/interfaces
The code goes like this:
# Loopback network interface
auto lo
iface lo inet loopback

auto bond0
iface bond0 inet static
address 192.168.1.x
netmask 255.255.255.0
gateway (Router's IP)

bond-slaves eth0 eth1

# LACP (Link Aggregation Control Protocol) configuration

bond_mode active-backup
bond_miimon 100
bond_lacp_rate 1

3) Bring up the bonding interface using the command: sudo ifup bond0

4) Restart the network to take the changes into consideration using
sudo /etc/init.d/networking restart

Well, now I'm able to access internet. But when I tried to remove one cable out, I'm unable to access.Even though the bond mode is kept in active-backup, why it's happening so?

Can someone please help in this regard?
 
Old 01-24-2012, 01:03 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
Is LACP enabled on your switch?
 
1 members found this post helpful.
Old 01-24-2012, 10:45 PM   #3
San123
LQ Newbie
 
Registered: Nov 2011
Posts: 21

Original Poster
Rep: Reputation: Disabled
Hi Ser Olmy...
I'm doing this NIC bonding at client side in which I'm getting internet access via router and switch.
Here we have D-Link 8 port desktop switch in which I'm using two ports to accomplish my work. I think LACP enabling is possible only in rack mountable switch.
Please drop your thoughts.

Thanking you...
 
  


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
[SOLVED] About NIC bonding in Ubuntu San123 Linux - Networking 4 01-19-2012 02:35 AM
NIC Bonding: Does not failover successfully. Only one NIC is active Akhran Debian 2 02-18-2011 07:26 PM
LXer: Setting Up Dual-Dual NIC Bonding On Ubuntu In 30 Seconds LXer Syndicated Linux News 0 01-22-2009 08:30 AM
Multiple instances of NIC Bonding on Ubuntu Server GeneNZ Linux - Networking 0 08-19-2008 05:13 PM
Has anyone verified that NIC bonding works in Ubuntu? BrianK Ubuntu 3 01-18-2007 10:30 PM

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

All times are GMT -5. The time now is 04:14 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