Remove lfs-uefi.txt symlink
[linux_from_scratch_hints.git] / PREVIOUS_FORMAT / isdn.txt
blobb86b2fa634227d8637a338f446164bd9af09b52f
1 TITLE:          ISDN4LFS
2 LFS VERSION:    2.4.4+
3 AUTHOR:         Max Schattauer <smax@smaximum.de>
5 SYNOPSIS:
6         Getting ISDN4LINUX to work with LFS
8 HINT:
9 ver 1.3 06/18/2001
12 TABLE OF CONTENTS
13 =================
16 1. Introduction
17 2. Software
18 3. Card Setup
19 4. Links
22 1. Introduction
23 ===============
25 Setting up a working ISDN system has always caused a major trouble, although it
26 really isn't that complicated. The purpose of this hint is to help you set up a
27 working dial-in interface. This hint just covers the dial-in with dynamic IPs,
28 I haven't worked out how to set it up with static IPs yet.
31 2. Software
32 ===========
34 You need the latest version of isdn4linux, which is available from 
35 ftp://isdn4linux.de/pub/isdn4linux/utils.
37 For the usage of isdnlog you'll need gdbm (1.80), available at any gnu-mirror.
40 3. System Setup
41 ===============
43 Make sure your kernel supports ISDN, synchronous ppp, general networking
44 support, EURO/DSS1.
46 Load modules slhc, isdn and hisax in that order. Note that hisax might require
47 irq and io parameters, like in my case (avm fritz) I would use 
49 modprobe hisax io=0x200 irq=4 id=hisax protocol=2 type=5
51 Refer to /usr/src/linux/Documentation/isdn/README.hisax for more information on
52 these options, putting that info in here would somewhat exceed the scope of
53 this hint.
55 If you want to use isdnlog install gdbm now.
57 After you loaded the modules you have to install isdn4linux utils. Do make 
58 config to configure its options. You need ippp, hisaxctrl and isdnctrl, 
59 everything else should be optional. After you finished the configure script
60 should be executed. If it fails in building the FAQ, edit the makefile and 
61 comment that out, should be fine though. Do make and make install to install
62 isdn4linux.
65 These commands are used to actually set up the device (very rudimentary!):
67 isdnctrl addif ippp0
68 isdnctrl eaz ippp0 <yourmsnhere>
69 isdnctrl dialmode ippp0 manual|auto|off (whatever you prefer)
70 isdnctrl dialmax ippp0 3    (or set any another number)
71 isdnctrl l2_prot ippp0 hdlc
72 isdnctrl encap ippp0 syncppp
73 isdnctrl huptimeout ippp0 <timeout in sec.>
74 isdnctrl pppbind ippp0 0
75 isdnctrl addphone ippp0 out <number to dial>
76 ifconfig ippp0 1.1.1.1 up
79 Next we have to set up the ipppd. Check if the ipppd is installed. Calling
80 ipppd should give you something like ipppd: Can't open options file 
81 /etc/ppp/ioptions: No such file or directory. That's fine, since its config
82 file isn't installed right now. It should go into /etc/ppp/ioptions and look
83 like this:
85 # Begin /etc/ppp/ioptions
87 /dev/ippp0
88 name <username>
89 ipcp-accept-local
90 ipcp-accept-remote
91 noipdefault
92 defaultroute
93 -vj
94 -vjccomp
95 -ac
96 -pc
97 -bsdcomp
98 mru 1524
99 mtu 1500
100 lcp-restart 3
102 # End /etc/ppp/ioptions
105 Create /etc/ppp/pap-secrets and /etc/ppp/chap-secrets. Both have the same
106 content. They should look like:
108 <username> * <password>
110 Start the ipppd now. 
112 Now you shoud be able to do isdnctrl dial ippp0. You can check what's going on
113 by executing imon, the isdn monitor. If you get any errors check
114 /var/log/sys.log. Error messages should go in here.
116 To actually do ping www.whatever.com set up your /etc/resolv.conf with
118 nameserver <namerserver ip>
120 It might be a good idea to write a little boot-script to execute the commands
121 stated above at boottime. 
123 4. Links
124 ========
126 http://www.isdn4linux.de/faq/
128 http://www.tu-harburg.de/dlhp/HOWTO/DE-ISDN-HOWTO.html 
129 (german only. I don't know if there's any english translation)
132 Hope this helps :)
134 Thanks on creating this hint apply to the following people
136 Shine <shine@shinewelt.de>
138 chemical
139 various people from #LFS