[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: isdn under linux
Dear Rage,
I installed under Slack Teles 16.6c PnP, Asuscom, and SC100-P PCI cards. I
wrote some instruction for our clients but may be you shall find it useful
as well, here it is:
$Id: linux-isdn+actcom-HOWTO,v 1.6 1998/05/29 19:33:47 cigan Exp $
Linux ISDN/ACTCOM HOWTO
#######################
This document describes howto install ISDN adapters supplied by ACTCOM.
It consists of a few steps which shall be detailed below.
Table of contents:
##################
Step 1 - Compilation of Kernel
Step 2 - ISDN4k-Utils
Step 3 - Making devices
Step 4 - ISDN Configuration
Step 5 - Establishing a connection to ACTCOM
Step 6 - Troubleshooting
Step 7 - Additional documentation
You will need a few things at the beginning:
a) A kernel source.
2.0.35 would do. If you use 2.1 then grab a copy of 2.1.101 - the
latest version. No patches are needed for 2.1.101.
*However* we recommend using the old 2.0.33 and isdn4Linux drivers from:
ftp://ftp.suse.com/pub/isdn4linux/v2.0/isdn.tar.gz
(it's a link to a latest version).
b) A set of isdn4k-utils . It has an ippd (PPPD daemon for ISDN) and other
useful utilities for an ISDN connection under Linux.
Step 1 : Kernel compilation
###########################
You should download the 'isdn4kernel' patch.
Once you unzipped and untared it enter the ISDN directory and run 'std2kern'.
This will install the drivers and documentation into your kernel source.
**NOTE: You must have a copy of the kernel source.
Enter the kernel's source directory (/usr/src/linux) and run 'make'
(menuconfig|config|xconfig).
You will see a new section named 'ISDN'.
Assuming you already have a standard PPP connection to ACTCOM,
Enter the new 'ISDN' section and enable the following:
enter it. At this point I assume you
Section "ISDN subsystem":
ISDN support: Yes
Support synchronous PPP: Yes
Use VJ compression with synchronous PPP: Yes
Support audio via ISDN: Yes
Support generic MP (RFC 1717): Yes
Hisax support: Yes (As module !!)
Teles 16.3c support: Yes (if you have Teles, Asuscom listed too). Choose NetJet if you have TigerJet or SC100P PCI modems.
* Beware it maight conflict some NE2000 Ethernet cards.
**NOTE: You *must* compile ISDN support as a *module* if you have *Teles*.
Other Sections:
You must enable Networking and PPP support.
Read the Kernel-HOWTO file for more information on how to compile your kernel.
After you compile it, install it where you want and add a proper section in
/etc/lilo.conf (run lilo -v) afterwards. We assume you installed the modules as
well (make modules; make modules_install) if you remember we compiled our Teles
driver as a module. (module-utils you might find helpful are: modprobe,depmod).
Reboot and run:
modprobe hisax io=IO irq=IRQ type=14 protocol=2
**You don't need to do that if you have TigerJet (NetJet).
**NOTE: Where 'IO' your ioaddress and 'IRQ' your ISDN IRQ address.
**TIP: You can add this line to your /etc/rc.d/rc.modules file.
This should conclude the kernel's re-compilation with ISDN support and drivers.
Step 2 : ISDN4k-Utils
#####################
Those utils are downloadable from:
ftp://ftp.franken.de/pub/isdn4linux/v2.0/isdn4k-utils-2.1b1.tar.gz
Unzip & untar the file and read the README files.
Run make config; make; make install.
You should now have:
- ipppd
- isdnctrl
- other utilities installed on your system.
Step 3 : Making devices
#######################
ISDN devices can be created with the 'mknod' utility.
You need a major and a minor number in order to create a device.
You can retrieve those numbers in :
/usr/src/linux/Documentation/devices.txt
Basically to establish a PPP connection to ACTCOM you will only need a few.
Below are instructions on how to create those few.
mknod /dev/ippp0 c 45 128
mknod /dev/isdnctrl c 45 0
mknod /dev/isdninfo c 45 255
**NOTE: Additional devices you might want to add:
isdn4linux virtual modem /dev/ttyI0 - /dev/ttyI63.
This concludes the installation of your ISDN card.
Step 4 : ISDN Configuration
###########################
**NOTE: You have to add this to /etc/rc.d/rc.local
-------- start of /etc/rc.d/rc.isdn rc.isdn ---------
#!/bin/sh
if [ -x /sbin/isdnctrl ]
then
/sbin/isdnctrl addif ippp0
/sbin/isdnctrl addphone ippp0 out 8319000 # If you live in Haifa.
/sbin/isdnctrl eaz ippp0 YOUR_PHONE
/sbin/isdnctrl huptimeout ippp0 300
/sbin/isdnctrl l2_prot ippp0 hdlc
/sbin/isdnctrl l3_prot ippp0 trans
/sbin/isdnctrl encap ippp0 syncppp
/sbin/isdnctrl pppbind ippp0 0
fi
-------- end of /etc/rc.d/rc.isdn rc.isdn ---------
**NOTE: You must also have /etc/ppp/ioptions
-------- start of /etc/ppp/ioptions ioptions ---------
/dev/ippp0
lock
noipdefault
passive
defaultroute
user LOGIN_NAME
-chap
-------- end of /etc/ppp/ioptions ioptions ---------
**NOTE: You must also have 'pap-secrets' . You must chmod 600 this file.
-------- start of /etc/ppp/pap-secrets ---------
# Secrets for authentication using PAP
# client server secret IP addresses
LOGIN_NAME * PASSWORD
-------- end of /etc/ppp/pap-secrets ---------
Step 5 : Establishing a connection to ACTCOM
############################################
Attached is a *perl* scripts for connecting/disconnecting from ACTCOM.
In order to connect run 'isdn start' .
In order to disconnect run 'isdn stop' .
Those two commands must be invoked by root.
-------- start of /usr/local/sbin/isdn isdn ---------
#!/usr/local/bin/perl
# I think RedHat install perl in /usr/bin/perl - so you need to change
# first line to be #!/usr/bin/perl
# or instead as root ln -s /usr/bin/perl /usr/local/bin/perl
#
# CIGAN <cigan@actcom.co.il>
#
($prog = $0) =~ s/.*\///;
$usage = <<EOT;
Usage: $prog [ start | stop ]
OPTIONS:
start - Starts the Connection
stop - Stops it
EOT
unless ($ARGV[0]) {
die $usage;
}
if ($ARGV[0] =~ /^start/) {
$start = 1;
}
elsif ($ARGV[0] =~ /^stop/) {
$stop = 1;
}
else {
die $usage;
}
if ($start) {
die "File /var/run/ipppd.pid found (IPPPD is already in use ?)\n" unless ! -f "/var/run/ipppd.pid";
print "Calling Actcom with ISDN...\n";
system "/sbin/ipppd file /etc/ppp/ioptions &";
sleep 2;
system "/sbin/isdnctrl dial ippp0";
}
if ($stop) {
die "IPPPD is not running\n" unless -f "/var/run/ipppd.pid";
print "Disconnecting from Actcom...\n";
system "/sbin/isdnctrl hangup ippp0";
open(PID, "/var/run/ipppd.pid") || die "Can't open /var/run/ipppd.pid";
kill 15, <PID>;
}
-------- end of /usr/local/sbin/isdn isdn ---------
Step 6 : Troubleshooting
########################
If something is not working please check out your log
files to see output of ipppd. Check your ISDN configuration and
after ippp connection is established check your routing tables
using the command route -n.
Step 7 : Additional documentation
#################################
Additional documentation is available at:
http://www.lrz-muenchen.de/~ui161ab/www/isdn/
If you have KDE window manager then you can enjoy of kISDN the 5.0 version
has builtin ActCom configuration. You can download kISDN form
http://www.kde.org or directly from kISDN web page http://kisdn.headlight.de.
##End
CIGAN <cigan@actcom.co.il>
GODSiD <odsid@actcom.co.il>
CIGAN.
"In a world without walls, who needs Windows?...
In a world without fences, who needs Gates?"
__
On Wed, 5 Aug 1998, mr rage wrote:
> Hey
> i'm and isdn net user and i'm haveing problems connecting to the net
> with my isdn card
> its a pci tas100h-n and i run under slackware 3.4.
> i tried using kisdn and isdn4linux and its not working for me
> if anyone can help me in any way please send me e-mail :
> rhge@isdn.net.il
> thanks and bye
>
>
>