SuSE GmbH

SuSE Support Database

Title: ISDN: starting two ipppd

----------

Mainpage o Searchform o History o Versions o Categories o Contents
Deutsch

----------

ISDN: starting two ipppd

Applies to

SuSE Linux: Versions since 4.4

Symptom:

Two ipppd for two different net connections are started, but it's always taken the first one's configuration. Two different syncPPP configurations shall be defined in order to configure several net connections (server or client) with different IP numbers, usernames, etc.

Background:

For that, there is the command: (example)
isdnctrl pppbind ippp0 0
isdnctrl pppbind ippp1 1
Consequently, the net interface is connected to the corresponding ippp device.

Futhermore different option files should be used for the ipppd, in which the different configurations are defined. The global /etc/ppp/options contains on the other hand, only the parameters identical for all PPP connections (analog and ISDN).

For this purpose, the ipppd is called with the parameter file optionfile, e.g.:

ipppd file /etc/ppp/options.ippp0
Hint: The file /etc/ppp/options is always read (both by ipppd and pppd).

Installation in the S.u.S.E. environment (from 4.4.1):

In the script /sbin/init.d/i4l it is intended, that the ipppd is started as described above. For every device (ippp0, ippp1, ....) is checked, whether there is an /etc/ppp/options.ippp?.

Enter additionally in /etc/rc.config a variable I4L_PPPBIND_? per device, that enforces the execution of the bind command. E.g. to start the net device _2 as ippp1, enter:

I4L_PPPBIND_2=1

Example

The following example of /etc/rc.config defines a PPP server and client on the same computer to itself (the example is taken from the S.u.S.E. ISDN server). Additionally, in /etc/ppp the files options.ippp0 and options.ippp1 must exist.

/etc/rc.config

# syncPPP Server
NETDEV_5=ippp0
IPADDR_5="192.168.0.1"
IFCONFIG_5="192.168.0.1 pointopoint 192.168.0.99 metric 1"
I4L_IDLETIME_5=60
I4L_REMOTE_OUT_5=
I4L_REMOTE_IN_5=9113206728
I4L_LOCALMSN_5=3206726
I4L_DEBUG_5=4
I4L_L2_5="hdlc"
I4L_L3_5="trans"
I4L_ENCAP_5="syncppp"
I4L_CALLBACK_5="off"
I4L_CBDELAY_5=5
I4L_CBHUP_5="on"
I4L_SECURE_5="off"
I4L_PPPBIND_5=0

# syncPPP Client
NETDEV_6=ippp1
IPADDR_6="192.168.0.99"
IFCONFIG_6="192.168.0.99 pointopoint 192.168.0.1 metric 1"
I4L_IDLETIME_6=60
I4L_REMOTE_OUT_6=3206726
I4L_REMOTE_IN_6=
I4L_LOCALMSN_6=3206728
I4L_DEBUG_6=4
I4L_L2_6="hdlc"
I4L_L3_6="trans"
I4L_ENCAP_6="syncppp"
I4L_CALLBACK_6="off"
I4L_CBDELAY_6=5
I4L_CBHUP_6="on"
I4L_SECURE_6="on"
I4L_PPPBIND_6=1

/etc/ppp/options.ippp0

# /etc/ppp/options.ippp0
# for isdn4linux/syncPPP and dynamic IP-numbers
#
#
# Klaus Franken, kfr@suse.de
# Thanks to Kai Grossjohann 
# Stand: 05.03.97
#
# The device
/dev/ippp0
#
# debug?
debug

#
# The IP addresses: :
# just "0.0.0.0:" for dynamic IP
192.168.0.1:192.168.0.99
#
# my user name
user suse

# force authentication with pap
+pap
#
# accept IP addresses from peer
#ipcp-accept-local
#ipcp-accept-remote
#noipdefault
#
# try to get IP address from interface
# option specific to ipppd (as opposed to pppd)
#useifip
#
# disable header-compression
-vj
-vjccomp
-ac
-pc
-bsdcomp
#
# max receive unit
mru 1524
# max transmit unit
mtu 1500

/etc/ppp/options.ippp1

# /etc/ppp/options.ippp1
# for isdn4linux/syncPPP and dynamic IP-numbers
#
#
# Klaus Franken, kfr@suse.de
# Thanks to Kai Grossjohann 
# Stand: 05.03.97
#
# The device
/dev/ippp1
#
# debug?
#debug

#
# The IP addresses: :
# just "0.0.0.0:" for dynamic IP
0.0.0.0:
#
# my user name
user suse
#
#

# accept IP addresses from peer
ipcp-accept-local
ipcp-accept-remote
noipdefault
#
# try to get IP address from interface
# option specific to ipppd (as opposed to pppd)
useifip
#
# disable header-compression
-vj
-vjccomp
-ac
-pc
-bsdcomp
#
# max receive unit
mru 1524
# max transmit unit
mtu 1500

Bugs:

In Kernel 2.0.27 the pppbind command seems to work only once.

Possible cause: Remove the line

p->local.pppbind = -1;
in /usr/src/linux/drivers/isdn/isdn_net.c, around line 1730.

From 2.0.29 on, the problem wasn't observed any more.

----------

See also:

----------

Keywords: ISDN, IPPPD, PPPBIND

----------

Categories: Dialin Server

----------

Feedback welcome: Send Mail to kfr@suse.de (Please give the following subject: SDB-ipppd2)

----------

Mainpage o Searchform o History o Versions o Categories o Contents
Deutsch

----------

SDB-ipppd2, Copyright SuSE GmbH, Nuremberg, Germany - Version: 19. Mar 1997
SuSE GmbH - Last generated: 07. Oct 1999 16:41:50 by maddin with sdb_gen 1.00.0