For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.
$ cat /etc/hosts # # Internet host table # 127.0.0.1 localhost 192.0.2.10 local2-peer loghost 192.0.2.11 local1-net 198.51.100.25 farISP
The example /etc/hosts file is for the local router at the fictitious LocalCorp. Note the IP address and host name for the remote peer farISP at the service provider.
For this example leased-line link, you create the file /etc/ppp/peers/farISP.
$ cat /etc/ppp/peers/farISP init '/etc/ppp/conf_hsi' local /dev/hihp1 sync noauth 192.0.2.10:198.51.100.25 passive persist noccp nopcomp novj noaccomp
The following table explains the options and parameters that are used in /etc/ppp/peers/farISP.
|
$ cat /etc/ppp/demand #!/bin/sh if [ -f /system/volatile/ppp-demand.pid ] && /usr/bin/kill -s 0 `/bin/cat /system/volatile/ppp-demand.pid` then : else /usr/bin/pppd call farISP fi
The demand script contains the pppd command for establishing a leased-line link. The following table explains the content of $PPPDIR/demand.
|
The Oracle Solaris PPP 4.0 startup script /etc/rc2.d/S47pppd invokes the demand script as part of the booting process. The following lines in /etc/rc2.dS47pppd search for the presence of a file that is called $PPPDIR/demand.
if [ -f $PPPDIR/demand ]; then . $PPPDIR/demand fi
If found, $PPPDIR/demand is executed. During the course of executing $PPPDIR/demand, the link is established.
See Also
If you have followed all the procedures in this chapter, you have completed the configuration of the leased-line link. The following list provides references to related information.
To find troubleshooting information, see Fixing Leased-Line Problems.
To learn more about the files and options that are used in this chapter, see Using PPP Options in Files and on the Command Line.