ifdown wan
ifup HSDPA
HSDPA
config interface 'HSDPA'
option proto '3g'
option device '/dev/ttyUSB0'
option apn 'internet'
option username 'internet'
option password 'internet'
ifconfig
root@Gargoyle:~# ifconfig
3g-HSDPA Link encap:Point-to-Point Protocol
inet addr:10.178.26.241 P-t-P:10.64.64.64 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:27 errors:0 dropped:0 overruns:0 frame:0
TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1961 (1.9 KiB) TX bytes:1814 (1.7 KiB)
br-lan Link encap:Ethernet HWaddr 64:70:02:E2:A5:E6
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::6670:2ff:fee2:a5e6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5047627 errors:0 dropped:0 overruns:0 frame:0
TX packets:3650358 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4820131849 (4.4 GiB) TX bytes:4776024311 (4.4 GiB)
eth0 Link encap:Ethernet HWaddr 64:70:02:E2:A5:E6
inet6 addr: fe80::6670:2ff:fee2:a5e6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:98878813 errors:0 dropped:99 overruns:4 frame:0
TX packets:93105012 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2971085665 (2.7 GiB) TX bytes:2327708696 (2.1 GiB)
Interrupt:4
eth0.1 Link encap:Ethernet HWaddr 64:70:02:E2:A5:E6
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5067155 errors:0 dropped:0 overruns:0 frame:0
TX packets:3667006 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4823277541 (4.4 GiB) TX bytes:4785667099 (4.4 GiB)
eth0.2 Link encap:Ethernet HWaddr 64:70:02:E2:A5:E6
inet addr:192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::6670:2ff:fee2:a5e6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:43624 errors:0 dropped:0 overruns:0 frame:0
TX packets:17455 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3298983 (3.1 MiB) TX bytes:1828535 (1.7 MiB)
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:406180 errors:0 dropped:0 overruns:0 frame:0
TX packets:406180 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:25252839 (24.0 MiB) TX bytes:25252839 (24.0 MiB)
wlan0 Link encap:Ethernet HWaddr 64:70:02:E2:A5:E7
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4236 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:1064500 (1.0 MiB)
root@Gargoyle:~#
route
root@Gargoyle:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.64.64.64 0.0.0.0 UG 0 0 0 3g-HSDPA
10.64.64.64 * 255.255.255.255 UH 0 0 0 3g-HSDPA
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0.2
192.168.1.0 * 255.255.255.0 U 0 0 0 br-lan
root@Gargoyle:~#
dla testu
ping
root@Gargoyle:~# ping google.pl -c3
PING google.pl (173.194.70.94): 56 data bytes
64 bytes from 173.194.70.94: seq=0 ttl=45 time=214.799 ms
64 bytes from 173.194.70.94: seq=1 ttl=45 time=235.137 ms
64 bytes from 173.194.70.94: seq=2 ttl=45 time=236.165 ms
--- google.pl ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 214.799/228.700/236.165 ms
root@Gargoyle:~#