Moxa DA-681A-I-DPP-T-LX Руководство пользователя Linux онлайн [31/79] 170400

Moxa DA-681A-I-DPP-T-LX Руководство пользователя Linux онлайн [31/79] 170400
DA-681A Series Linux Managing Communications
3-15
# other accounts that should not be able to use pppd!
guest hostname "*" -
master hostname "*" -
root hostname "*" -
support hostname "*" -
stats hostname "*" -
# OUTBOUND connections
username@hinet.net is the username obtained from the ISP to log in to the ISP account. password is the
corresponding password for the account.
5. Edit the file /etc/ppp/options and add the following line:
plugin rp-pppoe
# received. Note: it is not advisable to use this option with the persist
# option without the demand option. If the active-filter option is given,
# data packets which are rejected by the specified activity filter also
# count as the link being idle.
#idle <n>
# Specifies how many seconds to wait before re-initiating the link after
# it terminates. This option only has any effect if the persist or demand
# option is used. The holdoff period is not applied if the link was
# terminated because it was idle.
#holdoff <n>
# Wait for up n milliseconds after the connect script finishes for a valid
# PPP packet from the peer. At the end of this time, or when a valid PPP
# packet is received from the peer, pppd will commence negotiation by
# sending its first LCP packet. The default value is 1000 (1 second).
# This wait period only applies if the connect or pty option is used.
#connect-delay <n>
# Load the pppoe plugin
plugin rp-pppoe.so
# ---<End of File>---
6. If you use LAN1 to connect to the ADSL modem, add file /etc/ppp/options.eth0. If you use LAN2 to
connect to the ADSL modem, then add /etc/ppp/options.eth1, etc.
name username@hinet.net
mtu 1492
mru 1492
defaultroute
noipdefault
~
~
"/etc/ppp/options.eth0" 5 lines, 67 characters
Type your username (the one you set in the /etc/ppp/pap-secrets and /etc/ppp/chap-secrets files)
after the name option. You may add other options as desired.
7. Set up DNS.
If you are using DNS servers supplied by your ISP, edit the file /etc/resolv.conf by adding the following
lines of code:

Содержание

Скачать