5. Setting up your ipppd

5.1. /etc/ppp/pap-secrets

As pap-secrets and chap-secrets conflict with files from the ppp-package, I decided to install copies called *.example. Set the UserName + Password for your PAP-Account in pap-secrets. It is best to embed these in quotation marks, so non-alphanumeric characters (required by german Telecom e.g.) will be accepted as well.

Example 4. /etc/ppp/pap-secrets


# Secrets for authentication using PAP
# client server secret IPaddresses
"UserName"  *  "PassWord"

5.2. /etc/ppp/ippp0.d/options

If you have static ip-addresses you might have to comment out ipcp-accept* in options and might set the IP addresses right here. Change user to the UserName in pap-secrets, I guess this is to make sure ipppd takes the right password for your connection.

Example 5. /etc/ppp/ippp0.d/options


# The IP addresses: <local>:<remote>
# just "0.0.0.0:" or nothing for dynamic IP
0.0.0.0:
# my user name
user "UserName"
# accept IP addresses from peer
# use with dynamic IP
ipcp-accept-local
ipcp-accept-remote
noipdefault

Note: If you want to use channel-bundling you have to make sure to set the slave-device in /etc/sysconfig/network-scripts/ifcfg-ippp0. As the devices are now given on ipppd-startup in /etc/sysconfig/network-scripts/ifup-ippp, you do not need to include /dev/ippp0 or /dev/ippp1 in the the options-file anymore. For further information about this topic have a look at the channelbundling-section of the I4L-FAQ.

Note: For a dialin-server you propably want to change some options as well. You may define static IP-numbers for your dialin-partners and wether they are to take your computer as their preferred name-server etc. For the syntax and parameters take a look into ipppd's man page. Refer to Section 5.3 as well.

5.3. /etc/sysconfig/network-scripts/ifcfg-ippp0

If you have a dynamic IP-number you are almost done. Take a look at ifcfg-ippp0. Do not forget to set DYNAMIC_IP = "yes" (refer to Section 4.2). If you have static IP-numbers you have to enter them as IPADDR and REMOTEADDR. Another reason to change these values might be if you have an internal ethernet using this IP-range. ONBOOT = "yes" will start the device right after booting. You must enter your MSN and the phonenumber of your provider in this file.

Example 6. /etc/sysconfig/network-scripts/ifcfg-ippp0


# configuration for ippp0
DEVICE=ippp0

# if you have static IPs you may enter your IPs here,
# else make sure DYNAMIC_IP is set to "yes" in /etc/sysconfig/isdn!
IPADDR="192.168.100.1"
REMOTEADDR="192.168.100.2"

# Should be started at boot-time
ONBOOT="yes"

# set this to off|manual|auto
DIALMODE="auto"

# Your MSN
EAZ=9374532

# Your providers Number (seperate more than one number by spaces)
PHONE_OUT=932640

# Who is allowed to dialin (seperate more than one number by spaces)?
PHONE_IN=""

# Want channel bundling? Set SLAVE to "ippp1"
SLAVE="no"

# Setting this to yes will change resolv.conf for you
GET_DNS="no"

If you want channel-bundling, set SLAVE to "ippp1". If you are in need of more "power" during a download, you may bring up the slave device by executing isdnctrl addlink ippp0. To go back to a single-line, execute isdnctrl removelink ippp0, while you are connected. As an alternative you might consider using ibod, take a look at Section 11.2 for the URL or grap an rpm from http://www.webideal.de/rh-isdn.

New in version 0.59 is the ability to get your /etc/resolv.conf changed automatically by setting GET_DNS to "yes". The script /etc/ppp/scripts/get-dns will try to change your first nameserver on dialin. Note that you have to get an ipppd, which understands the ms-get-dns. Executing strings /sbin/ipppd | grep 'ms-get-dns' will show you if this is the case. Otherwise you might consider grabbing the ipppd-package from rh-isdn's homepage.

Note: If you want to configure a dialin-server, take a look at the dialin-section of the I4L-FAQ. As SECURE is set to on in /etc/isdn/ippp0.conf, only the numbers given in PHONE_IN are allowed to dial in. So if you want everybody to dial in, change this to off or delete the line. Do not miss to adjust the options as well.