2009年1月15日 星期四

ubuntu 8.04 3G上網設定

Huawei Technologies Co., Ltd. E620 USB Modem

安裝驅動
下載驅動https://forge.betavine.net/frs/?group_id=12&release_id=26
Ubuntu Netbook Remix下的vodafone-mobile-connect_1.99.17-8_all.deb


終端機上執行順序如下:
1. apt-get install wvdial
2. gedit /etc/wvdial.conf

貼上如下:

[Dialer Defaults]
New PPPD = yes
Dial Command = ATDT
Dial Attempts = 1
Modem = /dev/ttyUSB0
Modem Type = Analog Modem
ISDN = 0
Baud = 115200
Username = user
Password = pass
Init1 = ATZ
Init2 = AT&F E1 V1 X1 &D2 &C1 S0=0
Phone = *99#
Stupid Mode = 1
Init3 =AT+CGDCONT=1,"IP","internet"

接著重開機(不確定要不要重開)

終端機上執行 wvdial Defaults

若成功會顯示

--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: AT&F E1 V1 X1 &D2 &C1 S0=0
AT&F E1 V1 X1 &D2 &C1 S0=0
OK
--> Sending: AT+CGDCONT=1,"IP","internet"
AT+CGDCONT=1,"IP","internet"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT 7200000
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Fri Jan 16 01:38:28 2009
--> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
--> --> PAP (Password Authentication Protocol) may be flaky.
--> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
--> --> CHAP (Challenge Handshake) may be flaky.
--> Pid of pppd: 13232
--> Using interface ppp0
--> pppd: ������[06][08]��[06][08]
--> pppd: ������[06][08]��[06][08]
--> pppd: ������[06][08]��[06][08]
--> pppd: ������[06][08]��[06][08]
--> pppd: ������[06][08]��[06][08]
--> local IP address 114.137.31.9
--> pppd: ������[06][08]��[06][08]
--> remote IP address 10.64.64.64
--> pppd: ������[06][08]��[06][08]
--> primary DNS address 168.95.1.1
--> pppd: ������[06][08]��[06][08]
--> secondary DNS address 168.95.192.1
--> pppd: ������[06][08]��[06][08]

就可以開始上網了...若要停用案ctrl+c

沒有留言:

張貼留言