How to implement automatic dial-up Internet access in SuSE8.0
Source: Internet
Author: User
Article Title: how to implement automatic dial-up Internet access under SuSE8.0. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
I saw DSL in YaST, so I set it. when I started the machine, I saw that dsl0 was loaded. but why cannot I automatically connect it? In addition, if eth0 is set to DHCP, it takes a little time to detect the NIC. So I set it to an IP address, that is, 192.168.1.1. But I still cannot get through the dialing, which is strange. So I searched for ADSL help in YaST's help. after some exploration, I finally got online. So I want to write it down and share it with you. Masters should not laugh at your younger brother's potential, but I think someone will need it.
My input method is only handled by everyone. Otherwise, I cannot write Chinese posts here.
The method is as follows:
You need to modify the content of the three files in the/etc/ppp directory, which are:
(1) chap-secrets,
# Secrets for authentication using CHAP
# Client server secret IP addresses
# OUTBOUND CONNECTIONS
# Here you shoshould add your PPP Login and PPP password to connect to your
# Provider via pap. The * means that the entry (login and passoword may be
# Used for ANY host you connect.
# Thus you do not have to worry about the foreign machine name. Just
# Replace password with your password.
# Hostname * password
# PREDIFINED CONNECTIONS
# These are user and password entries for publically accessible call-by-call
# Internet providers in Germany. If they confict with your config, remove them.
# READ_IN_CALLBYCALL_SECRETS
# INBOUND CONNECTIONS
# Client hostname 192.168.1.1. However, if you have a machine in your Local and use an address, you cannot use it here .)
Your_account@xx.xx (your account) * xxxxxxx (your password) remember the middle * don't delete it.
The settings in pap-secrets are exactly the same as those above. I will omit it.
----------------------------------------------------------------------------------
(2) setting options to find a file is very important. The following is the full text, and a small part is the annotation, so I will not write it.
#/Etc/ppp/options
#
# Not every option is listed here, see man pppd for more details.
# This file is read by the pppd,
# It is an error when it is not present.
#
# Use the following command to see the active options:
#
# Grep-v ^ #/etc/ppp/options | grep-v ^ $
#
#--- ---
# The name of this server. Often, the FQDN is used here.
# Name
#===================================================== ======================================
User your_account@xxx.xx (pay attention to the previous user, do not miss it, the backdoor is followed by the one you used before .)
#===================================================== ======================================
# Enforce the use of the hostname as the name of the local system
# Authentication purposes (overrides the name option ).
# Usehostname
# If no local IP address is given, pppd will use the first IP address
# That belongs to the local hostname. If "noipdefault" is given, this
# Is disabled and the peer will have to supply an IP address.
# Noipdefault
# With this option, pppd will accept the peer's idea of our local IP
# Address, even if the local IP address was specified in an option.
# Ipcp-accept-local
# With this option, pppd will accept the peer's idea of its (remote) IP
# Address, even if the remote IP address was specified in an option.
# Ipcp-accept-remote
# Run the executable or shell command specified after pppd has terminated
# The link. This script cocould, for example, issue commands to the modem
# To cause it to hang up if hardware modem control signals were not
# Available.
# If mgetty is running, it will reset the modem anyway. So there is no need
# To do it here.
# Disconnect "chat -- \ d ++ \ d \ c OK ath0 OK"
# Increase debugging level (same as-d). The debug output is written
# To syslog LOG_LOCAL2.
Debug
# Enable debugging code in the kernel-level PPP driver. The argument n
# Is a number which is the sum of the following values: 1 to enable
# General debug messages, 2 to request that the contents of stored Ed
# Packets be printed, and 4 to request that the contents of transmitted
# Packets be printed.
# Kdebug n
# Noauth means do not require the peer to authenticate itself, this must
# Be set if you want to use pppd to connect to the internet. In this case
# * You * must authenicate yourself to the peer (internet provider), so do
# Not disable this setting unless you are the dial-in server which where
# The peer has to autenticate.
Noauth
# Use hardware flow control (I. e. RTS/CTS) to control the flow of data
# On the serial port.
Crtscts
# Specifies that pppd shoshould use a UUCP-style lock on the serial device
# To ensure exclusive access to the device.
Lock
# Use the modem control lines. (is default)
# Modem (comment it out, which is enabled by default)
# The opposite: local
#
# Description:
# Don't use the modem control lines. With this
# Option, pppd will ignore the state of the CD (Car ??
# Rier Detect) signal from the modem and will not
# Change the state of the DTR (Data Terminal Ready)
# Signal.
#
# You need to disable modem and enable local if you want to connect
# To anoter system without using a modem:
Local (add this)
# Async character map -- 32-bit hex; each bit is a character
# That needs to be escaped for pppd to receive it. 0 x0 00000001
# Represents '\ x01', and 0x80000000 represents '\ x1f '.
# To allow pppd to work over a rlogin/telnet connection, ou shoshould escape
# XON (^ Q), XOFF (^ S) and ^]: (The peer shocould use "escape ff ".)
# Asyncmap 200a0000
Asyncmap 0
# Needed for some ISDN Terminaladaters, namely ELSA, those seem to have
# Problems with asyncmap negotiation, so you can turn off this procedure
# In case your ISDN box has trouble with it, by enabling this option.
# You have to disable the asyncmap Option to be sure to have it
# Active. If you use wvdial, set the ISDN parameter in/etc/wvdial. conf
# Instead.
# Default-asyncmap
# Set the MRU [Maximum Receive Unit] value For negotiation. pppd
# Will ask the peer to send packets of no more Bytes.
# Minimum MRU value is 128. The default MRU value is 1500. A value
#296 is recommended for slow links (40 bytes for TCP/IP header + 256
# Bytes of data). The value 1492 is for DSL connections (PPP Default-
# PPPoE Header: 1500-8 = 1492)
Mru 1492 (add one)
# Set the MTU [Maximum Transmit Unit] value . Unless the peer
# Requests a smaller value via MRU negotiation, pppd will request that
# The kernel networking code send data packets of no more than n bytes
# Through the PPP network interface. The value 1492 is for DSL connections
# (PPP Default-PPPoE Header: 1500 to 8 = 1492)
Mtu 1492 (add one for finding one)
# Set the interface netmask , A 32 bit netmask in "decimal dot"
# Notation (e.g. 255.255.255.0 ).
# Netmask 255.255.255.0
# Don't fork to become a background process (otherwise pppd will do so
# If a serial device is specified ).
Nodetach
# If this option is given, pppd will send an LCP echo-request frame
# The peer every n seconds. Under Linux, the echo-request is sent when
# No packets have been stored ed from the peer for n seconds. Normally
# The peer shoshould respond to the echo-request by sending an echo-reply.
# This option can be used with the lcp-echo-failure option to detect
# That the peer is no longer connected.
Lcp-echo-interval 30
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