Net:Bonding ( Load-Balancing ) at Mandriva 2008.1

September 13th, 2008 by bayu

You will be very surprised when you see NET, Load-Balancing & Round-Robin using Bonding at mandriva an the easiest way to implement it.

What you neet:
- 2 NICs ( eth0 & eth1 )
- bonding module at your kernel

lets rock

1- add :
alias bond0 bonding
options bond0 mode=balance-alb miimon=100 at /etc/modprobe.conf

2- modprobe bondign

3- ifconfig bond0 192.168.9.7 netmask 255.255.255.0 up

4- ifenslave bond0 eth0

5- ifenslave bond0 eth1

that all folks !!

cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.2.3 (December 6, 2007)

Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:1c:25:20:ba:00

Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:52:04:f3:00:00

——————
ifconfig
——————
bond0 Link encap:Ethernet HWaddr 00:1C:25:20:BA:00
inet addr:192.168.9.7 Bcast:192.168.9.255 Mask:255.255.255.0
inet6 addr: fe80::21c:25ff:fe20:ba3a/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:39780 errors:0 dropped:0 overruns:0 frame:0
TX packets:14802 errors:0 dropped:0 overruns:0 carrier:364
collisions:0 txqueuelen:0
RX bytes:9708181 (9.2 MiB) TX bytes:1654925 (1.5 MiB)

eth0 Link encap:Ethernet HWaddr 00:1C:25:20:BA:00
inet addr:192.168.101.4 Bcast:192.168.103.255 Mask:255.255.252.0
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:16645 errors:0 dropped:0 overruns:0 frame:0
TX packets:6610 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:3608424 (3.4 MiB) TX bytes:1120340 (1.0 MiB)
Base address:0×1840 Memory:fe200000-fe220000

eth1 Link encap:Ethernet HWaddr 00:1C:25:20:BA:00
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:23135 errors:0 dropped:0 overruns:0 frame:0
TX packets:8192 errors:0 dropped:0 overruns:0 carrier:364
collisions:0 txqueuelen:1000
RX bytes:6099757 (5.8 MiB) TX bytes:534585 (522.0 KiB)
Interrupt:16 Base address:0×300
————————-
Go and ping this IP from a computer, unplug one oof the two network cables and see what happends,,, then reconnect that cable….. and unplug the other network cable.
Have Fun !!!

from :
http://janux.aleux.com/blog/2008/08/28/netbonding-load-balancing-at-mandriva-20081-_x64/

How MultiWAN Works

April 26th, 2008 by bayu

MultiWAN features:

  • auto-failover
  • load balanced
  • round-robin based on user-defined weights (see configuration section)

To give you an example of how multi-WAN works, imagine two 1 Mbit/s DSL lines with two users on the local network. With every new connection to a server on the Internet, the multi-WAN system alternates WAN interfaces. User A could be downloading a large file through WAN #1, while User B is making a voice-over-IP (VoIP) telephone call on WAN #2.

With some applications, the download speed for the multi-WAN system can use the full 2 Mbit/s available. For example, downloading a large file from a peer-to-peer network will use the bandwidth from both WAN connections simultaneously. This is possible since the peer-to-peer technology uses many different Internet “peers” for downloading. At the other end of the spectrum, consider the case of downloading a large file from a web site. In this case, only a single WAN connection is used — 1 Mbit/s maximum.

Bandwidth aggregation (combining multiple WAN interfaces to look like a single WAN interface) is not possible without help for your ISP since both ends of an Internet connection must be configured.

from http://www.clarkconnect.com/docs/Network_Settings_-_Multi-WAN