Nic model: Huawei et128
System Version: fedora 10
1. First download and install usb_modeswitch:
# Wget http://www.draisberghof.de/usb_modeswitch/usb_modeswitch-1.0.2.tar.bz2
Decompress, compile, and install:
# Tar xjvf usb_modeswitch-1.0.2.tar.bz2
# Cd usb_modeswitch-1.0.2
# Make install
Then edit the configuration file usb_modeswitch.conf:
# Vi/etc/usb_modeswitch.conf
This configuration file contains the vast majority of wireless network card configuration information in the world, but there is no information about the Huawei et128 hardware (it may be relatively new), you need to manually add the following content
######################################
# Huawei et128
#
# Contributor: Dale Lane
Defaultvendor = 0x12d1
Defaultproduct = 0x1da1
(This should be changed based on lsusb output)
# Choose one of these:
Detachstorageonly = 0
Required weimode = 1
######################################
Note that the red part is the manufacturer information and hardware information. You can use the lsusb command to view the information:
# Lsusb
Bus 005 device 001: Id 1d6b: 0002 Linux Foundation 2.0 root Hub
Bus 004 device 002: Id 0b05: b700 Asustek Computer, Inc.
Bus 004 device 001: Id 1d6b: 0001 Linux Foundation 1.1 root Hub
Bus 003 device 001: Id 1d6b: 0001 Linux Foundation 1.1 root Hub
Bus 002 device 002: Id 04fc: 0003 Sunplus Technology Co., Ltd cm1092 optical scroller mouse
Bus 002 device 001: Id 1d6b: 0001 Linux Foundation 1.1 root Hub
Bus 001 device 012: Id 12d1: 1da1
Huawei Technologies Co., Ltd.
Bus 001 device 001: Id 1d6b: 0001 Linux Foundation 1.1 root Hub
2. After the configuration is complete, run the usb_modeswitch-W command to create the tty device.
# Usb_modeswitch-W
View the dmesg information. If a new ttyacmx is generated
The device indicates that the device is successful.
# Dmesg
Cdc_acm 1-2: 3. 1: ttyacm0
: Usb acm Device
Cdc_acm 1-2: 3. 3: ttyacm1
: Usb acm Device
Cdc_acm 1-2: 3. 5: ttyacm2
: Usb acm Device
3. Install the wvdail dialing tool from the source (it is said that it can be used in NetworkManager, but I have not configured it successfully. Please advise me)
# Yum install wvdial
Run wvdialconf to scan the hardware and generate the configuration file:
# Wvdialconf
Add the following dialing configuration information to the/etc/wvdial. conf configuration file:
;########################
Phone = * 99 *** 1 #
Password = any
Username = any
Stupid mode = 1
4. Dialing:
# Wvdial
--> Ignoring malformed input line :";########################"
--> Wvdial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing MODEM.
--> Sending: atz
Atz
OK
--> Sending: atq0 V1 E1 S0 = 0 & C1 & D2 + fclass = 0
Atq0 V1 E1 S0 = 0 & C1 & D2 + fclass = 0
^ Mode: 15
OK
--> Modem initialized.
--> Sending: atdt * 99 *** 1 #
--> Waiting for carrier.
Atdt * 99 *** 1 #
Connect 2800000
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Mon Jul 20 16:14:15 2009
--> PID of pppd: 3267
--> Using interface ppp0
--> Pppd: �� [06] [08] [10] �� [06] [08]
--> Pppd: �� [06] [08] [10] �� [06] [08]
--> Pppd: �� [06] [08] [10] �� [06] [08]
--> Pppd: �� [06] [08] [10] �� [06] [08]
--> Pppd: �� [06] [08] [10] �� [06] [08]
--> Local IP address 10.140.50.6
--> Pppd: �� [06] [08] [10] �� [06] [08]
--> Remote IP address 192.200.1.21
--> Pppd: �� [06] [08] [10] �� [06] [08]
--> Primary DNS address 221.130.33.60
--> Pppd: �� [06] [08] [10] �� [06] [08]
--> Secondary DNS address 221.130.33.52
--> Pppd: �� [06] [08] [10] �� [06] [08]
OK, go surfing, close crtl + c
Note:
The current Nic should be disabled first
For example, ifconfig eth0 down