Temat: mwan3 - problemy i pytania
Witam
Próbuję skonfigurować sobie zapasowe łącze (modem z aero2) za pomocą mwan3. Ogólnie nawet działa ale mam kilka problemów, może ktoś będzie w stanie mi pomóc.
1. Gdy wypnę kabel WAN i mwan3 dokonuje przełączenia na inny interfejs a w tle z komputera w LAN leci ping, to ping zaczyna tracić pakiety i już nie odzyskuje, przerwanie Ctrl+C i ponowne wywołanie pinga przywraca połączenie - to jest normalne? W opisie pakietu multiwan był zrzut z pinga, że wznawiał się normalnie...
2. Dalej, gdy ponownie wepnę kabel i interejs wan zostanie podniesiony ping nadal leci po aero2 (widać po czasach pingów) - j/w tak ma być?
3. Na Windowsie jest jeszcze gorzej, bo nawet przerwanie pinga i ponowienie nie pomaga, jedynie zmiana adresu docelowego przynosi skutek i pingi idą.
64 bytes from 178.239.142.104: seq=110 ttl=55 time=30.474 ms
64 bytes from 178.239.142.104: seq=111 ttl=55 time=31.223 ms
64 bytes from 178.239.142.104: seq=112 ttl=55 time=30.589 ms
64 bytes from 178.239.142.104: seq=113 ttl=55 time=31.530 ms
64 bytes from 178.239.142.104: seq=114 ttl=55 time=30.903 ms
^C
--- 178.239.142.104 ping statistics ---
136 packets transmitted, 115 packets received, 15% packet loss
round-trip min/avg/max = 30.400/30.831/32.985 ms
(wypięcie kabla WAN -> przełączenie na aero, ponowne uruchomienie pinga)
ping 178.239.142.104
PING 178.239.142.104 (178.239.142.104): 56 data bytes
64 bytes from 178.239.142.104: seq=0 ttl=59 time=135.163 ms
64 bytes from 178.239.142.104: seq=1 ttl=59 time=198.038 ms
64 bytes from 178.239.142.104: seq=2 ttl=59 time=158.652 ms
(wpięcie kabla, pingi nadal idą przez aero...)
64 bytes from 178.239.142.104: seq=68 ttl=59 time=157.255 ms
64 bytes from 178.239.142.104: seq=69 ttl=59 time=167.248 ms
64 bytes from 178.239.142.104: seq=70 ttl=59 time=147.293 ms
^C
--- 178.239.142.104 ping statistics ---
71 packets transmitted, 68 packets received, 4% packet loss
round-trip min/avg/max = 127.346/156.125/237.238 ms
(restart pinga)
ping 178.239.142.104
PING 178.239.142.104 (178.239.142.104): 56 data bytes
64 bytes from 178.239.142.104: seq=0 ttl=55 time=30.644 ms
64 bytes from 178.239.142.104: seq=1 ttl=55 time=30.545 ms
64 bytes from 178.239.142.104: seq=2 ttl=55 time=30.487 ms
64 bytes from 178.239.142.104: seq=3 ttl=55 time=30.620 ms
64 bytes from 178.239.142.104: seq=4 ttl=55 time=30.708 ms4. Mam skonfigurowaną testową trasę do hosta by zawsze szło przez 3g, po wypięciu kabla sieciowego i wpięciu ta trasa prowadzi już przez wan zamiast przez aero...
(wpięty wan, trasa na stałe przez aero)
PING 178.239.142.103 (178.239.142.103): 56 data bytes
64 bytes from 178.239.142.103: seq=0 ttl=59 time=1335.253 ms
64 bytes from 178.239.142.103: seq=1 ttl=59 time=608.406 ms
64 bytes from 178.239.142.103: seq=2 ttl=59 time=178.535 ms
64 bytes from 178.239.142.103: seq=3 ttl=59 time=178.946 ms
64 bytes from 178.239.142.103: seq=4 ttl=59 time=188.376 ms
64 bytes from 178.239.142.103: seq=5 ttl=59 time=148.438 ms
64 bytes from 178.239.142.103: seq=6 ttl=59 time=148.411 ms
(wypięcie kabla nic nie zmienia, super!)
64 bytes from 178.239.142.103: seq=297 ttl=59 time=163.963 ms
64 bytes from 178.239.142.103: seq=298 ttl=59 time=154.073 ms
64 bytes from 178.239.142.103: seq=299 ttl=59 time=173.789 ms
64 bytes from 178.239.142.103: seq=300 ttl=59 time=213.946 ms
^C
--- 178.239.142.103 ping statistics ---
302 packets transmitted, 295 packets received, 2% packet loss
round-trip min/avg/max = 118.130/192.614/1535.787 ms
(wpięcie kabla i restart pinga)
ping 178.239.142.103
PING 178.239.142.103 (178.239.142.103): 56 data bytes
64 bytes from 178.239.142.103: seq=0 ttl=55 time=30.765 ms
64 bytes from 178.239.142.103: seq=1 ttl=55 time=30.816 ms
64 bytes from 178.239.142.103: seq=2 ttl=55 time=30.524 ms
64 bytes from 178.239.142.103: seq=3 ttl=55 time=30.599 ms
64 bytes from 178.239.142.103: seq=4 ttl=55 time=30.765 ms
64 bytes from 178.239.142.103: seq=5 ttl=55 time=30.477 ms
(restart całego procesu mwan3 i restart pinga)
ping 178.239.142.103
PING 178.239.142.103 (178.239.142.103): 56 data bytes
64 bytes from 178.239.142.103: seq=0 ttl=59 time=150.483 ms
64 bytes from 178.239.142.103: seq=1 ttl=59 time=173.693 ms
64 bytes from 178.239.142.103: seq=2 ttl=59 time=176.475 ms
64 bytes from 178.239.142.103: seq=3 ttl=59 time=163.402 ms
64 bytes from 178.239.142.103: seq=4 ttl=59 time=183.334 ms
64 bytes from 178.239.142.103: seq=5 ttl=59 time=153.194 ms
64 bytes from 178.239.142.103: seq=6 ttl=59 time=163.431 msMoże ktoś spróbować potwierdzić czy jest tak samo źle
? Bo jak się potwierdzi będzie zgłaszał problem do autora skryptu... tylko potrzebuje potwiedzenia.
Konfigi:
/etc/config/network:
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option ifname 'eth0.1'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '10.0.0.1'
option dns '8.8.8.8 8.8.4.4'
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'
option metric '10'
config switch
option name 'rtl8366rb'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'rtl8366rb'
option vlan '1'
option ports '1 2 3 4 5t'
config switch_vlan
option device 'rtl8366rb'
option vlan '2'
option ports '0 5t'
config interface 'aero'
option proto '3g'
option service 'umts'
option device '/dev/ttyUSB0'
option apn 'darmowy'
option metric '30'firewall:
config defaults
option syn_flood '1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
option drop_invalid '1'
config zone
option name 'lan'
option network 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
config zone
option name 'wan'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
option network 'wan aero'mwan3:
config interface 'wan'
option enabled '1'
list track_ip '8.8.4.4'
list track_ip '8.8.8.8'
option reliability '1'
option count '1'
option interval '5'
option timeout '1'
option down '3'
option up '3'
config interface 'aero'
option enabled '1'
list track_ip '8.8.8.8'
list track_ip '8.8.4.4'
option reliability '1'
option count '1'
option timeout '2'
option interval '5'
option down '3'
option up '3'
config member 'wan_m1'
option interface 'wan'
option metric '1'
option weight '1'
config member 'wan_m2'
option interface 'wan'
option metric '2'
option weight '1'
config member '3g_m1'
option interface 'aero'
option metric '1'
option weight '2'
config member '3g_m2'
option interface 'aero'
option metric '2'
option weight '2'
config policy 'wan_only'
list use_member 'wan_m1'
config policy '3g_only'
list use_member '3g_m1'
config policy 'wan_3g_loadbalanced'
list use_member 'wan_m1'
list use_member '3g_m1'
config policy 'wan_pri_3g_sec'
list use_member 'wan_m1'
list use_member '3g_m2'
config rule
option proto 'all'
option use_policy '3g_only'
option dest_ip '178.239.142.103'
config rule
option dest_ip '0.0.0.0/0'
option use_policy 'wan_pri_3g_sec'Z góry dziękuję za pomoc ![]()