Ubuntu8.04 deal with CDMA Internet access

Source: Internet
Author: User
Tags time 0
In fact, I worked in Ubuntu8.04 mainly to use Erlang to develop new things that will be ready to run on the platform in the future. When I was idle, I tried to toss various configurations on the ubuntu system, before going to bed at night, I got a new harvest. After the local area network is connected to the printer in the afternoon, the CDMAPCMCIA card is successfully configured for dial-up access. The general situation is as follows. # Sudoapt-getinstallsetserialpcmciautils (two tools are installed) # sudop

In fact, working in Ubuntu 8.04 mainly aims to use Erlang to develop new things that will be ready to run on the platform in the future. When I am idle, I try to toss various configurations on the ubuntu system, before going to bed at night, I got a new harvest.

After the local area network is connected to the printer in the afternoon, the cdma pcmcia card is successfully configured for dial-up Internet access. The general situation is as follows.

# Sudo apt-get install setserial pcmciautils (two tools are installed)
# Sudo pccartctl info (subcommands such as status, eject, and ls can also be used. For details, refer to man)
# Dmesg | grep tty (get something similar to the following)
[34.574046] 0.0: ttyS0 at I/O 0x3f8 (irq = 3) is a 16C950/954
We can know that ttyS0 is a CDMA card device. Continue with the subsequent operations.

# Sudo vim/etc/wvdial. conf enter the following content
[Modem0]
Modem =/dev/ttyS0
Baud = 57600
SetVolume = 1
Dial Command = ATDT
Init1 = ATZ
FlowControl = Hardware (CRTSCTS)

[Dialer Defaults]
Phone = #777
Username = card
Password = card
Stupid Mode = 1
Inherits = Modem0

Continue subsequent operations
# Sudo vim/var/lib/setserial/autoserial. conf (enter the following content)
/Dev/ttyS0 uart 16950/954 port 0x03f8 irq 3 baud_base 230400 spd_normal skip_test

Or you can run the following command without making the above modification, but you only need to run it once before each dial-up.
# Sudo setserial/dev/ttyS0 baud_base 230400)

Now, the configuration is complete and you can dial up.
# Sudo wvdial

The output content similar to the following indicates that the operation was successful. Otherwise, try again.
--> WvDial: Internet dialer version 1.60
--> Initializing modem.
--> Sending: ATZ
OK
--> Modem initialized.
--> Sending: ATDT #777
--> Waiting for carrier.
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Wed Aug 6 03:04:20 2008
--> Pid of pppd: 7610
--> Using interface ppp0
--> Pppd: �� [06] [08] �� [06] [08] [18] �� [06] [08]
--> Pppd: �� [06] [08] �� [06] [08] [18] �� [06] [08]
--> Pppd: �� [06] [08] �� [06] [08] [18] �� [06] [08]
--> Pppd: �� [06] [08] �� [06] [08] [18] �� [06] [08]
--> Pppd: �� [06] [08] �� [06] [08] [18] �� [06] [08]
--> Pppd: �� [06] [08] �� [06] [08] [18] �� [06] [08]
--> Local IP address 211.145.32.130
--> Pppd: �� [06] [08] �� [06] [08] [18] �� [06] [08]
--> Remote IP address 220.192.0.22
--> Pppd: �� [06] [08] �� [06] [08] [18] �� [06] [08]
--> Primary DNS address 220.192.0.131
--> Pppd: �� [06] [08] �� [06] [08] [18] �� [06] [08]
--> Secondary DNS address 220.192.8.58
--> Pppd: �� [06] [08] �� [06] [08] [18] �� [06] [08]

Do not close the window. Otherwise, the window will be disconnected. If you want to disconnect the window, press CTRL + C and you will see the following output:

Caught signal 2: Attempting to exit gracefully...
--> Terminating on signal 15
--> Pppd: �� [06] [08] �� [06] [08] [18] �� [06] [08]
--> Connect time 0.4 minutes.
--> Pppd: �� [06] [08] �� [06] [08] [18] �� [06] [08]
--> Pppd: �� [06] [08] �� [06] [08] [18] �� [06] [08]
--> Disconnecting at Wed Aug 6 03:04:41 2008
After connecting to the Internet, you can use ifconfig-a to check the network connection. You should be able to see the ppp0 network device parameters.

Note:
If the network still fails after the dial-up is successful, it may be caused by a default route problem. You can run the following command to solve the problem:
# Netstat-rn (view the current route table or use the route command)
# Route add default ppp0 (add default route)

Now it should all be done. I hope you will be as lucky as me!

Note: My CDMA card is a PANDA brand, which is a very common domestic product. You can see the following information through the pccardctl info command:

# Pccardctl info
PRODID_1 = "PANDA"
PRODID_2 = "CDMA"
PRODID_3 = "CARD"
PRODID_4 = "D"
MANFID = 0279,950 B
FUNCID = 2

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.