~ubuntu-branches/ubuntu/trusty/isdnutils/trusty

« back to all changes in this revision

Viewing changes to FAQ/_howto/pppbind.txt

  • Committer: Package Import Robot
  • Author(s): Steve Langasek
  • Date: 2013-11-15 00:02:58 UTC
  • mfrom: (1.1.8) (31.1.1 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20131115000258-tt9v3gasgrdml07k
Tags: 1:3.25+dfsg1-3.3ubuntu1
* Merge from Debian unstable:
  - resolves licensing issues with package contents.  LP: #511988.
  - includes proper upstream fix for ipppd on ARM.  LP: #453159.
  - resolves isdnutils-base removal failures.  LP: #813771.
  - fixes capiutils init script to not try to mount obsolete capifs.
    LP: #1064347.
* Remaining changes:
  - Switch libreadline5-dev to libreadline-gplv2-dev since this package
    appears to be GPLv2
  - debian/patches/no-imake.patch: Don't build xisdnload/xmonisdn using
    xmkmf/imake.  This patch was dropped in Debian without explanation;
    it still applies and seems to still be a good idea for eventual
    upstreaming, since imake is quite obsolete.
  - capi.conf: Fix typo for fcdsl2 firmware. LP: #189132.
  - Remove dependencies on /etc/inittab.
    - Disable the installation code to modify /etc/inittab.
    - isdnutils-base: Add ttyI0 example script, which needs to be installed
      in /etc/event.d/ttyI0.
    - isdnvboxserver: Add ttyI1 example script, which needs to be installed
      in /etc/event.d/ttyI1.
    - The two upstart scripts need to be edited.
    - Further improvements and documentation welcome.
* Changes included in Debian:
  - replace calls to ./MAKEDEV with /sbin/MAKEDEV
  - Build-depend on ppp-dev.
  - Switch to newer tcl -dev.
  - update to newer automake
  - debian/rules: use autoreconf to update the autotools in the capi20
    directory
  - debian/{compat,rules,*.files,.dirs}: Convert to Multi-arch.
  - debian/libcapi20-dev.install: Remove .la files (no builds use them).
* Changes included upstream:
  - fix for ARM FTBFS.
  - fix bashisms in vboxplay.
  - debian/patches/{config_libdir,toplevel-make}.patch: add CONFIG_LIBDIR
    override to upstream build system to support Multi-arch.
* Dropped changes:
  - kick dpatch to the curb.
* Handle migrating the blacklist file from
  /etc/modprobe.d/blacklist-capiutils.conf to the path used in Debian,
  /etc/modprobe.d/capiutils.conf.
* Handle rename of /etc/ppp/ip-down.d/99-ipppd and /etc/ppp/ip-up.d/00-ipppd
  to /etc/ppp/ip-down.d/ipppd and /etc/ppp/ip-up.d/ipppd
* Handle rename of /etc/init.d/isdnutils to /etc/init.d/isdnutils-base
* Restore standard.tcl to /usr/share/isdnvboxserver/default; maintainer
  scripts must not depend on contents of /usr/share/doc.
* Apply patches that were preserved in the 3.0 (quilt) migration, but
  were inadvertently not applied:
  - debian/patches/capifax.additional_error_codes.patch
  - debian/patches/capifax.3_1kHz_audio.patch
* Drop debian/isdnutils-base.cron.d, which isn't a cronjob example at all
  but an inittab example gone astray.
* debian/dotconfig*: don't use embedded quotes for paths; this confuses
  vbox's Makefiles something fierce, and causes files to be missed from
  debian/tmp'/usr/share/man/' at install time.
* Fix isdnlog and ipppd to not ship files used in the postinst under
  /usr/share/doc.
* Modernize the upstart examples.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Date: Sat, 19 Oct 1996 02:21:45 +0200
2
 
X-Sender: sw0001@aixrs1.hrz.uni-essen.de To: isdn4linux@hub-wue.franken.de
3
 
From: Matthias Hessler <hessler@wi-inf.uni-essen.de> Subject: RE: options files
4
 
Sender: owner-isdn4linux@hub-wue.franken.de Reply-To: isdn4linux@hub-wue.franken.de
5
 
 
6
 
At 17:57 18.10.1996 +0200, you wrote:
7
 
>Matthias Hessler <hessler@wi-inf.uni-essen.de> ha escrito a
8
 
>isdn4linux@hub-wue.franken.de:
9
 
>
10
 
>> well, isdnctrl does not quite assign interface ipppx to /dev/ipppx by
11
 
>> default (e.g. interface ippp3 to /dev/ippp3). I'm not entirely sure how
12
 
>it
13
 
>> does its assignements, but I think it takes interface ipppx and binds it
14
 
>to
15
 
>> the first available /dev/ipppx, starting x with 0 and counting up (e.g.
16
 
>your
17
 
>> interface ippp3 gets bound to /dev/ippp0 because there is an ipppd
18
 
>already
19
 
>> waiting there)
20
 
>> Which leads to your problem: you want interface ippp3 _exclusively_ bound
21
 
>to
22
 
>> /dev/ippp3 because you want only your ipppd configured for /dev/ippp3
23
 
>> answering all the traffic from your interface ippp3.
24
 
>
25
 
>Hi Matthias
26
 
>
27
 
>Ok; for clarifying scripts (and my concepts :) I name net interfaces
28
 
>isdn0..isdn3, but when I try to launch ipppd, it tells me there must be at
29
 
>least ippp0 configured (???) Does it means i have to configure interfaces
30
 
>twice (one time for ipppX and other for isdnX)?
31
 
 
32
 
No.
33
 
 
34
 
Here is what happened: You named your net interfaces isdn0..isdn3 and did not use the pppbind option. Now isdnctrl has no clue that it should connect those interfaces to any /dev/ippp* .
35
 
 
36
 
If you name your net interfaces ippp0..ippp3, then isdnctrl _automatically_ recognizes (by the name of those interfaces) that those should be connected to the /dev/ippp* . It does it (if I'm not wrong about that default behavior) when data arrives by connecting a net interface to the first available /dev/ippp* .
37
 
Let's say if data arrives on net interface ippp3, it tries to connect it to /dev/ippp0, if that is available. If not (already another connection going on?), it tries /dev/ippp1, and so on.
38
 
As you have two ipppd's with different options running that is not what you want, because you can never tell in advance which data will be answered by which ipppd.
39
 
 
40
 
No matter how the name of your net interfaces is, if you use the "isdnctrl pppbind" option, you can tell isdnctrl to _always_ connect some netinterface with some /dev/ippp* . E.g.:
41
 
isdnctrl pppbind isdn3 2
42
 
tells isdnctrl to always put data from net interface isdn3 to /dev/ippp2.
43
 
That is very handy, if you want to have a special ipppd lurking on /dev/ippp2 that should get all that traffic from isdn3.
44
 
 
45
 
Isdnctrl acts like a switch board.
46
 
 
47
 
Default behaviour (using net interfaces ippp0 and ippp1): =========================================================
48
 
 
49
 
                  Kernel---------+
50
 
                    |            |
51
 
Net interface     ippp0        ippp1 (isdnctrl addif ippp*)
52
 
                    |            |
53
 
                    |            |
54
 
Isdnctrl         (by default, to next available device
55
 
                  => no isdnctrl pppbind necessary)
56
 
                    |            |
57
 
                    |            |
58
 
Device            /dev/ippp0 /dev/ippp1 /dev/ippp2 /dev/ippp3
59
 
                    |            |          |          |
60
 
                   ipppd       ipppd      ipppd      ipppd
61
 
 
62
 
 
63
 
Default behaviour (using net interfaces isdn0, isdn1, isdn2, isdn3): ====================================================================
64
 
 
65
 
                  Kernel------+----------+----------+
66
 
                    |         |          |          | Net interface     isdn0     isdn1      isdn2      isdn3 (isdnctrl addif ippp*)
67
 
 
68
 
isdnctrl          (no connection from isdn* to any /dev/ippp*,
69
 
                   because: name of net interface is not "ippp*")
70
 
 
71
 
Device            /dev/ippp0 /dev/ippp1 /dev/ippp2 /dev/ippp3
72
 
                    |            |          |          |
73
 
                   ipppd       ipppd      ipppd      ipppd
74
 
 
75
 
 
76
 
 
77
 
Behavior using "isdnctrl pppbind" (A):
78
 
======================================
79
 
 
80
 
                  Kernel------+----------+----------+
81
 
                    |         |          |          | Net interface     isdn0     isdn1      isdn2      isdn3 (isdnctrl addif isdn*)
82
 
                                                    |
83
 
                                                    | Isdnctrl                                    +-------+ (isdnctrl pppbind isdn3 2)
84
 
                                            |
85
 
                                            | Device            /dev/ippp0 /dev/ippp1 /dev/ippp2 /dev/ippp3
86
 
                    |            |          |          |
87
 
                   ipppd       ipppd      ipppd      ipppd
88
 
 
89
 
 
90
 
Behavior using "isdnctrl pppbind" (A):
91
 
======================================
92
 
 
93
 
                  Kernel------+----------+----------+
94
 
                    |         |          |          | Net interface     isdn0     isdn1      isdn2      isdn3 (isdnctrl addif isdn*)
95
 
                                         |
96
 
                                         | Isdnctrl                         +-------+ (isdnctrl pppbind isdn2 1)
97
 
                                 |
98
 
                                 |
99
 
Device            /dev/ippp0 /dev/ippp1 /dev/ippp2 /dev/ippp3
100
 
                    |            |          |          |
101
 
                   ipppd       ipppd      ipppd      ipppd
102
 
 
103
 
 
104
 
I hope that's correct. Please correct me if I'm wrong...
105
 
 
106
 
Bye,
107
 
Matthias
108
 
 
109
 
**************************************************************** Matthias He�ler            Email: hessler@wi-inf.uni-essen.de Gelsenkirchener Str. 67    Tel. : 0201-8915964 45141 Essen                Fax. : 0201-8915965 ****************************************************************
110
 
 
111
 
--------------------------------------------------- To remove yourself from this mailing list send email to majordomo@hub-wue.franken.de containing "unsubscribe isdn4linux <your_email_address>" in the message body [-vg]
 
1
Date: Sat, 19 Oct 1996 02:21:45 +0200
 
2
X-Sender: sw0001@aixrs1.hrz.uni-essen.de To: isdn4linux@hub-wue.franken.de
 
3
From: Matthias Hessler <hessler@wi-inf.uni-essen.de> Subject: RE: options files
 
4
Sender: owner-isdn4linux@hub-wue.franken.de Reply-To: isdn4linux@hub-wue.franken.de
 
5
 
 
6
At 17:57 18.10.1996 +0200, you wrote:
 
7
>Matthias Hessler <hessler@wi-inf.uni-essen.de> ha escrito a
 
8
>isdn4linux@hub-wue.franken.de:
 
9
>
 
10
>> well, isdnctrl does not quite assign interface ipppx to /dev/ipppx by
 
11
>> default (e.g. interface ippp3 to /dev/ippp3). I'm not entirely sure how
 
12
>it
 
13
>> does its assignements, but I think it takes interface ipppx and binds it
 
14
>to
 
15
>> the first available /dev/ipppx, starting x with 0 and counting up (e.g.
 
16
>your
 
17
>> interface ippp3 gets bound to /dev/ippp0 because there is an ipppd
 
18
>already
 
19
>> waiting there)
 
20
>> Which leads to your problem: you want interface ippp3 _exclusively_ bound
 
21
>to
 
22
>> /dev/ippp3 because you want only your ipppd configured for /dev/ippp3
 
23
>> answering all the traffic from your interface ippp3.
 
24
>
 
25
>Hi Matthias
 
26
>
 
27
>Ok; for clarifying scripts (and my concepts :) I name net interfaces
 
28
>isdn0..isdn3, but when I try to launch ipppd, it tells me there must be at
 
29
>least ippp0 configured (???) Does it means i have to configure interfaces
 
30
>twice (one time for ipppX and other for isdnX)?
 
31
 
 
32
No.
 
33
 
 
34
Here is what happened: You named your net interfaces isdn0..isdn3 and did not use the pppbind option. Now isdnctrl has no clue that it should connect those interfaces to any /dev/ippp* .
 
35
 
 
36
If you name your net interfaces ippp0..ippp3, then isdnctrl _automatically_ recognizes (by the name of those interfaces) that those should be connected to the /dev/ippp* . It does it (if I'm not wrong about that default behavior) when data arrives by connecting a net interface to the first available /dev/ippp* .
 
37
Let's say if data arrives on net interface ippp3, it tries to connect it to /dev/ippp0, if that is available. If not (already another connection going on?), it tries /dev/ippp1, and so on.
 
38
As you have two ipppd's with different options running that is not what you want, because you can never tell in advance which data will be answered by which ipppd.
 
39
 
 
40
No matter how the name of your net interfaces is, if you use the "isdnctrl pppbind" option, you can tell isdnctrl to _always_ connect some netinterface with some /dev/ippp* . E.g.:
 
41
isdnctrl pppbind isdn3 2
 
42
tells isdnctrl to always put data from net interface isdn3 to /dev/ippp2.
 
43
That is very handy, if you want to have a special ipppd lurking on /dev/ippp2 that should get all that traffic from isdn3.
 
44
 
 
45
Isdnctrl acts like a switch board.
 
46
 
 
47
Default behaviour (using net interfaces ippp0 and ippp1): =========================================================
 
48
 
 
49
                  Kernel---------+
 
50
                    |            |
 
51
Net interface     ippp0        ippp1 (isdnctrl addif ippp*)
 
52
                    |            |
 
53
                    |            |
 
54
Isdnctrl         (by default, to next available device
 
55
                  => no isdnctrl pppbind necessary)
 
56
                    |            |
 
57
                    |            |
 
58
Device            /dev/ippp0 /dev/ippp1 /dev/ippp2 /dev/ippp3
 
59
                    |            |          |          |
 
60
                   ipppd       ipppd      ipppd      ipppd
 
61
 
 
62
 
 
63
Default behaviour (using net interfaces isdn0, isdn1, isdn2, isdn3): ====================================================================
 
64
 
 
65
                  Kernel------+----------+----------+
 
66
                    |         |          |          | Net interface     isdn0     isdn1      isdn2      isdn3 (isdnctrl addif ippp*)
 
67
 
 
68
isdnctrl          (no connection from isdn* to any /dev/ippp*,
 
69
                   because: name of net interface is not "ippp*")
 
70
 
 
71
Device            /dev/ippp0 /dev/ippp1 /dev/ippp2 /dev/ippp3
 
72
                    |            |          |          |
 
73
                   ipppd       ipppd      ipppd      ipppd
 
74
 
 
75
 
 
76
 
 
77
Behavior using "isdnctrl pppbind" (A):
 
78
======================================
 
79
 
 
80
                  Kernel------+----------+----------+
 
81
                    |         |          |          | Net interface     isdn0     isdn1      isdn2      isdn3 (isdnctrl addif isdn*)
 
82
                                                    |
 
83
                                                    | Isdnctrl                                    +-------+ (isdnctrl pppbind isdn3 2)
 
84
                                            |
 
85
                                            | Device            /dev/ippp0 /dev/ippp1 /dev/ippp2 /dev/ippp3
 
86
                    |            |          |          |
 
87
                   ipppd       ipppd      ipppd      ipppd
 
88
 
 
89
 
 
90
Behavior using "isdnctrl pppbind" (A):
 
91
======================================
 
92
 
 
93
                  Kernel------+----------+----------+
 
94
                    |         |          |          | Net interface     isdn0     isdn1      isdn2      isdn3 (isdnctrl addif isdn*)
 
95
                                         |
 
96
                                         | Isdnctrl                         +-------+ (isdnctrl pppbind isdn2 1)
 
97
                                 |
 
98
                                 |
 
99
Device            /dev/ippp0 /dev/ippp1 /dev/ippp2 /dev/ippp3
 
100
                    |            |          |          |
 
101
                   ipppd       ipppd      ipppd      ipppd
 
102
 
 
103
 
 
104
I hope that's correct. Please correct me if I'm wrong...
 
105
 
 
106
Bye,
 
107
Matthias
 
108
 
 
109
**************************************************************** Matthias He�ler            Email: hessler@wi-inf.uni-essen.de Gelsenkirchener Str. 67    Tel. : 0201-8915964 45141 Essen                Fax. : 0201-8915965 ****************************************************************
 
110
 
 
111
--------------------------------------------------- To remove yourself from this mailing list send email to majordomo@hub-wue.franken.de containing "unsubscribe isdn4linux <your_email_address>" in the message body [-vg]