NHỮNG CÂU HỎI THƯỜNG GẶP VỀ LINUX - Trang 54

Những câu hỏi thường gặp về Linux

auth

crtscts

lock

noipx

# ---

<End of File>---

The options may be given on one line or each on a separate line. Many options files are much longer,
và come with a description of each option. Here, the options mean, in order, don’t remap any
characters between the PPP client và server; always use password, PAP, or CHAP authentication
when making a connection; use the modem’s hardware handshake lines for flow control; lock the
serial port when in use so no other programs can access it; và do not use the IPX network protocol.

For connection set-up on each individual serial port or PPP host, there will either be an
[/etc/ppp/options.ttyS1], for example, options file for [/etc/ttyS1], or a file for your ISP in the
[/etc/ppp/peers] directory. The default is often called [/etc/ppp/peers/provider]. Here is a sample of
the default [provider] file:

noauth

connect "/usr/sbin/chat -v -f /etc/chatscripts/provider"

defaultroute

/dev/ttyS1

38400

persist

There might be an explanation of these và other options in the [/etc/ppp/peers/provider] file itself. You
can also refer to the pppd manual page for details. Briefly, they mean: do not use PAP authentication
for this connection; use the chat program và the [/etc/chatscripts/provider] script, which is described
above, to dial the phone và log in; set the network default route to the PPP connection (so when your
network software needs to resolve an network address that is not on your local machine(s), it will use
the PPP connection to the Internet); use

/dev/ttyS1

as the serial port for the connection; set the

modem speed to 38400; và keep the pppd daemon running even if the connection fails.

That is all of the configuration you need. To actually start và stop PPP, there are often [/usr/bin/pon] và
[/usr/bin/poff] scripts (in Debian), or something similar, và they are usually very simple, và only contain
the command:

$ /usr/sbin/pppd call ${1:-provider}

This will start pppd và use the

call

option to call the server that you type on the command line, or the

provider given in the [/etc/ppp/peers/provider] file if you do not specify a remote server. After making
the call và logging in (about 30 seconds), you should be able to use the [/sbin/ifconfig] program to
determine that the connection really did establish a PPP interface (the first will be [ppp0], the second
will be [ppp1], etc., depending on how many simultaneous PPP connections you have. If something
goes wrong, you can look tại the [/var/log/ppp.log] file to determine what happened. You can also view
the log as the connection is being made, bởi “tailing” it in another window; that is, viewing it as pppd
logs the connection’s status information. To do this, use the command (again, as root):

53

Liên Kết Chia Sẽ

** Đây là liên kết chia sẻ bới cộng đồng người dùng, chúng tôi không chịu trách nhiệm gì về nội dung của các thông tin này. Nếu có liên kết nào không phù hợp xin hãy báo cho admin.