![]() |
![]() |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Creating an IP Addressing Scheme for CallersConsider creating one or more IP addresses for all incoming calls instead of assigning a unique IP address to each remote user. Dedicated IP addresses are particularly important if the number of potential callers exceeds the number of serial ports and modems on the dial-in server. You can implement a number of different scenarios, depending on your site's needs. Moreover, the scenarios are not mutually exclusive. Assigning Dynamic IP Addresses to CallersDynamic addressing involves the assignment to each caller of the IP address that is defined in /etc/ppp/options.ttyname. Dynamic addressing occurs on a per-serial port basis. When a call arrives over a serial line, the caller receives the IP address in the /etc/ppp/options.ttyname file for the call's serial interface. For example, suppose a dial-in server has four serial interfaces that provide dial-up service to incoming calls:
The advantages of dynamic addressing include the following:
Assigning Static IP Addresses to CallersIf your site implements PPP authentication, you can assign specific, static IP addresses to individual callers. In this scenario, every time a dial-out machine calls the dial-in server, the caller receives the same IP address. You implement static addresses in either the pap-secrets or chap-secrets database. Here is a sample /etc/ppp/pap-secrets file that defines static IP addresses.
Here is a sample /etc/ppp/chap-secrets file that defines static IP addresses.
Assigning IP Addresses by sppp Unit NumberIf you are using either PAP or CHAP authentication, you can assign IP addresses to callers by the sppp unit number. The next table shows an example of this usage.
The plus sign (+) indicates that the unit number is added to the IP address. Addresses 10.10.111.240 through 10.10.111.255 are assigned to remote users. sppp0 gets IP address 10.10.111.240. sppp1 gets IP address 10.10.111.241, and so on. Creating PPPoE Tunnels for DSL SupportBy using PPPoE, you can provide PPP over high-speed digital services to multiple clients that are using one or more DSL modems. PPPoE implements these services by creating an Ethernet tunnel through three participants, the enterprise, the telephone company, and the service provider.
This section contains detailed information about PPPoE commands and files, which is summarized in the next table. Table 32-8 PPPoE Commands and Configuration Files
Files for Configuring Interfaces for PPPoEThe interfaces that are used at either end of the PPPoE tunnel must be configured before the tunnel can support PPP communications. Use /usr/sbin/sppptun and /etc/ppp/pppoe.if files for this purpose. You must use these tools to configure Ethernet interfaces on all Solaris PPPoE clients and PPPoE access servers. /etc/ppp/pppoe.if FileThe /etc/ppp/pppoe.if file lists the names of all Ethernet interfaces on a host to be used for the PPPoE tunnels. This file is processed during system boot when the interfaces that are listed are plumbed for use in PPPoE tunnels. You need to explicitly create /etc/ppp/pppoe.if. Type the name of one interface to be configured for PPPoE on each line. Sample /etc/ppp/pppoe.if FileThe following example shows an /etc/ppp/pppoe.if file for a server that offers three interfaces for PPPoE tunnels.
PPPoE clients usually have only one interface that is listed in /etc/ppp/pppoe.if. /usr/sbin/sppptun CommandYou can use the /usr/sbin/sppptun command to manually plumb and unplumb the Ethernet interfaces to be used for PPPoE tunnels. By contrast, /etc/ppp/pppoe.if is only read when the system boots. These interfaces should correspond to the interfaces that are listed in /etc/ppp/pppoe.if. sppptun plumbs the Ethernet interfaces that are used in PPPoE tunnels in a manner that is similar to the ifconfig command. Unlike ifconfig, you must plumb interfaces twice to support PPPoE because two Ethernet protocol numbers are involved. The basic syntax for sppptun is as follows:
In this syntax, device-name is the name of the device to be plumbed for PPPoE. The first time that you issue the sppptun command, the discovery protocol pppoed is plumbed on the interface. The second time that you run sppptun, the session protocol pppoe is plumbed. sppptun prints the name of the interface that was just plumbed. You use this name to unplumb the interface, when necessary. For more information, refer to thesppptun(1M) man page. Sample sppptun Commands for Administering Interfaces
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||