Sebastien Roy writes: > > 2. customer wants to use /etc/ppp/ip-up script, but in the case there > > are multiple PPP peers, does he need to use multiple ip-up files ? ( He > > wants configure each ppp link differently ) > > This can be done by having the ip-up script differentiate between the > peers by using the 5th argument (the remote IP address). The arguments > to ip-up are described in the pppd(1M) man page.
It can also be done by using any of these techniques: - Use the "ipparam <string>" option. This shows up as the sixth parameter ($6) inside the script. You can give it an aribitrary string to identify the connection in some way that's locally meaningful. - Use the "linkname <name>" option. This must be a 'simple' string that can be used as an ordinary file name (as in "foo" but not "a/b"). It shows up inside the script as $LINKNAME, and alters the name of the /var/run PID file. - Use the "unit <number>" option to set the "spppX" unit number. The interface name is available to the script as $1. - Use the tty to distinguish callers, via $2. - Use the $PEERNAME environment variable. This will have the authenticated peer name, if any. Which one you use depends on your local circumstances, but I think ipparam is probably the most flexible answer. -- James Carlson, Solaris Networking <[EMAIL PROTECTED]> Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677 _______________________________________________ networking-discuss mailing list networking-discuss@opensolaris.org