QNX Developer Support
|This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.|
Point-to-Point Protocol Over Ethernet (PPPOE) daemon
pppoed [options] [suboptions]
The options are:
- -F file
- Read the arguments from the given file.
- Be quiet.
- Verbose output; more v characters cause more verbosity. In order to capture the log messages, you need to have syslogd running.
The suboptions are:
- Specify the PPPoE device. The default is /dev/io-net/ppp_en.
- Specify the Ethernet device by name ("" means all).
- Specify the Ethernet device by MAC (ffffffffffff means all).
- logfd= fd
- Log debug information to the given file descriptor; the default is no FD). If logging to 0, 1, or 2, you must specify the nodetach option.
- Specify the AC_NAME tag ("" means any).
- Don't move into the background.
- Don't execute the up or down script.
- Continue forever to retry connecting (by default, don't persist).
- Specify the server Ethernet MAC (ffffffffffff means any).
- Specify the number of retries (the default is 10).
- Don't exit when the upscript terminates.
- The SERVICE_NAME tag to use ("" means any).
- The initial timeout, in seconds (the default is 1).
- The verbosity level; the default is 1, and the maximum is 10. In order to capture the log messages, you need to have syslogd running.
Use the pppoed daemon to negotiate the PPPOE session. Once the PPPOE session is established, pppd is used to create a point-to-point connection over the PPPOE session. The pppd daemon gets a local TCP/IP configuration from the server (ISP).
|If you find pppoed has problems connecting to certain sites on the Internet, take a look at the technote PPPOE and Path MTU Discovery.|
The pppoed daemon uses the /etc/ppp/pppoe-up script to start pppd. The pppoe-up script contains the following commands:
#!/bin/sh pppd debug /dev/io-net/ppp_en -ac -pc -detach defaultroute \ require-ns mtu 1492 name username
The options are (see pppd for full descriptions):
- -ac -pc -detach
- Required options that disable any packet compression.
- Use the PPP connection peer address (server) as the gateway (default route).
- Get the nameserver addresses from the peer.
- mtu 1492
- Set the MTU to the supported value under PPPOE.
- name username
- The username of your ISP account (see "Authentication" in the documentation for pppd).
Note that the gateway and nameservers are obtained from the ISP, if possible; you don't need to be set them under phlip unless the nameservers aren't provided automatically.
Normally pppoed closes the PPPOE session and terminates when the upscript exits (i.e. when pppd terminates). If you don't want this to happen, use the scriptdetach option, which detaches pppoed from the execution of the script and makes pppoed wait for the session to close before terminating.
Normally, verbose debug messages are directed to the system log. If you want to have these messages also logged to a file descriptor, (e.g. in the case of spawning pppoed), specify the logfd option. All debug messages are then passed to the specified file descriptor.
When pppoed executes, it moves to the background when a session is established with an exit status of 0. If you specify the nodetach option, pppoed stays in the foreground.
Start io-net with PPPOE support:
io-net -del900 -pttcpip -ppppmgr -ppppoe
Make a session to any server; this depends on /etc/ppp/pppoe-up to start pppd:
Make a session using en0 -- don't use other en* devices:
Make a session to the server with name of PPPOE_GATWAY:
- The default PPPOE device.
- The default downscript.
- The default upscript.
"Network protocol modules (npm-*)" in the Utilities Summary
TCP/IP Networking in the Neutrino User's Guide
If you find pppoed has problems connecting to certain sites on the Internet, take a look at the technote PPPOE and Path MTU Discovery.