Table of Contents

Home tmade.de

Home Wiki

Bonding

SLES

Edit/ceate /etc/sysconfig/network/ifcfg-bond0

BROADCAST='172.16.0.255'
BOOTPROTO='static'
IPADDR='172.16.0.1'
MTU=''
NETMASK='255.255.255.0'
NETWORK='172.16.0.0'
REMOTE_IPADDR=''
STARTMODE='onboot'
BONDING_MASTER='yes'
BONDING_MODULE_OPTS='miimon=100 mode=1'
BONDING_SLAVE0='eth0'
BONDING_SLAVE1='eth1'

Additionally have a look here: http://www.novell.com/communities/node/6626/bonding-multiple-network-interfaces-sles-10

Ubuntu

Install ethtool and ifenslave:

apt-get install ethtool
apt-get install ifenslave

Edit /etc/network/interfaces as follows:

auto bond0
iface bond0 inet static
    address 10.0.0.10
    netmask 255.255.255.0
    network 10.0.0.0
    broadcast 10.0.0.255
    gateway 10.0.0.1
    dns-nameservers 10.0.0.1
    slaves eth0 eth1
    bond_mode 0
    bond_miimon 100
    bond_updelay 200
    bond_downdelay 200

Afterwards

/etc/modprobe.d# cat bonding.conf
alias bond0 bonding
options bonding mode=1 miimon=100                    #mode 0 = loadbalancing, mode 1 = active-backup

or

/etc/modprobe.d# cat bonding.conf
alias netdev-bond0 bonding
#alias bond0 bonding
options bonding mode=1 miimon=100

Finally execute

ifenslave bond0 eth0 eth1   #Make slave devices

Alternativly:

auto bond0
iface bond0 inet static
    address 192.168.64.124
    netmask 255.255.255.0
    network 192.168.64.0
    broadcast 192.168.64.255
    gateway 192.168.64.1
    dns-nameservers 192.168.63.4 192.168.63.8
    post-up ifenslave bond0 eth0 eth2
    pre-down ifenslave -d bond0 eth0 eth2

Edit /etc/modules and add:

bonding mode=active-backup miimon=100 primary=eth0

Additionally have a look here: http://wiki.ubuntuusers.de/Netzwerkkarten_b%C3%BCndeln

linux/bonding.txt · Last modified: 2017/12/09 01:19 by 127.0.0.1
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki