📄 084.htm
字号:
# represents '\x01', and 0x80000000 represents '\x1f'. <br>#asyncmap 0 <br><br># Require the peer to authenticate itself before allowing network <br># packets to be sent or received. <br>#auth <br><br># Use hardware flow control (i.e. RTS/CTS) to control the flow of data <br># on the serial port. <br>#crtscts <br><br># Use software flow control (i.e. XON/XOFF) to control the flow of data <br># on the serial port. <br>#xonxoff <br><br># Add a default route to the system routing tables, using the peer as <br># the gateway, when IPCP negotiation is successfully completed. This <br># entry is removed when the PPP connection is broken. <br>#defaultroute <br><br># Specifies that certain characters should be escaped on transmission <br># (regardless of whether the peer requests them to be escaped with its <br># async control character map). The characters to be escaped are <br># specified as a list of hex numbers separated by commas. Note that <br># almost any character can be specified for the escape option, unlike <br># the asyncmap option which only allows control characters to be <br># specified. The characters which may not be escaped are those with hex <br># values 0x20 - 0x3f or 0x5e. <br>#escape 11,13,ff <br><br># Don't use the modem control lines. <br>#local <br><br># Specifies that pppd should use a UUCP-style lock on the serial device <br># to ensure exclusive access to the device. <br>#lock <br><br># Use the modem control lines. On Ultrix, this option implies hardware <br># flow control, as for the crtscts option. (This option is not fully <br># implemented.) <br>#modem <br><br># Set the MRU [Maximum Receive Unit] value to <n> for negotiation. pppd <br># will ask the peer to send packets of no more than <n> bytes. The <br># minimum MRU value is 128. The default MRU value is 1500. A value of <br># 296 is recommended for slow links (40 bytes for TCP/IP header + 256 <br># bytes of data). <br>#mru 542 <br><br># Set the interface netmask to <n>, a 32 bit netmask in "decimal dot" <br># notation (e.g. 255.255.255.0). <br>#netmask 255.255.255.0 <br><br># Disables the default behaviour when no local IP address is specified, <br># which is to determine (if possible) the local IP address from the <br># hostname. With this option, the peer will have to supply the local IP <br># address during IPCP negotiation (unless it specified explicitly on the <br># command line or in an options file). <br>#noipdefault <br><br># Enables the "passive" option in the LCP. With this option, pppd will <br># attempt to initiate a connection; if no reply is received from the <br># peer, pppd will then just wait passively for a valid LCP packet from <br># the peer (instead of exiting, as it does without this option). <br>#passive <br><br># With this option, pppd will not transmit LCP packets to initiate a <br># connection until a valid LCP packet is received from the peer (as for <br># the "passive" option with old versions of pppd). <br>#silent <br><br># Don't request or allow negotiation of any options for LCP and IPCP <br># (use default values). <br>#-all <br><br># Disable Address/Control compression negotiation (use default, i.e. <br># address/control field disabled). <br>#-ac <br><br># Disable asyncmap negotiation (use the default asyncmap, i.e. escape <br># all control characters). <br>#-am <br><br># Don't fork to become a background process (otherwise pppd will do so <br># if a serial device is specified). <br>#-detach <br><br># Disable IP address negotiation (with this option, the remote IP <br># address must be specified with an option on the command line or in an <br># options file). <br>#-ip <br><br># Disable magic number negotiation. With this option, pppd cannot <br># detect a looped-back line. <br>#-mn <br><br># Disable MRU [Maximum Receive Unit] negotiation (use default, i.e. <br># 1500). <br>#-mru <br><br># Disable protocol field compression negotiation (use default, i.e. <br># protocol field compression disabled). <br>#-pc <br><br># Require the peer to authenticate itself using PAP. <br># This requires TWO WAY authentication - do NOT use this for a standard <br># PAP authenticated link to an ISP as this will require the ISP machine <br># to authenticate itself to your machine (and it will not be able to). <br>#+pap <br><br># Don't agree to authenticate using PAP. <br>#-pap <br><br># Require the peer to authenticate itself using CHAP [Cryptographic <br># Handshake Authentication Protocol] authentication. <br># This requires TWO WAY authentication - do NOT use this for a standard <br># CHAP authenticated link to an ISP as this will require the ISP machine <br># to authenticate itself to your machine (and it will not be able to). <br>#+chap <br><br># Don't agree to authenticate using CHAP. <br>#-chap <br><br># Disable negotiation of Van Jacobson style IP header compression (use <br># default, i.e. no compression). <br>#-vj <br><br># Increase debugging level (same as -d). If this option is given, pppd <br># will log the contents of all control packets sent or received in a <br># readable form. The packets are logged through syslog with facility <br># daemon and level debug. This information can be directed to a file by <br># setting up /etc/syslog.conf appropriately (see syslog.conf(5)). (If <br># pppd is compiled with extra debugging enabled, it will log messages <br># using facility local2 instead of daemon). <br>#debug <br><br># Append the domain name <d> to the local host name for authentication <br># purposes. For example, if gethostname() returns the name porsche, <br># but the fully qualified domain name is porsche.Quotron.COM, you would <br># use the domain option to set the domain name to Quotron.COM. <br>#domain <d> <br><br># Enable debugging code in the kernel-level PPP driver. The argument n <br># is a number which is the sum of the following values: 1 to enable <br># general debug messages, 2 to request that the contents of received <br># packets be printed, and 4 to request that the contents of transmitted <br># packets be printed. <br>#kdebug n <br><br># Set the MTU [Maximum Transmit Unit] value to <n>. Unless the peer <br># requests a smaller value via MRU negotiation, pppd will request that <br># the kernel networking code send data packets of no more than n bytes <br># through the PPP network interface. <br>#mtu <n> <br><br># Set the name of the local system for authentication purposes to <n>. <br># This will probably have to be set to your ISP user name if you are <br># using PAP/CHAP. <br>#name <n> <br><br># Set the user name to use for authenticating this machine with the peer <br># using PAP to <u>. <br># Do NOT use this if you are using 'name' above! <br>#user <u> <br><br># Enforce the use of the host name as the name of the local system for <br># authentication purposes (overrides the name option). <br>#usehostname <br><br># Set the assumed name of the remote system for authentication purposes <br># to <n>. <br>#remotename <n> <br><br># Add an entry to this system's ARP [Address Resolution Protocol] <br># table with the IP address of the peer and the Ethernet address of this <br># system. <br>#proxyarp <br><br># Use the system password database for authenticating the peer using <br># PAP. <br>#login <br><br># If this option is given, pppd will send an LCP echo-request frame to <br># the peer every n seconds. Under Linux, the echo-request is sent when <br># no packets have been received from the peer for n seconds. Normally <br># the peer should respond to the echo-request by sending an echo-reply. <br># This option can be used with the lcp-echo-failure option to detect <br># that the peer is no longer connected. <br>#lcp-echo-interval <n> <br><br># If this option is given, pppd will presume the peer to be dead if n <br># LCP echo-requests are sent without receiving a valid LCP echo-reply. <br># If this happens, pppd will terminate the connection. Use of this <br># option requires a non-zero value for the lcp-echo-interval parameter. <br># This option can be used to enable pppd to terminate after the physical <br># connection has been broken (e.g., the modem has hung up) in <br># situations where no hardware modem control lines are available. <br>#lcp-echo-failure <n> <br><br># Set the LCP restart interval (retransmission timeout) to <n> seconds <br># (default 3). <br>#lcp-restart <n> <br><br># Set the maximum number of LCP terminate-request transmissions to <n> <br># (default 3). <br>#lcp-max-terminate <n> <br><br># Set the maximum number of LCP configure-request transmissions to <n> <br># (default 10). <br># Some PPP servers are slow to start up. You may need to increase this <br># if you keep getting 'serial line looped back' errors and your are SURE <br># that you have logged in correctly and PPP should be starting on the server. <br>#lcp-max-configure <n> <br><br># Set the maximum number of LCP configure-NAKs returned before starting <br># to send configure-Rejects instead to <n> (default 10). <br>#lcp-max-failure <n> <br><br># Set the IPCP restart interval (retransmission timeout) to <n> <br># seconds (default 3). <br>#ipcp-restart <n> <br><br># Set the maximum number of IPCP terminate-request transmissions to <n> <br># (default 3). <br>#ipcp-max-terminate <n> <br><br># Set the maximum number of IPCP configure-request transmissions to <n> <br># (default 10). <br>#ipcp-max-configure <n> <br><br># Set the maximum number of IPCP configure-NAKs returned before starting <br># to send configure-Rejects instead to <n> (default 10). <br>#ipcp-max-failure <n> <br><br># Set the PAP restart interval (retransmission timeout) to <n> seconds <br># (default 3). <br>#pap-restart <n> <br><br># Set the maximum number of PAP authenticate-request transmissions to <br># <n> (default 10). <br>#pap-max-authreq <n> <br><br># Set the CHAP restart interval (retransmission timeout for <br># challenges) to <n> seconds (default 3). <br>#chap-restart <n> <br><br># Set the maximum number of CHAP challenge transmissions to <n> <br># (default 10). <br>#chap-max-challenge <br><br># If this option is given, pppd will re-challenge the peer every <n> <br># seconds. <br>#chap-interval <n> <br><br># With this option, pppd will accept the peer's idea of our local IP <br># address, even if the local IP address was specified in an option. <br>#ipcp-accept-local <br><br># With this option, pppd will accept the peer's idea of its (remote) IP <br># address, even if the remote IP address was specified in an option. <br>#ipcp-accept-remote <br><br><br>-------------------------------------------------------------------------------- <br><br><br>12.2. 我应该使用什麽选项? (无 PAP/CHAP) <br>嗯,完全视情况而定(唉).这里所提供的应该适用於大部份的伺服器. <br><br>然而,如果它无法运作的话,阅读样板档(/etc/ppp/options.tpl) 以及 pppd 的线上使用手册并且告诉你所连线之伺服器的系统管理/使用者支援人员. <br><br>你还应该注意这里所展示的连结指令稿也使用了一些给 pppd 的命令列选项以便让事情容易调整些. <br><br><br><br>-------------------------------------------------------------------------------- <br><br># /etc/ppp/options (NO PAP/CHAP) <br># <br># 避免 pppd 进入背景执行 <br>-detach <br># <br># 使用数据机控制线 <br>modem <br># 使用 uucp 形态的锁定档以避免它人取用串列装置 <br>lock <br># 使用硬体流量控制 <br>crtscts <br># 在递送表格中将此连结建立为预设递送装置 <br>defaultroute <br># 不使用任何"逸出"控制序列 <br>asyncmap 0 <br># 最大传送封包大小为 552 bytes <br>mtu 552 <br># 最大接收封包大小为 552 bytes <br>mru 552 <br># <br>#-------END OF SAMPLE /etc/ppp/options (no PAP/CHAP) <br></p><hr SIZE="0"><p align="center"><a href="linux.htm">返回</a></p><p><br><br></p></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -