![]() |
![]() |
| |||||
|
Example 32-6 /etc/ppp/options File for an Access Server
The option name no-service overrides the server name that is normally searched for during PAP or CHAP authentication. The server's default name is found in the /usr/bin/hostname file. The name option in the previous example changes the server's name to no-service. The name no-service is not likely to be found in a pap or chap-secrets file. This action prevents a random user from running pppd and overriding the auth and name options that are set in /etc/ppp/options. pppd then fails because no secrets can be found for the client with a server name of no-service. The access server scenario uses the following /etc/hosts file. Example 32-7 /etc/hosts File for an Access Server
Here is the /etc/ppp/pap-secrets file that is used for PAP authentication for clients that attempt to access the orange and purple networks. Example 32-8 /etc/ppp/pap-secrets File for an Access Server
Here is the /etc/ppp/chap-secrets file that is used for CHAP authentication. Note that only clients joe and mary are listed in the file. Example 32-9 /etc/ppp/chap-secrets File for an Access Server
PPPoE Client Commands and FilesTo run PPP over a DSL modem, a machine must become a PPPoE client. You have to plumb an interface to run PPPoE, and then use the pppoec utility to "discover" the existence of an access server. Thereafter, the client can create the PPPoE tunnel over the DSL modem and run PPP. The PPPoE client relates to the access server in the traditional client-server model. The PPPoE tunnel is not a dial-up link, but the tunnel is configured and operated in much the same manner. The commands and files that set up a PPPoE client include the following: /usr/lib/inet/pppoec UtilityThe /usr/lib/inet/pppoec utility is responsible for negotiating the client side of a PPPoE tunnel. pppoec is similar to the Solaris PPP 4.0 chat utility. You do not invoke pppoec directly. Rather, you start /usr/lib/inet/pppoec as an argument to the connect option of pppd. pppoe.so Pluginpppoe.so is the PPPoE shared object that must be loaded by PPPoE to provide PPPoE capability to access servers and clients. The pppoe.soshared object limits MTU and MRU to 1492, filters packets from the driver, and handles runtime PPPoE messages. On the client side, pppd loads pppoe.so when the user specifies the plugin pppoe.so option. /etc/ppp/peers/peer-name File for Defining an Access Server PeerWhen you define an access server to be discovered by pppoec, you use options that apply to both pppoec and the pppd daemon. A /etc/ppp/peers/peer-name file for an access server requires the following parameters:
The following example is introduced in How to Define a PPPoE Access Server Peer. Example 32-10 /etc/ppp/peers/peer-name to Define a Remote Access Server
This file defines parameters to be used when setting up a PPPoE tunnel and PPP link to access server dslserve. The options that are included are as follows. | |||||
| |||||