Net:Bonding ( Load-Balancing ) at Mandriva 2008.1 _X64
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 !!!