The document provides steps to connect to the internet using a Huawei K3772 modem under Linux. It involves installing usb_modeswitch to switch the modem to modem mode, checking that the modem is recognized after plugging it in, creating a script to switch modes, installing wvdial for dial-up connection, editing the wvdial configuration file, starting the connection, and stopping NetworkManager to avoid conflicts. Useful links are also provided.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
117 views5 pages
Vodafone Stick Huawei Under Linux
The document provides steps to connect to the internet using a Huawei K3772 modem under Linux. It involves installing usb_modeswitch to switch the modem to modem mode, checking that the modem is recognized after plugging it in, creating a script to switch modes, installing wvdial for dial-up connection, editing the wvdial configuration file, starting the connection, and stopping NetworkManager to avoid conflicts. Useful links are also provided.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 5
Huawei modem K3772 (Vodafone) installation
under Linux operating systems
The tests were made on Red Hat Enterprise Linux Workstation release 6.4 , kernel 2.6.32- 3!."".".el6.x!6#64. $%s.& The internet sti'k Huawei (3))2 has two operatin* modes& +,- ,tora*e and .odem. /or swit'hin* %etween those two modes we will use an appli'ation& usb_modeswitc! ,teps 0or 'onne'tin* to internet usin* Huawei K3772 " ". 1nstall us%#modeswit'h 23aution & all 'ommands must %e exe'uted 0rom the 'onsole with root pri4ile*es56 & - 'he'k i0 us%#modeswit'h is not alread7 installed 8rpm -9a us%#modeswit'h - i0 su''ess0ul the 'urrent 4ersion will %e returned - i0 ne'essar7, up*rade it& 87um up*rade us%#modeswit'h - i0 no pa'ka*e was 0ound, install it& 87um install us%#modeswit'h 2. :0ter su''ess0ull7 installin* the us%#modeswit'h we will ha4e some new 0iles& - exe'uta%le 0ile& #usr#sbin#usb_modeswitc - a dire'tor7 with 0iles 'ontainin* details 0or multiple de4i'es needed %7 us%#modeswit'h 0or swit'hin* to modem role& #etc#usb_modeswitc!d#! $he 0ile needed %7 :n7;ata :;+-"<l it=s& #etc#usb_modeswitc!d#%&c'"(%%%"u)a*+ny,+$+- and has the 0ollowin* 'ontent& 3. >lu* the modem in the +,- port, wait 0or %oth LE;s to turn on and 'he'k i0 +ny,ata +,./&(%l modem was re'o*ni?ed %7 Linux& - 'he'k us% de4i'es installed in the s7stem& - wait 0or " minute and issue the lsub 'ommand a*ain and 'he'k i0 7ou ha4e the same output. 10 not, *o to step 6. - a0ter plu**in* the us% modem, 'he'k #sys#bus#usb#de0ices 0or the newest entr7 @ in our 'ase it is& #sys#bus#usb#de0ices#(/(& 4. 3reate an exe'uta%le 0ile& #tmp#clic1net with the 0ollowin* 'ontent 2the path #sys#bus#usb#de0ices#(/(#power#le0el was determined in the pre4ious step, and 'an di00er, dependin* on the a4aila%le +,- port6& - when 'reatin* a new 0ile, it=s not exe'uta%le %7 de0ault. 1n our 'ase the ri*hts 0or the 0ile are& 644 2userArw-, *roupAr--, otherAr--6 -make the 0ile #tmp#clic1net exe'uta%le 2an x will %e displa7ed 0or user in the 0ile des'ription6& - i0 the exe'ution o0 BtmpB'li'knet han*s, press 3trlC3, unplu* the modem and *o to step . . :0ter exe'utin* #tmp#clic1net, 'he'k a*ain 0or the installed +,- de4i'es& - at this moment +ny,ata modem +,./&(%l is seen %7 $, as a modem, and not as a +,- ,tora*e as it was %7 de0ault - i0 the hi*hli*hted result 0rom the pi'ture a%o4e it=s not re0le'ted in 7our terminal, *o %a'k to step 3. 6. 1nstall w0dial 2>oint-to->oint >roto'ol dialer6& 87um install w4dial -when W4;ial starts it 0irst loads the 'on0i*uration 0rom #etc#w0dial!conf -w4dial'on0 will pro%e the 'omm ports, lookin* 0or a modem and determine the 'apa%ilities o0 an7 modem it 0inds. The results will %e sa4ed in the 0ile spe'i0ied as a parameter when in4okin* w4dial'on0 8w4dial'on0 Bet'Bw4dial.'on0 -edit #etc#w0dial!conf& 2one- .sername- 2assword items with the 4alues as in the pi'ture %ellow! :ll other 0ields where automati'all7 0illed %7 w4dial'on0 'ommand. ). Run w4dial in a terminal 2do not 'lose this terminal6& 8w4dial !. ,top Detwork.ana*er ser4i'e& 8ser4i'e Detwork.ana*er stop E. ,et the ;D, ,er4ers %7 addin* two lines in the #etc#resol0!conf 0ile. :ll the other lines will %e 'ommented %7 pla'in* a 3 si*n at the %e*innin* o0 ea'h line. "<. :dd a new route, %7 settin* as de0ault *atewa7 the remote ip address o0 the ppp< 'onne'tion& 8route add de0ault *w "<."33.6."<" ppp< "". To end the internet 'onne'tion press 4trl54 in the terminal opened in step ). "2. :0ter restart, the network settin* will %e lost and will re4ert to pre4iousl7 settin*s. +se0ul links& - Romtele'om *uides 2tested onl7 on ;e%ian @ partiall7 applies to RedHat also6. http&BBwww.romtele'om.roBasistentaBasistenta-internetBdri4ere-setari - 0orum a%out 'on0i*urin* 'li'knet mo%ile on Linux. http&BB'li'knet-mo%ile-linux.%lo*spot.roB - o00i'ial we%site 0or us%#modeswit'h appli'ation http&BBwww.drais%er*ho0.deBus%#modeswit'h -'he'kin* dependen'ies& us%#modeswit'h, - lsus% F produ't 1;, 4endor 1; us%#modeswit'h persistent rule& /lib/udev/rules.d/40-usb_modeswithc.rules Bet'Bus%#modeswit'h.dB"2d"&"26 ude4 stati' namin* ll -a Bde4 G *rep tt7+,- - udevadm info -a -n /dev/ttyUSB0/1/2/ ! e"tract the necessary information /etc/udev/rules.d/#2-tty-serial.rules udevadm control $reload-rules / udevadm tri%%er /etc/wvdial.conf wvdial sto& 'etwor()ana%er default %w