⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setup

📁 经典的ppp程序
💻
字号:
		Configuring a PPP link.After you have compiled and installed this package, there are someconfiguration files which will generally need to be set up.  Thepppd(8) man page is the best reference for the full details; this fileoutlines the configuration process for the most common case, wherethis package is being used to enable a machine to dial an ISP andconnect to the internet.  The FAQ and README.linux files also provideuseful information about setting up PPP.Dialling an ISP.****************Usually, an ISP will assign an IP address to your machine, and willrefuse to authenticate itself to you.  Some ISPs require a usernameand password to be entered before PPP service commences, while othersuse PPP authentication (using either the PAP or CHAP protocols).The recommended way to set up to dial an ISP is for the systemadministrator to create a file under /etc/ppp/peers, named for the ISPthat you will be dialling.  For example, suppose the file is called/etc/ppp/peers/isp.  This file would contain something like this:cua0		# modem is connected to /dev/cua038400		# run the serial port at 38400 baudcrtscts		# use hardware flow controlnoauth		# don't require the ISP to authenticate itselfdefaultroute	# use the ISP as our default routeconnect '/usr/sbin/chat -v -f /etc/ppp/chat-isp'If there are any other pppd options that should apply when callingthis ISP, they can also be placed in this file.The /etc/ppp/chat-isp file named in the last line contains the scriptfor chat(8) to use to dial the ISP and go through any username/password authentication required before PPP service starts.  Here isan example (for dialling an Annex terminal server):ABORT "NO CARRIER"ABORT "NO DIALTONE"ABORT "ERROR"ABORT "NO ANSWER"ABORT "BUSY"ABORT "Username/Password Incorrect""" "at"OK "at&d2&c1"OK "atdt2479381""name:" "^Uusername""word:" "\qpassword""annex" "ppp""Switching to PPP-ppp-Switching to PPP"See the chat(8) man page for details of the script.  If you are notsure how the initial dialog with your ISP will go, you could usea terminal emulator such as kermit or minicom to go through theprocess manually.If your ISP requires PAP or CHAP authentication, you will have tocreate a line in /etc/ppp/pap-secrets or /etc/ppp/chap-secrets likethis:myhostname	*	"password"(Replace myhostname with the hostname of your machine.)At this point, you can initiate the link with the command:/usr/sbin/pppd call isp(N.B.: pppd might be installed in a different directory on somesystems).This will return to the shell prompt immediately, as pppd will detachitself from its controlling terminal.  (If you don't want it to dothis, use the "nodetach" option.)Pppd will log messages describing the progress of the connection andany errors using the syslog facility (see the syslogd(8) andsyslog.conf(5) man pages).  Pppd issues messages using syslog facilitydaemon (or local2 if it has been compiled with debugging enabled);chat uses facility local2.  It is often useful to see messages ofpriority notice or higher on the console.  To see these, find the linein /etc/syslog.conf which has /dev/console on the right-hand side, andadd `daemon.notice' on the left.  This line should end up somethinglike this:*.err;kern.debug;daemon,local2,auth.notice;mail.crit	/dev/consoleIf you want to see more messages from pppd, request messages ofpriority info or higher for facility daemon, like this:*.err;kern.debug;daemon.info;local2,auth.notice;mail.crit  /dev/consoleIt is also useful to add a line like this:daemon,local2.debug		/etc/ppp/ppp-logIf you do this, you will need to create an empty /etc/ppp/ppp-logfile.After modifying syslog.conf, you will then need to send a HUP signalto syslogd (or reboot).When you wish terminate the PPP link, you should send a TERM or INTRsignal to pppd.  Pppd writes its process ID to a file calledppp<n>.pid in /var/run (or /etc/ppp on older systems such as SunOS orUltrix).  Here <n> is the PPP interface unit number, which will be 0unless you have more than one PPP link running simultaneously.  Thusyou can terminate the link with a command like	kill `cat /var/run/ppp0.pid`

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -