Go to main content

Managing Serial Networks Using UUCP and PPP in Oracle® Solaris 11.4

Exit Print View

Updated: November 2020
 
 

Creating an IP Addressing Scheme for Callers

Consider 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 Callers

Dynamic 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:

  • For serial port term/a, create the file /etc/ppp/options.term.a with the following entry:

    :198.51.100.1
  • For serial port term/b, create the file /etc/ppp/options.term.b with the following entry:

    :198.51.100.2
  • For serial port term/c, create the file /etc/ppp/options.term.c with the following entry:

    :198.51.100.3
  • For serial port term/d, create the file /etc/ppp/options.term.d with the following entry:

    :198.51.100.4

With the preceding addressing scheme, an incoming call on serial interface /dev/term/c is given the IP address 198.51.100.3 for the duration of the call. After the first caller hangs up, a later call that comes in over serial interface /dev/term/c is also given the IP address 198.51.100.3.

    The advantages of dynamic addressing include the following:

  • You can track PPP network usage down to the serial port.

  • You can assign a minimum number of IP addresses for PPP use.

  • You can administer IP filtering in a more simplified fashion.

Assigning Static IP Addresses to Callers

If your site implements PPP authentication, you can assign specific, static IP addresses to individual callers. In this scenario, every time a dial-out system 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. The following is a example of an /etc/ppp/pap-secrets file that defines static IP addresses.

jan    myserver  janpasswd   198.51.100.1
sally  myserver  sallypasswd 198.51.100.2
sue    myserver  suepasswd   198.51.100.3

The following is a example of an /etc/ppp/chap-secrets file that defines static IP addresses.

account1 myserver secret5748  198.51.100.4
account2 myserver secret91011 198.51.100.5

The field names are in order of Caller, Server, Password, and IP address.

Assigning IP Addresses by sppp Unit Number

If you are using either PAP or CHAP authentication, you can assign IP addresses to callers by the sppp unit number. The following shows an example of this usage.

myclient ISP-server mypassword 198.51.100.1/28+

The final plus sign (+) indicates that the unit number is added to the IP address.

    Note the following:

  • Addresses 198.51.100.1 through 198.51.100.5 are assigned to remote users.

  • sppp0 gets IP address 198.51.100.1.

  • sppp1 gets IP address 198.51.100.2 and so on.