syncPPP.FAQ 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. simple isdn4linux PPP FAQ .. to be continued .. not 'debugged'
  2. -------------------------------------------------------------------
  3. Q01: what's pppd, ipppd, syncPPP, asyncPPP ??
  4. Q02: error message "this system lacks PPP support"
  5. Q03: strange information using 'ifconfig'
  6. Q04: MPPP?? What's that and how can I use it ...
  7. Q05: I tried MPPP but it doesn't work
  8. Q06: can I use asynchronous PPP encapsulation with network devices
  9. Q07: A SunISDN machine can't connect to my i4l system
  10. Q08: I wanna talk to several machines, which need different configs
  11. Q09: Starting the ipppd, I get only error messages from i4l
  12. Q10: I wanna use dynamic IP address assignment
  13. Q11: I can't connect. How can I check where the problem is.
  14. Q12: How can I reduce login delay?
  15. -------------------------------------------------------------------
  16. Q01: pppd, ipppd, syncPPP, asyncPPP .. what is that ?
  17. what should I use?
  18. A: The pppd is for asynchronous PPP .. asynchronous means
  19. here, the framing is character based. (e.g when
  20. using ttyI* or tty* devices)
  21. The ipppd handles PPP packets coming in HDLC
  22. frames (bit based protocol) ... The PPP driver
  23. in isdn4linux pushes all IP packets direct
  24. to the network layer and all PPP protocol
  25. frames to the /dev/ippp* device.
  26. So, the ipppd is a simple external network
  27. protocol handler.
  28. If you login into a remote machine using the
  29. /dev/ttyI* devices and then enable PPP on the
  30. remote terminal server -> use the 'old' pppd
  31. If your remote side immediately starts to send
  32. frames ... you probably connect to a
  33. syncPPP machine .. use the network device part
  34. of isdn4linux with the 'syncppp' encapsulation
  35. and make sure, that the ipppd is running and
  36. connected to at least one /dev/ippp*. Check the
  37. isdn4linux manual on how to configure a network device.
  38. --
  39. Q02: when I start the ipppd .. I only get the
  40. error message "this system lacks PPP support"
  41. A: check that at least the device 'ippp0' exists.
  42. (you can check this e.g with the program 'ifconfig')
  43. The ipppd NEEDS this device under THIS name ..
  44. If this device doesn't exists, use:
  45. isdnctrl addif ippp0
  46. isdnctrl encap ippp0 syncppp
  47. ... (see isdn4linux doc for more) ...
  48. A: Maybe you have compiled the ipppd with another
  49. kernel source tree than the kernel you currently
  50. run ...
  51. --
  52. Q03: when I list the netdevices with ifconfig I see, that
  53. my ISDN interface has a HWaddr and IRQ=0 and Base
  54. address = 0
  55. A: The device is a fake ethernet device .. ignore IRQ and baseaddr
  56. You need the HWaddr only for ethernet encapsulation.
  57. --
  58. Q04: MPPP?? What's that and how can I use it ...
  59. A: MPPP or MP or MPP (Warning: MP is also an
  60. acronym for 'Multi Processor') stands for
  61. Multi Point to Point and means bundling
  62. of several channels to one logical stream.
  63. To enable MPPP negotiation you must call the
  64. ipppd with the '+mp' option.
  65. You must also configure a slave device for
  66. every additional channel. (see the i4l manual
  67. for more)
  68. To use channel bundling you must first activate
  69. the 'master' or initial call. Now you can add
  70. the slave channels with the command:
  71. isdnctrl addlink <device>
  72. e.g:
  73. isdnctrl addlink ippp0
  74. This is different from other encapsulations of
  75. isdn4linux! With syncPPP, there is no automatic
  76. activation of slave devices.
  77. --
  78. Q05: I tried MPPP but it doesn't work .. the ipppd
  79. writes in the debug log something like:
  80. .. rcvd [0][proto=0x3d] c0 00 00 00 80 fd 01 01 00 0a ...
  81. .. sent [0][LCP ProtRej id=0x2 00 3d c0 00 00 00 80 fd 01 ...
  82. A: you forgot to compile MPPP/RFC1717 support into the
  83. ISDN Subsystem. Recompile with this option enabled.
  84. --
  85. Q06: can I use asynchronous PPP encapsulation
  86. over the network interface of isdn4linux ..
  87. A: No .. that's not possible .. Use the standard
  88. PPP package over the /dev/ttyI* devices. You
  89. must not use the ipppd for this.
  90. --
  91. Q07: A SunISDN machine tries to connect my i4l system,
  92. which doesn't work.
  93. Checking the debug log I just saw garbage like:
  94. !![ ... fill in the line ... ]!!
  95. A: The Sun tries to talk asynchronous PPP ... i4l
  96. can't understand this ... try to use the ttyI*
  97. devices with the standard PPP/pppd package
  98. A: (from Alexanter Strauss: )
  99. !![ ... fill in mail ]!!
  100. --
  101. Q08: I wanna talk to remote machines, which need
  102. a different configuration. The only way
  103. I found to do this is to kill the ipppd and
  104. start a new one with another config to connect
  105. to the second machine.
  106. A: you must bind a network interface explicitly to
  107. an ippp device, where you can connect a (for this
  108. interface) individually configured ipppd.
  109. --
  110. Q09: When I start the ipppd I only get error messages
  111. from the i4l driver ..
  112. A: When starting, the ipppd calls functions which may
  113. trigger a network packet. (e.g gethostbyname()).
  114. Without the ipppd (at this moment, it is not
  115. fully started) we can't handle this network request.
  116. Try to configure hostnames necessary for the ipppd
  117. in your local /etc/hosts file or in a way, that
  118. your system can resolve it without using an
  119. isdn/ippp network-interface.
  120. --
  121. Q10: I wanna use dynamic IP address assignment ... How
  122. must I configure the network device.
  123. A: At least you must have a route which forwards
  124. a packet to the ippp network-interface to trigger
  125. the dial-on-demand.
  126. A default route to the ippp-interface will work.
  127. Now you must choose a dummy IP address for your
  128. interface.
  129. If for some reason you can't set the default
  130. route to the ippp interface, you may take any
  131. address of the subnet from which you expect your
  132. dynamic IP number and set a 'network route' for
  133. this subnet to the ippp interface.
  134. To allow overriding of the dummy address you
  135. must call the ipppd with the 'ipcp-accept-local' option.
  136. A: You must know, how the ipppd gets the addresses it wanna
  137. configure. If you don't give any option, the ipppd
  138. tries to negotiate the local host address!
  139. With the option 'noipdefault' it requests an address
  140. from the remote machine. With 'useifip' it gets the
  141. addresses from the net interface. Or you set the address
  142. on the option line with the <a.b.c.d:e.f.g.h> option.
  143. Note: the IP address of the remote machine must be configured
  144. locally or the remote machine must send it in an IPCP request.
  145. If your side doesn't know the IP address after negotiation, it
  146. closes the connection!
  147. You must allow overriding of address with the 'ipcp-accept-*'
  148. options, if you have set your own or the remote address
  149. explicitly.
  150. A: Maybe you try these options .. e.g:
  151. /sbin/ipppd :$REMOTE noipdefault /dev/ippp0
  152. where REMOTE must be the address of the remote machine (the
  153. machine, which gives you your address)
  154. --
  155. Q11: I can't connect. How can I check where the problem is.
  156. A: A good help log is the debug output from the ipppd...
  157. Check whether you can find there:
  158. - only a few LCP-conf-req SENT messages (less then 10)
  159. and then a Term-REQ:
  160. -> check whether your ISDN card is well configured
  161. it seems, that your machine doesn't dial
  162. (IRQ,IO,Proto, etc problems)
  163. Configure your ISDN card to print debug messages and
  164. check the /dev/isdnctrl output next time. There
  165. you can see, whether there is activity on the card/line.
  166. - there are at least a few RECV messages in the log:
  167. -> fine: your card is dialing and your remote machine
  168. tries to talk with you. Maybe only a missing
  169. authentication. Check your ipppd configuration again.
  170. - the ipppd exits for some reason:
  171. -> not good ... check /var/adm/syslog and /var/adm/daemon.
  172. Could be a bug in the ipppd.
  173. --
  174. Q12: How can I reduce login delay?
  175. A: Log a login session ('debug' log) and check which options
  176. your remote side rejects. Next time configure your ipppd
  177. to not negotiate these options. Another 'side effect' is, that
  178. this increases redundancy. (e.g your remote side is buggy and
  179. rejects options in a wrong way).