https://www.youtube.com/watch?v=mbvCr0BRNXY
Jak skonfigurować połączenie internetowe na modemie Huawei E3272 pod dowolnym Linuxem
Wymagania : w linuxie dostępne programy „lsusb”, „usb_modeswitch”, „wvdial”. Oczywiście poniższe komendy z poziomu root ( czyli najpierw "sudo -s" )
1) komenda LSUSB podaje identyfikator modemu USB ( 12d1:14fe) dla HUAWEI E3272
Kod: Zaznacz cały
lsusb
/etc/usb_modeswitch.d/12d1:14fe
zawartość pliku :
Kod: Zaznacz cały
########################################################
# Huawei e3272
DefaultVendor=0x12d1
DefaultProduct=0x14fe
TargetVendor=0x12d1
TargetProduct=0x1506
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
plik /etc/wvdial.conf
Kod: Zaznacz cały
[Dialer orange]
Modem = /dev/ttyUSB0
Phone = *99#
Username =;
Password =;
Init1 = ATZ
Init2 = AT+CPIN=1111
Init3 = AT+CGDCONT=1,"IP","internet","",0,0
Auto DNS = on
/etc/resolv.conf
Kod: Zaznacz cały
nameserver 217.116.100.100
nameserver 217.116.104.104
Kod: Zaznacz cały
hp655:/home/adam # wvdial orange
--> WvDial: Internet dialer version 1.60
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: AT+CPIN=1111
AT+CPIN=1111
OK
--> Sending: AT+CGDCONT=1,"IP","internet","",0,0
AT+CGDCONT=1,"IP","internet","",0,0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected. Waiting for prompt.
--> Don't know what to do! Starting pppd and hoping for the best.
--> Starting pppd at Sat Oct 25 15:45:42 2014
--> Pid of pppd: 23933
--> Using interface ppp0
--> pppd: [7f]
--> pppd: [7f]
--> pppd: [7f]
--> pppd: [7f]
--> pppd: [7f]
--> local IP address 10.253.97.164
--> pppd: [7f]
--> remote IP address 10.64.64.64
--> pppd: [7f]
--> primary DNS address 217.116.100.100
--> pppd: [7f]
--> secondary DNS address 217.116.104.104
--> pppd: [7f]
--> Script /etc/ppp/ip-up run successful
--> Default route Ok.
--> warning, no nameserver found `/etc/resolv.conf`
--> Nameserver (DNS) failure, the connection may not work.
--> Connected... Press Ctrl-C to disconnect
--> pppd: [7f]