30.11.2012 Views

Linux Networking Clearly Explained - lions-wing.net

Linux Networking Clearly Explained - lions-wing.net

Linux Networking Clearly Explained - lions-wing.net

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 1 • CREATING A DIAL-UP INTERNET CONNECTION 39<br />

Dialer, specifies the settings for a given PPP connection,<br />

including the phone number, username, and password.<br />

You can create two or more such sections if you wish.<br />

The follo<strong>wing</strong> illustrates a typical wvdial configuration in<br />

/etc/wvdial.conf:<br />

[Dialer Defaults]<br />

Modem = /dev/ttyS1<br />

Baud = 115200<br />

Init1 = ATZ<br />

Init2 = ATQ0 V1 E1 SO=0 &C1 &D2 S11=55<br />

SetVolume = 1<br />

Dial Command = ATDT<br />

[Dialer MyConnection]<br />

Username = suzanne<br />

Password = ilw2mfc<br />

Phone = 555-1212<br />

Dial Prefix = 9,,<br />

Area Code = 800<br />

This configuration dials 9, waits two seconds, and then<br />

dials 800-555-1212. When the ISP responds, it supplies<br />

the username suzanne and the password ilw2mfc, and<br />

establishes the connection using the ISP’s preferred<br />

authentication method.<br />

Figuring Out Whether You Are Online: Ping<br />

If you are trying to figure out whether you are really connected<br />

to the Inter<strong>net</strong>, try this. Open a terminal window,<br />

type ping followed by a space and the IP address of your<br />

ISP’s DNS server, and press Enter. This utility sends information<br />

to the specified server and requests a response. If<br />

the server responds, you will see the response on the

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!