Eu tenho dois roteadores Wi-Fi móveis (com IP 192.168.0.1 e 192.168.1.1 ) e dois adaptadores Wi-Fi usb e tentando vinculá-los ao failover conexão. Usando o OpenSUSE 12.3 no YaST, escolhi o Método Tradicional com ifup e, primeiramente, criei duas conexões DHCP
Comasseguintesrotas,elefuncionabem(comacessoàredeeambasasinterfacesadministrativasdisponíveisem192.168.0.1e192.168.1.1),massemvinculação
sudo/sbin/route-nKernelIProutingtableDestinationGatewayGenmaskFlagsMetricRefUseIface0.0.0.0192.168.1.10.0.0.0UG000wlan0127.0.0.00.0.0.0255.0.0.0U000lo169.254.0.00.0.0.0255.255.0.0U000wlan0192.168.0.00.0.0.0255.255.255.0U000wlan1192.168.1.00.0.0.0255.255.255.0U000wlan0sudo/sbin/ifconfigloLinkencap:LocalLoopbackinetaddr:127.0.0.1Mask:255.0.0.0inet6addr:::1/128Scope:HostUPLOOPBACKRUNNINGMTU:65536Metric:1RXpackets:402errors:0dropped:0overruns:0frame:0TXpackets:402errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:0RXbytes:43639(42.6Kb)TXbytes:43639(42.6Kb)wlan0Linkencap:EthernetHWaddr14:DD:A9:2D:53:92inetaddr:192.168.1.107Bcast:192.168.1.255Mask:255.255.255.0inet6addr:fe80::16dd:a9ff:fe2d:5392/64Scope:LinkUPBROADCASTRUNNINGMULTICASTMTU:1500Metric:1RXpackets:16625errors:0dropped:0overruns:0frame:0TXpackets:14142errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:1000RXbytes:9640939(9.1Mb)TXbytes:3377293(3.2Mb)wlan1Linkencap:EthernetHWaddrAC:22:0B:92:CE:13inetaddr:192.168.0.159Bcast:192.168.0.255Mask:255.255.255.0inet6addr:fe80::ae22:bff:fe92:ce13/64Scope:LinkUPBROADCASTRUNNINGMULTICASTMTU:1500Metric:1RXpackets:21216errors:0dropped:0overruns:0frame:0TXpackets:20869errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:1000RXbytes:3655149(3.4Mb)TXbytes:3807217(3.6Mb)
Agoraestoutentandoadicionarumaconexãodevínculocomoem este manual
sudo /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 bond0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 bond0
sudo /sbin/ifconfig
bond0 Link encap:Ethernet HWaddr 14:DD:A9:2D:53:92
inet addr:192.168.0.159 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::16dd:a9ff:fe2d:5392/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:773 errors:0 dropped:6 overruns:0 frame:0
TX packets:854 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:181197 (176.9 Kb) TX bytes:173550 (169.4 Kb)
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:65536 Metric:1
RX packets:946 errors:0 dropped:0 overruns:0 frame:0
TX packets:946 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:90497 (88.3 Kb) TX bytes:90497 (88.3 Kb)
wlan0 Link encap:Ethernet HWaddr 14:DD:A9:2D:53:92
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:6 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1026 (1.0 Kb) TX bytes:288 (288.0 b)
wlan1 Link encap:Ethernet HWaddr 14:DD:A9:2D:53:92
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:765 errors:0 dropped:0 overruns:0 frame:0
TX packets:852 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:180171 (175.9 Kb) TX bytes:173262 (169.2 Kb)
cat /etc/sysconfig/network/ifcfg-bond0
BONDING_MASTER='yes'
BONDING_MODULE_OPTS='mode=active-backup miimon=100'
BONDING_SLAVE0='wlan0'
BONDING_SLAVE1='wlan1'
BOOTPROTO='dhcp'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR=''
MTU=''
NAME=''
NETMASK=''
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
USERCONTROL='no'
Agora estou diante de dois problemas:
-
Não consigo acessar o painel de administração em 192.168.1.1
-
As conexões não garantem uma à outra
a) com o primeiro adaptador desconectado
sudo /usr/sbin/traceroute google.com
traceroute to google.com (173.194.122.193), 30 hops max, 40 byte packets using UDP
1 192.168.0.1 (192.168.0.1) 0.984 ms 0.977 ms 0.970 ms
...
b) e com outro desconectado não há conexão alguma
sudo /usr/sbin/traceroute google.com
traceroute to google.com (173.194.122.193), 30 hops max, 40 byte packets using UDP
1 * * *
...
30 * * *