Mandriva

ISDN Dial-up II

Summary:

  • ISDN For Users
  • Dial On Demand
  • Troubleshooting
  • An ISDN-Dialer
Section index - KB index

ISDN For Users

So far, only 'root' can open and close connections. This may be a bit awkward, so let's change this.
As 'root' create a new user group, called 'net' (or any other name). Use Linuxconf via ~DrakConf ('User accounts' - 'Group definitions' - 'Add'. Enter the new group name and the accounts which should be able to dial-out). Or simply edit '/etc/group':

old: radio:x:83: nobody:x:99: new: radio:x:83: net:x:84:tom nobody:x:99:

Now you need to change some permissions:

chgrp net /dev/isdninfo /dev/isdnctrl* /sbin/isdnctrl chmod g=rw /dev/isdninfo /dev/isdnctrl

To test this you either need to login again (since '/etc/group' is only read at login) or you issue the command

newgrp net
in the terminal where you want to test the connection. Now try again:

/sbin/isdnctrl dial ippp0

(Note the prefixed path. The '/sbin' directory is not part of a users $PATH.). If everything's working fine, you may place a 'connect' and 'disconnect' icon on your desktop. In KDE, you would do it like this:

  • Right-click on desktop. Choose 'New' - 'Application'
  • Enter a name for the kdelnk-file (e.g. dial.kdelnk)
  • In the new box, labeled 'kfm', go to the 'Execute' tab and enter the complete command line.
  • (Optionally) Klick on the icon and choose an icon.
  • Repeat for hangup.
section index

Dial On Demand

You will note that setting the dial mode to 'auto' in '/etc/isdn/profile/link/myisp' alone doesn't turn 'dial on demand' on.
This is because there is no default route yet via which network packages are sent. They can't find the ippp0 interface and therefore don't trigger a dial.
You can change this by setting the default route with

route add default ippp0

Attention1.1 There is always a certain amount of networking going on in GNU/Linux. Watch the line very closely for unwanted dial-ups (you can do this with the supplied program 'xisdnload' or its K-clone 'kisdnload')1.1 Read section 22 of the isdn4linux FAQ on how to hunt these down.

If your provider allocates IP dynamically, the default route will be deleted upon closing the uplink. To prevent this, create a new file called 'ip-down.local' in '/etc/ppp':

~#1.1 /bin/bash /sbin/route add default ippp0

and make it executable (

chmod +x
).

section index

Troubleshooting

Scan '/var/log/messages' for ipppd entries.

Generate more verbose logs:

  • Run
    isdnctrl verbose 3
    . The output goes to '/var/log/messages'.
  • Edit '/etc/syslog.conf' and add:
daemon. /var/log/ippp-log

This will write all ippp-messages to the file /var/log/ippp-log.

Read the page on PPP-troubleshooting, some items are applicable to ippp, too.

Read the isdn4linux FAQ1.1 It is very exhaustive and detailed. You will find a local copy in '/usr/share/doc/isdn4k-utils-{...}/'

Send your question to the isdn4linux mailing list. You can subscribe to it by sending an email to [email protected] with this line in the body of the message:

subscribe isdn4linux {your email address}

List languages are English and German.

Visit the 'Links' page on the isdn4linux home page. It lists further international resources.

section index

An ISDN-Dialer

Apart from making your own 'Connect/Disconnect' icons or menu entries, there is at least one dedicated dialer, wmisdn. 'wmisdn' can be run as a 'dockapp' in Window Maker or Afterstep, or as a standalone program. It dials and hangs up with a simple mouse click and shows the current connection status. Despite its low version number it compiles and runs flawlessly.

The programmer suggests to run it 'setuid root' (read the pages on permissions, if you don't know what that is). But if you've set up the permissions like I've explained, you don't need to do that.

section index


Related Resources:

isdn4linux FAQ

man isdnctrl

Sample files in /usr/share/doc/isdn4net-{...}
isdn4linux website

Revision / Modified: June 21, 2001
Author: Tom Berger

Legal: This page is covered by the GNU Free Documentation License. Standard disclaimers of warranty apply. Copyright LSTB and Mandrakesoft.

KB - ISDN Dial-up II
Version 1.3 last modified by AdminWiki on 22/03/2004 at 09:44

 


en

RSS

Creator: AdminWiki on 2004/03/22 09:44
(c) Mandriva 2007
18888888