SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-12-03 19:24:25

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 9,703
Website

How To - NIC Bonding

In this How To: Ethernet And Wireless NIC Bonding by jelloir   the information is primarily for wifi / ethernet and is a bit different than how I have successfully bonded eth0 / eth1

You will need to first install ifenslave-2.6

sudo apt-get install ifenslave-2.6

Next using your favorite editor, edit /etc/network/interfaces

sudo medit /etc/network/interfaces

Now comment out what is already there for safe keeping and add the following

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
allow-hotplug eth1
allow-hotplug bond0

auto bond0
 
iface bond0 inet static
        address 192.168.40.133
        netmask 255.255.255.0
        network 192.168.40.0
        broadcast 192.168.40.255
        gateway 192.168.40.10
        # dns-* options are implemented by the resolvconf package, if installed
        # dns-nameservers 8.8.8.8 8.8.4.4
        # dns-nameservers 208.67.222.222 208.67.220.220
        # dns-search example.com
 
        up /sbin/ifenslave bond0 eth0 eth1
        down /sbin/ifenslave -d bond0 eth0 eth1

You will need to change this to match your network

Specifically these lines

        address 192.168.40.133
        netmask 255.255.255.0
        network 192.168.40.0
        broadcast 192.168.40.255
        gateway 192.168.40.10

Note - If you have different cards than eth0 and eth1, they will need to change also

These lines

        # dns-nameservers 8.8.8.8 8.8.4.4
        # dns-nameservers 208.67.222.222 208.67.220.220

are commented out here, but I have the second enabled in mine..  They are google and opendns servers. 

Others may have resolv.conf handling this .. I left this commented out so that you can decide

Save the file

Now use your favorite editor and create the following file

sudo medit /etc/modprobe.d/bonding.conf

add these lines

 alias netdev-bond0 bonding
 options bonding mode=0 miimon=100

save the file

Now you can restart the network and you should see your bond

sudo /etc/init.d/networking restart

I have disabled network-manager and wicd on my systems..  and use this for my network setup

Last edited by VastOne (2011-12-03 19:32:06)


VSIDO
If you build it, they will come...
Words That Build Or Destroy

Offline

Be excellent to each other!

#2 2012-06-03 00:42:17

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 9,703
Website

Re: How To - NIC Bonding

Edit - June 02 2012

I have edited the original to now read

alias netdev-bond0 bonding

to replace

alias bond0 bonding

This removes this error on boot

Loading kernel module for a network device with CAP_SYS_MODULE (deprecated).  Use CAP_NET_ADMIN and alias netdev-bond0 instead


VSIDO
If you build it, they will come...
Words That Build Or Destroy

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo