[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ISDN & diald: router setup tale of woe



Sorry about delay in replying to this, Tony, and thanks for your help so
far.

On Sat, Feb 16, 2002 at 08:06:09PM +0100, Tony Crawford wrote:
> Richard Gaywood wrote (on 16 Feb 2002 at 18:37):
> > On Sat, Feb 16, 2002 at 07:21:34PM +0100, Tony Crawford wrote:
> > > Richard Gaywood wrote (on 16 Feb 2002 at 18:05):
> > > Have you read in the man page about the "demand" and "persist"
> > > options?
> > 
> > man ipppd reports "persist" as obsolete in ipppd; it'd get me into
> > trouble with my ISP anyway, although I can see what you're saying.
> > It doesn't mention a demand option at all.
> 
> Yes, sorry, "demand" is a pppd option. What you want for ipppd is 
> "dialmode=auto" in /etc/isdn/device/ippp0. (Do you have lots of 
> nice explanatory comments in that file?) 

Riiiiggght. Because of this weird-assed config script I've used, most of
the config is tucked away in /etc/isdn/accounts/conf-MYISP. However, I
can boot the router, run /etc/init.d/isdn, and then do this:

[/etc/isdn]# isdnctrl writeconf foo
Will overwrite section `ISDNCTRL'!
ISDN Configuration written to foo.
[/etc/isdn]# cat foo
###############################################################################
#
# File foo generated by isdnctrl 3.0beta2 on Thu Feb 21 22:47:35 2002
#
###############################################################################

[ISDNCTRL]
INTERFACES = {

  [INTERFACE]
  NAME = ippp0
  EAZ = 01495244285
  PHONE_OUT = 08089916001 08089916001
  SECURE = on
  DIALMODE = auto
  DIALMAX = 10
  HUPTIMEOUT = 7200
  IHUP = off
  CHARGEHUP = off
  L2_PROT = hdlc
  L3_PROT = trans
  ENCAP = syncppp
  PPPBIND = 0
}

So it looks like it's in auto dialmode already. Another piece of the
puzzle that might be relevent: 

[/etc/isdn]# route            
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
195.92.66.0     *               255.255.255.0   U     0      0        0 ippp0
default         cougar.lns.watf 0.0.0.0         UG    0      0        0 ippp0
[/etc/isdn]# isdnctrl hangup ippp0
ippp0 hung up
[/etc/isdn]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
195.92.66.0     *               255.255.255.0   U     0      0        0 ippp0
[/etc/isdn]# isdnctrl dial ippp0
Dialing of ippp0 triggered
[/etc/isdn]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
195.92.66.0     *               255.255.255.0   U     0      0        0 ippp0
default         *               0.0.0.0         U     0      0        0 ippp0

Am I right in theorising the route is getting messed up?

> That should make the ISDN line dial whenever packets are sent to the
> interface ippp0. In order for packets to get sent there, you usually
> want to set a default route--your handy-dandy config scripts may have
> done this for you; verify using route -n.

Aha. Thought so. I'll have another comb through the config and try and
resolve where the default route gets deleted. What should happen to it
when ippp0 hangs up or the remote caller hangs up? I'm guessing it
should stay in place?

> Also, the isdnutils package sets up scripts in /etc/ppp/ip-up.d/ and
> ...ip-down.d. You can amend these scripts to activate firewall rules
> whenever you ISDN line is up, or to correct the routing.  (There was a
> time when the default route had to be restored in ip- down after every
> hangup.) These scripts are also full of helpful comments.

Ahhhh, right. Thanks for your help; hopefully I'll be able to get this
licked now. I'll let you know :oD

-- 
"Got you in my sites and I'm gonna make you bleed,                 |   -=R=-    
 Get used to hearing this, `you have lost the lead.'"              |web: http://
 -- MC Hawking                                                     |fscked.co.uk
                                                                   |icq:66545079



Reply to: