Odp: TL-MR3220 + luci + 3x 3G - jak bez extroot ?
ifconfig i zobacz czy masz oba interfejsy podniesione.
Nie jesteś zalogowany. Proszę się zalogować lub zarejestrować.
eko.one.pl → Oprogramowanie / Software → TL-MR3220 + luci + 3x 3G - jak bez extroot ?
Strony Poprzednia 1 2
Zaloguj się lub zarejestruj by napisać odpowiedź
ifconfig i zobacz czy masz oba interfejsy podniesione.
A czy odpaliłeś 2xaero ?
opkg update
opkg install kmod-usb-core kmod-usb2 kmod-usb-serial kmod-usb-serial-option usb-modeswitch usb-modeswitch-data libusb chat comgt luci-proto-3g
opkg install multiwan
opkg install luci-app-multiwan
ewentualnie : opkg install -nodeps mwan3 (http://213.136.13.52/mwan3_1.1-6_ar71xx.ipk)
opkg install -nodeps luci-app-mwan3 (http://213.136.13.52/luci-app-mwan3_0.1-1_ar71xx.ipk)
Do etc/config/network wkleić zamiast wan :
config interface 'wan1'
option _orig_ifname 'eth1'
option _orig_bridge 'false'
option proto '3g'
option device '/dev/ttyUSB0'
option service 'umts_only'
option apn 'darmowy'
config interface 'wan2'
option proto '3g'
option device '/dev/ttyUSB3'
option service 'umts_only'
option apn 'darmowy'
/etc/config/multiwan (mwan3) ma tak wyglądać :
config multiwan 'config'
option enabled '1'
option default_route 'fastbalancer'
config interface 'wan1'
option weight '10'
option icmp_hosts 'dns'
option timeout '3'
option health_fail_retries '3'
option health_recovery_retries '5'
option dns 'auto'
option health_interval '5'
option failover_to 'fastbalancer'
config interface 'wan2'
option weight '10'
option timeout '3'
option health_fail_retries '3'
option health_recovery_retries '5'
option health_interval '5'
option dns 'auto'
option icmp_hosts 'dns'
option failover_to 'fastbalancer'
config mwanfw
option wanrule 'fastbalancer'
config mwanfw
option wanrule 'fastbalancer'
config mwanfw
option wanrule 'fastbalancer'
(Nie wiem po co jest trzy razy ten sam config mwanfw.)
/etc/config/firewall
config defaults
option syn_flood 1
option input DROP
option output ACCEPT
option forward REJECT
config zone
option name lan
option network 'lan'
option input ACCEPT
option output ACCEPT
option forward REJECT
config zone
option name wan
option network 'wan1 wan2'
option input REJECT
option output ACCEPT
option forward REJECT
option masq 1
option mtu_fix 1
config forwarding
option src lan
option dest wan
Na tym działają dwa modemy nawet w hubie pasywnym, sprawdzałem na dwóch routerach tl-mr3220 i edimax3g-6200n - tylko działanie pozostawia wiele do życzenia...
Wydaje mi się, że oba wan2 i wan3:
3g-wan2 Link encap:Point-to-Point Protocol
inet addr:151.248.34.188 P-t-P:10.64.64.64 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:464 (464.0 B) TX bytes:182 (182.0 B)
3g-wan3 Link encap:Point-to-Point Protocol
inet addr:37.209.135.69 P-t-P:10.64.64.65 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1438 (1.4 KiB) TX bytes:216 (216.0 B)
br-lan Link encap:Ethernet HWaddr F4:EC:38:F8:5D:B9
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:526 errors:0 dropped:0 overruns:0 frame:0
TX packets:573 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:82404 (80.4 KiB) TX bytes:215889 (210.8 KiB)
eth0 Link encap:Ethernet HWaddr F4:EC:38:F8:5D:B9
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:5
eth1 Link encap:Ethernet HWaddr F4:EC:38:F8:5D:BB
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:4
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4201 errors:0 dropped:0 overruns:0 frame:0
TX packets:4201 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:285412 (278.7 KiB) TX bytes:285412 (278.7 KiB)
wlan0 Link encap:Ethernet HWaddr F4:EC:38:F8:5D:BA
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:524 errors:0 dropped:0 overruns:0 frame:0
TX packets:612 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:32
RX bytes:89728 (87.6 KiB) TX bytes:232557 (227.1 KiB)
@grisha
Próbowałem na tych ustawieniach wcześniej i teraz (z multiwan).
Co bym nie zrobił, mam:
Mar 17 12:02:23 OpenWrt user.notice multiwan: Succesfully Initialized on Sun, 17 Mar 2013 12:02:23 +0100.
Mar 17 12:02:24 OpenWrt user.notice multiwan: wan1 has failed and is currently offline.
Mar 17 12:02:24 OpenWrt user.notice multiwan: wan2 has failed and is currently offline.
A w LuCi oba wan są niby podniesione.
Natomiast Gargoyle startuje natychmiast, bez najmniejszego problemu, ale tylko na 1 modem ![]()
Dlatego odpal 2xaero najpierw właśnie na Gargoyle...
Cezary, Gargoyle to Twoje w dużej mierze dzieło, proszę o pomoc !
Na Gargoyle doinstalowałem mwan3.
wan2 wstało bez problemów, natomiast wan1 is down: device ttyUSB0 is locked by pid 3267
moje konfigi:
3gtester.sh:
if ! ping -q -c 1 -W 10 -I 3g-wan1 8.8.8.8 > /dev/null; then
(ifup wan1; sleep 5; /etc/init.d/mwan3 restart) &
fi
if ! ping -q -c 1 -W 10 -I 3g-wan2 8.8.8.8 > /dev/null; then
(ifup wan2; sleep 5; /etc/init.d/mwan3 restart) &
fi
root@Gargoyle:~# cat /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 type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ifname 'eth0 eth1'
option dns '192.168.100.1'
option ipaddr '192.168.100.1'
config interface 'wan1'
option _orig_ifname 'eth1'
option _orig_bridge 'false'
option auto '1'
option proto '3g'
option device '/dev/ttyUSB0'
option apn 'darmowy'
option service 'umts_only'
option mobile_isp 'Polska - Aero2'
config interface 'wan2'
option auto '1'
option proto '3g'
option device '/dev/ttyUSB0'
option apn 'darmowy'
option service 'umts_only'
option mobile_isp 'Polska - Aero2'
config switch
option name 'eth0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'eth0'
option vlan '1'
option ports '0 1 2 3 4'
root@Gargoyle:~# cat /etc/config/firewall
config defaults
option syn_flood '1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
config zone
option name 'lan'
option network 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
config zone
option name 'wan'
option network 'wan1 wan2'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
config forwarding
option src 'lan'
option dest 'wan'
config rule
option name 'Allow-DHCP-Renew'
option src 'wan'
option proto 'udp'
option dest_port '68'
option target 'ACCEPT'
option family 'ipv4'
config rule
option name 'Allow-Ping'
option src 'wan'
option proto 'icmp'
option icmp_type 'echo-request'
option family 'ipv4'
option target 'ACCEPT'
config rule
option name 'Allow-DHCPv6'
option src 'wan'
option proto 'udp'
option src_ip 'fe80::/10'
option src_port '547'
option dest_ip 'fe80::/10'
option dest_port '546'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-ICMPv6-Input'
option src 'wan'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
list icmp_type 'router-solicitation'
list icmp_type 'neighbour-solicitation'
list icmp_type 'router-advertisement'
list icmp_type 'neighbour-advertisement'
option limit '1000/sec'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-ICMPv6-Forward'
option src 'wan'
option dest '*'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
option limit '1000/sec'
option family 'ipv6'
option target 'ACCEPT'
config include
option path '/etc/firewall.user'
config include
option path '/usr/lib/gargoyle_firewall_util/gargoyle_additions.firewall'
root@Gargoyle:~# cat /etc/config/mwan3
nfig multiwan 'config'
option enabled '1'
option default_route 'fastbalancer'
config interface 'wan1'
option weight '10'
option icmp_hosts 'dns'
option timeout '3'
option health_fail_retries '3'
option health_recovery_retries '5'
option dns 'auto'
option health_interval '5'
option failover_to 'fastbalancer'
config interface 'wan2'
option weight '10'
option timeout '3'
option health_fail_retries '3'
option health_recovery_retries '5'
option health_interval '5'
option dns 'auto'
option icmp_hosts 'dns'
option failover_to 'fastbalancer'
config mwanfw
option wanrule 'fastbalancer'
config mwanfw
option wanrule 'fastbalancer'
config mwanfw
option wanrule 'fastbalancer'
root@Gargoyle:~#
A zapomniałem
ps powiedział, że:
3267 root 1536 S /usr/sbin/pppd nodetach ipparam wan2 ifname 3g-wan2 nodefaultroute usepeerdns persist maxfail 1 connect USE_APN=darmowy /usr/sbin/chat -t5 -v -E -f /etc/chatscr
Ale wan2 mam połączony, to wan1 wisi... nic nie rozumiem.
logread:
Mar 17 15:22:06 Gargoyle daemon.notice pppd[19343]: pppd 2.4.5 started by root, uid 0
Mar 17 15:22:06 Gargoyle daemon.notice pppd[19343]: Device ttyUSB0 is locked by pid 3267
Mar 17 15:22:06 Gargoyle daemon.info pppd[19343]: Exit.
Mar 17 15:22:06 Gargoyle daemon.notice netifd: Interface 'wan1' is now down
i tak w kółko...
Przecież masz w obu sekcjach zdefiniowane /dev/ttyUSB0, nie widzisz?
Taki filmik znalazłem : http://www.youtube.com/watch?v=oNLss7btnP4
Jak będzie przydatny to proszę łopatologicznie przełożyć na nasze 3g.
Strony Poprzednia 1 2
Zaloguj się lub zarejestruj by napisać odpowiedź
eko.one.pl → Oprogramowanie / Software → TL-MR3220 + luci + 3x 3G - jak bez extroot ?
Forum oparte o PunBB, wspierane przez Informer Technologies, Inc