System Administration Guide, Volume 3

Determining IP Addressing for Your PPP Link

To enable communications over the PPP link, the machine at one end of the link must know the host name and IP address of the peer host on the other end of the link. The PPP configurations often require a particular addressing scheme. This section explains the addressing schemes and where each should be used.

Specifying IP Addresses

On each endpoint machine, you specify addressing information in these places:

When you edit the local machine's asppp.cf file, you must provide the host names and, in certain cases, the IP addresses for each endpoint machine to be on the link. For example, you must type either the IP addresses or host names for each endpoint as arguments in the ifconfig section in the configuration file:


ifconfig ipdptp0 plumb 192.99.44.01 192.99.44.02 up

See "Editing the Configuration File" for information regarding the format of /etc/asppp.cf.

Additionally, to enable communications, you must add the IP address and host name of the remote endpoints to the hosts database on the local endpoint by editing /etc/inet/hosts. This process is explained in "Configuring Network Clients".

Types of Addressing Schemes

You have a choice of several addressing schemes for PPP, depending on your configuration type. Before you edit the asppp.cf file and hosts database, you must decide on the appropriate addressing scheme for your configuration. These schemes include:

Using the Same IP Address as the Primary Network Interface

This addressing scheme is appropriate for point-to-point links only. In this scheme, you specify the addresses of the primary network interface for each endpoint. (See Chapter 2, Network Services Overview for more information about the primary network interface.) These endpoints might be:

When you edit the /etc/inet/hosts file on a local endpoint, supply the IP address of its primary network interface and host name and the IP address of the peer host on the other end of the link.

Creating a Unique IP Address and Host Name

In this method, you assign a unique host name and IP address to the PPP network interface. (You might want to call the interface hostname-ppp.) Use this addressing scheme for:

You must specify the unique address and host name for the PPP network interface in the asppp.cf configuration file.

To create the new host name and IP address, add it to the /etc/inet/hosts file on the endpoint machines, as described in "hosts Database".

Assigning a Network Number to the PPP Link

You create a new network number for the PPP configuration when it involves:

(See Chapter 5, Planning Your TCP/IP Network for information on network numbers.)

The PPP link becomes a virtual network, since it does not involve any physical network media. You need to type its network number in the networks database on all endpoint machines, along with the network numbers of the networks being linked.

The following sample shows an /etc/inet/networks file for an internetwork with PPP.


Example 22-1 /etc/inet/networks File for an Internetwork With PPP


kalahari      192.9.253
negev         192.9.201
nubian-ppp    192.29.15

In the sample file, kalahari and negev are two local area networks, and nubian-ppp is the name of the PPP link.