12.4.3 Start the PPP
Control Daemon
Now that the server (mickey) is up and operational, you will configure a client (goofy) and test the connection between mickey and goofy.
You will configuring the PPP client through SMIT with the following procedure:
You are configuring a client, therefore, you do not need more than one client connection, no server connections, and only one IP interface and async HDLC Attachments. You will only be dialing out to one server.
Take the defaults for everything else.
#cat /etc/ppp/lcp_config server_name goofy lcp_server 0 lcp_client 1 lcp_demand 0 num_if 1 num_hdlc 1
Once the link is configured, you can start the control daemon pppcontrold. It is recommended that you do this from SMIT by following the same procedure as in section 12.4.3 Start the PPP Control Daemon.
Verify that the PPP interface is working by using the following command:
#ifconfig pp0 pp0: flags=6000030<POINTOPOINT,NOTRAILERS,GROUPRT,64BIT> inet 0.0.0.0 --> 0.0.0.0 netmask 0xff000000
The interface should display with Addresses of 0.0.0.0 set.
A chat script is a file containing expect-send pairs separated by spaces or newline. These expect-send sequences instruct pppdial in how to dial-up and log into a remote PPP server. An example of a simple chat script follows:
' ' AT OK ATDT4444444 CONNECT ' ' ogin: pppuser ssword: pppuser
Line by line, this script can be translated to mean:
This is only an example and, as such, before you establish a PPP connection, dial out to the remote system and see what is required to log in and start PPP.
You should now be able to use the command: /usr/sbin/pppattachd tty0 client connect "/usr/sbin/pppdial -v -f chat_script_file" to connect to the remote server.
A sample chat script (dial_out.example) can be found in the /etc/ppp directory. You can edit this script to reflect your requirements and use it to invoke the ppp connection.
If there are any problems with the connection, see the /tmp/ppp file created in section 12.4.2.1 Capturing Diagnostic Output for diagnostic information to assist in troubleshooting the problem.