System Administration Guide: Resource Management and Network Services

/etc/ppp/options.ttyname Configuration File

You can configure the characteristics of communications on the serial line in the /etc/ppp/options.ttyname file. /etc/ppp/options.ttyname is a privileged file that is read by pppd after parsing the /etc/ppp/options and $HOME/.ppprc files, if they exist. Otherwise, pppd reads /etc/ppp/options.ttyname after parsing /etc/ppp/options.

ttyname is used for both dial-up and leased-line links. ttyname represents a particular serial port on a machine, such as cua/a or cua/b, where a modem or ISDN TA might be attached.

When naming the /etc/ppp/options.ttyname file, replace the slash (/) in the device name with a dot (.) . For example, the options file for device cua/b should be named /etc/ppp/options.cua.b.


Note -

Solaris PPP 4.0 does not require an /etc/ppp/options.ttyname file to work correctly. If the server only has one serial line for PPP and requires few options, you can specify these options in another configuration file or on the command line.


Using /etc/ppp/options.ttyname on a Dial-in Server

For a dial-up link, you might choose to create individual /etc/ppp/options.ttyname files for every serial port on a dial-in server with a modem attached. Typical options include the following:

Using /etc/ppp/options.ttyname on a Dial-out Machine

For a dial-out machine, you can create an /etc/ppp/options.ttyname file for the serial port with the modem, or elect not to use /etc/ppp/options.ttyname.


Note -

Solaris PPP 4.0 does not require an /etc/ppp/options.ttyname file to work correctly. If the dial-out machine only has one serial line for PPP and requires few options, you can specify these options in another configuration file or on the command line.


options.ttya.tmpl Template File

The /etc/ppp/options.ttya.tmpl file contains helpful comments about the /etc/ppp/options.tty-name file. The template contains three common options for the /etc/ppp/options.tty-name file.


38400 
asyncmap 0xa0000 
:192.168.1.1 

Option 

Definition 

38400

Use this baud rate for port ttya. 

asyncmap 0xa0000

Assign the asyncmap value of 0xa0000 so that the local machine can communicate with broken peers. 

:192.168.1.1  

Assign the IP address 192.168.1.1 to all peers that are calling in over the link. 

To use /etc/ppp/options.ttya.tmpl at your site, rename /etc/ppp/options.tmpl to /etc/ppp/options.ttya-name. Replace ttya-name with the name of the serial port with the modem. Then modify the file contents as needed by your site.

Where to Find Sample /etc/ppp/options.ttyname Files

Table 36-3 Examples of the /etc/ppp/options.ttyname File

Example /etc/ppp/options.ttyname

For Instructions 

For a dial-out machine 

"How to Define Communications Over the Serial Line"

For a dial-in server 

"How to Define Communications Over the Serial Line (Dial-in Server)"