Google Groups unterstützt keine neuen Usenet-Beiträge oder ‑Abos mehr. Bisherige Inhalte sind weiterhin sichtbar.

ISDN and Slackware

0 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Robert Folland

ungelesen,
07.11.2000, 03:00:0007.11.00
an
A while ago I tried RedHat and got online with ISDN by using
isdn4linux, isdn4k-utils and isdn4net.

I tried it on Slackware now and I'm getting trouble with isdn4net
being designed for RedHat. It wants the script "ifup" which I believe
is a RedHat script.

I don't have a lot of time to find things out now, could someone who
is online with ISDN give some hints?

I actually think ipppd is missing the /etc/ppp/ioptions file
also. What should be in that file?

Thanks for any help,
-Robert


Hirada Batanguena

ungelesen,
07.11.2000, 18:11:5407.11.00
an
On 07 Nov 2000 21:34:53 +0000, Robert Folland <robd...@online.no>
wrote:

Well. You basically just need the isdn4k-utils and support in the
kernel (of course).
I don´t know what isdn4net was for, but you don´t need it. So you´d
better deinstall it.

This is my isdninit script. I have put it in /usr/sbin (and start it
up during boot from /etc/rc.local.) - but thats up to your personal
preferences where you put it and when you call it.

---------------------------------
#!/bin/bash

# Add ISDN Interface
isdnctrl addif ippp0

# Defining needed protocols
isdnctrl encap ippp0 syncppp
isdnctrl l2_prot ippp0 hdlc
isdnctrl l3_prot ippp0 trans

# Set your local phone number (MSN)
isdnctrl eaz ippp0 1234567

# Set dial up number (of your ISP)
isdnctrl addphone ippp0 out 7654321

# set Timeout (hangup after inactivity in seconds)
isdnctrl huptimeout ippp0 1200

# no Callback allowed
isdnctrl cbdelay ippp0 0
isdnctrl callback ippp0 off

# Don´t answer calls
isdnctrl secure ippp0 on

# Number of redials
isdnctrl dialmax ippp0 1

# initialize the card (the IP adress is ok, as long as it is in a
# different subnet than your other cards) The subnetmask is
# for Point to Point connections, so it´s ok, too
ifconfig ippp0 192.168.10.1 netmask 255.255.255.255 up

# starting the ipppd Deamon and read options.ippp0
ipppd /dev/ippp0 file /etc/ppp/ioptions.ippp0
# ipppd pidfile /var/run/ipppd.ippp0.pid file /etc/ppp/options.ippp0

echo "initisdn done ...."
-------------------------------

Next you need /etc/ppp/ioptions and /etc/ppp/ioptions.ippp0

Basically, since we have only one connection and only one interface,
we do need only one ioptions file with values. The other can be empty
(just a comment) but needs to be existant.

/etc/ppp/ioptions :

-------------------------
# Identify Network Device
/dev/ippp0

# Set debug (if wanted/needed)
# debug

# Username (not sure, if nedded here, too)
user "your username for your ISP"

# accept IP-Adresses given by ISP
ipcp-accept-local
ipcp-accept-remote

# makes sure, the Defaultroute is set
defaultroute
-------------------------


/etc/ppp/ioptions.ippp0

--------------------
#This file is needed but does not need any values
---------------------

Finally, you need a chap-secrets or pap-secrets (depending on your
provider. If unsure, create both):

/etc/ppp/chap-secrets (/etc/ppp/pap-secrets)

----------------
username * password
----------------

Since this files contain your account data in clear text, make sure,
only root has access to them !!!!!

Or wait until you are asked by your provider for your pass and insert
only the name (does not work always!)

Finally you want to add "/sbin/isdnctrl dial ippp0" and "/sbin/isdctrl
hangup ippp0" to your /etc/sudoers file, so that you don´t have to be
root do dial in. If you don´t have this file, install the sudo
package. (man sudo, man visudo, man sudoers (?))


I personally do have a hangup script, which also assings the 192... IP
back to the interface (just looks better when calling netstat or
route). But this is not compulsary.
And do not forget to make the initisdn script executable.

Good Luck


Robert Folland

ungelesen,
08.11.2000, 03:00:0008.11.00
an
Hirada,

Thank you very much for your listing, I used most of it and it worked
immediately!

I am now online from Linux instead of Windows. Thank you again!

-Robert

0 neue Nachrichten