Installing and Administering PPP

Chapter 2 43
Setting Up PPP Connections
Additional Information
IP=192.0.2.2
;;
esac
exec pppd ‘hostname‘:$IP idle 300
Address Calculated From tty Name
This script also uses the tty name to guarantee uniqueness of the
addresses it assigns. You must define ttyN in your /etc/hosts file, NIS
hosts map, NetInfo hosts map, or DNS database, according to the system
used. This works better in a larger installation with many ports and a
configuration that tends to change often.
#!/bin/sh
TTY=‘/bin/basename \‘/bin/tty\‘‘
exec pppd ‘hostname‘:$TTY idle 300