The goal is to be able to work while on the docking station through the wire, and be able to disconnect from the docking station and start using the wireless with no interruption. eth1 is a wireless interface using the ipw2200 module. eth0 is wired using e100. I recompiled my kernel to include bonding support and also recompiled my network drivers as modules.
I looked around online and found
http://www.linuxfoundation.org/en/Ne...l_with_bonding
I followed this and came up with the following configuration.
/etc/rc.d/rc.bond:
Code:
#!/bin/sh
#
case "$1" in
'start')
echo "start bond0"
modprobe bonding mode=broadcast miimon=100
ifconfig bond0 up
ifconfig bond0 10.151.33.45 netmask 255.255.240.0 hw ether 00:16:3e:aa:aa:aa up
ifenslave bond0 eth0
ifenslave bond0 eth1
;;
'stop')
ifconfig bond0 down
rmmod bonding
;;
*)
echo "Usage: $0 {start|stop}"
;;
esac
Current ifconfig:
Code:
bond0 Link encap:Ethernet HWaddr 00:16:3e:aa:aa:aa
inet addr:10.151.33.45 Bcast:10.151.47.255 Mask:255.255.240.0
inet6 addr: fe80::216:3eff:feaa:aaaa/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:3698 errors:0 dropped:6 overruns:0 frame:0
TX packets:2824 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2276400 (2.1 MiB) TX bytes:303086 (295.9 KiB)
eth0 Link encap:Ethernet HWaddr 00:16:3e:aa:aa:aa
inet addr:10.151.33.42 Bcast:10.151.47.255 Mask:255.255.240.0
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:2890 errors:0 dropped:0 overruns:0 frame:0
TX packets:1411 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2197335 (2.0 MiB) TX bytes:155203 (151.5 KiB)
eth1 Link encap:Ethernet HWaddr 00:16:3e:aa:aa:aa
inet addr:10.151.33.41 Bcast:10.151.47.255 Mask:255.255.240.0
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:808 errors:0 dropped:6 overruns:0 frame:0
TX packets:1413 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:79065 (77.2 KiB) TX bytes:147883 (144.4 KiB)
Interrupt:9 Base address:0x6000 Memory:e0206000-e0206fff
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:896 (896.0 B) TX bytes:896 (896.0 B)
/proc/net/bonding/bond0:
Code:
Ethernet Channel Bonding Driver: v3.2.5 (March 21, 2008)
Bonding Mode: fault-tolerance (broadcast)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth0
MII Status: up
Link Failure Count: 1
Permanent HW addr: 08:00:46:5f:e7:6e
Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:0e:35:ed:41:e6
mii-tool:
Code:
eth0: negotiated 100baseTx-FD flow-control, link ok
SIOCGMIIPHY on 'eth1' failed: Operation not supported
I get 50% packet loss using mode bonding mode balance-rr. I assume this is because it cycles through the interfaces and when it comes to using the wireless one it does not work. Using mode broadcast, I get no packet loss until the wire link goes down? Is this related to "SIOCGMIIPHY on 'eth1' failed: Operation not supported" and if so, how to resolve it? Thanks