How to Set up Network Bonding in Ubuntu 6.10
How to Set up Network Bonding in Ubuntu 6.10Why you may want to do this:Network Bonding, otherwise known as port trunking allows you to combine multiple network ports into a single group, effectively aggregating the bandwidth of multiple interfaces into a single connection. For example, you can aggregate two gigabyte ports into a two-gigabyte trunk port. Bonding is used primarily to provide network load balancing and fault tolerance. First, we will run two different network tools to check for network connectivity and capability. Run mii-tool to check your interfaces for connectivity: mii-tool For our purposes, we will assume you have three interfaces. The result of the mii-tool command is listed below: eth0: negotiated 100baseTx-HD, link ok Next run ethtool for each interface to check to see what capabilities: ethtool eth0 && ethtool eth1 && ethtool eth3 The result of the ethtool command is listed below: Settings for eth0: Next, we need to install ifenslave. It’s a simple install: apt-get update && apt-get install ifenslave Options for mode types:You can set up your bond interface according to your needs. In order to do this, you simply change the mode type depicted in the examples below (mode=X). There are seven mode types available. They are as follows: mode=0
mode=1
mode=2
mode=3
mode=4
*Pre-requisites:
mode=5
mode=6
Now append the following items to your aliases file: pico /etc/modprob.d/aliases # Append to the bottom of this file: alias bond0 bonding alias eth0 e100 alias eth1 e100 alias eth2 e100 options bonding mode=0 miimon=100 Next, append the following items to your i386 file: pico /etc/modprob.d/arch/i386 # Append to the bottom of this file: alias bond0 bonding options bonding mode=0 miimon=100 downdelay=200 updelay=200 Now we have to modify the interface file. Start off by commenting out any information on the physical interfaces, eth0, eth1, etc, and create a virtual interface such as bond0, configure it similar to below, and be sure to choose a unique hwaddress. Be sure to leave the loopback interface configuration intact. pico /etc/network/interfaces It should look something like this: # 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 #auto eth0 #iface eth0 inet static # address 192.168.0.120 # netmask 255.255.255.0 # network 192.168.0.0 # broadcast 192.168.0.255 # gateway 192.168.0.1 auto bond0 iface bond0 inet static address 192.168.0.120 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1 hwaddress ether 00:03:B3:48:50:2C post-up ifenslave bond0 eth0 eth1 Save the file and then reboot the system: shutdown -r now
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning
Learn benefits of Simpana software.
View the Gartner Video







Recent comments
18 hours 34 min ago
23 hours 40 min ago
1 day 6 hours ago
1 day 7 hours ago
1 day 10 hours ago
1 day 10 hours ago
1 day 14 hours ago
1 day 14 hours ago
1 day 14 hours ago
1 day 16 hours ago