Installing and Administering PPP

82 Chapter 4
Common pppd Options
IP Routing Tips
Figure 4-1
#!/bin/sh
PATH=/usr/bin:/usr/etc:/etc:/bin
mesg n
stty -tostop
exec pppd `hostname`: idle 180
Designate subnet 6 for remote machines. Assign nomad the IP address
134.19.6.17. The PPP daemon on nomad would be started in the
Autostart script as:
pppd 134.19.6.17:134.19.5.22 auto idle 180
or, if all the names can be found in the local /etc/hosts (or resolved via
NIS/YP, NetInfo, the Domain Name Service, or some other mechanism
without first needing to bring up the PPP link), it could look like
pppd nomad:alpha auto idle 180
The next line in nomad’s Autostart would set up an IP route through
the dial-in gateway:
route add net 134.19.0.0 134.19.5.22 1
Alternatively, and necessarily if the LAN were also connected to the
Internet:
route add default alpha 1
Similarly, the pppd on alpha would be started as
pppd alpha:nomad auto idle 180
bravo needs to have a network route for 134.19.6.0 pointing through
alpha.
route add net 134.19.6.0 alpha 1