|
Macintosh PowerBook
|
|
How-to
Links
|
Configuring PPPThere are several steps to get PPP up and running:
Having kernel support In order to do PPP, you need to have support for it in your kernel by having the following options set in the kernel configuration.
Setting up the modem The first thing you might want to do is create the modem device /dev/modem by doing: ln -s ttyS0 /dev/modem(That's a zero in ttyS0.) The reason I said "might" is because you don't have to do it: in everything that's below, you can simply use /dev/ttyS0 instead; however, using /dev/modem is clearer and many commands and utilities assume the latter. Generic PPP options Create the following files having the contents shown. These two files will be the same regardless of your ISP.
ISP-specific PPP options The remaining files will need to be customized for your ISP. (My ISP is pacbell.net, hence the filename of pacbell for my peers file and pacbell.chat for my chat(8) file. choose a filename more appropriate for your ISP.) Aside from the obvious of replacing phone number, login, and password with your own, you may also need different options in your peers file depending on your ISP. You'll hopefully be able to get some information from their support web pages or staff. If all else fails, experiment. My ISP, like most ISPs these days, mandates dynamic IP addresses. This configuration assumes that.
You can find the complete set of modem AT commands in the AT Commands for the Apple Internal Modem manual. Configuring the Domain Name Server (DNS) The last part of the actual configuration is to create the following file for your domain name server:
Bringing PPP up and down Before you can establish a PPP connection, you'll need to have PPP daemon software (pppd) installed. The RPM for it most likely came with your Linux distribution. To bring the PPP connection up and down, you need a shell script to start and stop the daemon. The following script takes a single command-line argument of either start or stop:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||