When dynamic IP address allocation is enabled, you need to invoke a connection phase during which the server provides the client with the IP addresses it needs to establish an IP connection over the PPP link.
Use pppconn(1M) to establish a PPP link to the server:
Use pppconn to create the PPP link, to recover the IP information from the server, and to initialize the IP interface.
prompt# /usr/bin/pppconn hostname Connect to hostname Connecting... Connected over ipdptp0 Local IP address : xxx.xxx.xxx.119 Remote IP address: xxx.xxx.xxx.38 IP mtu : 1500 |
Establish an IP connection over the PPP link by typing a command and hostname. For example:
prompt% /usr/bin/telnet hostname Trying xxx.xxx.xxx.38 ... Connected to hostname. Escape character is '^]'. UNIX(r) System V Release 4.0 (hostname) |
If there is only one IP interface defined at the client side, you can invoke pppconn without any arguments:
prompt# /usr/bin/pppconn Connect to hostname Connecting... Connected over ipdptp0 Local IP address : xxx.xxx.xxx.119 Remote IP address: xxx.xxx.xxx.01 IP mtu : 1500 |
You can also specify a given IP interface by invoking pppconn with the -i option:
prompt# /usr/bin/pppconn -i ipdptpn Connect to hostname Connecting... Connected over ipdptpn Local IP address : xxx.xxx.xxx.119 Remote IP address: xxx.xxx.xxx.01 IP mtu : 1500 |
To initiate a PPP connection to hostname with a telephone number other than the one specified in the configuration file link.conf, type::
prompt# /usr/bin/pppconn hostname number Connect to hostname Connecting... Connected over ipdptp0 Local IP address : xxx.xxx.xxx.119 Remote IP address: xxx.xxx.xxx.01 IP mtu : 1500 |
When a link is established using pppconn, it remains open until it is closed explicitly, or until the inactivity timer expires. If the link fails while it is still in use, you must stop the IP application before using pppconn to re-establish the link. This step is necessary because you cannot guarantee that the server will assign the same IP address for the new link.