Re: kernel ppp vs. user ppp

[ Available lists | Index of freebsd-questions | Month of Jul 2000 | Week of 24 Jul 2000 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Miklos Niedermayer <mico@bsd.hu>
Date
24 Jul 2000 05:40:35
Subject
Re: kernel ppp vs. user ppp
Message-ID
20000724144223.E314@bsd.hu


[ Hide this part ]
Hi,

Roberto Nunnari, AGIE:

> Any hint on how to modify ppp.conf? What should I use
> instead of
> set device = /dev/cuaa0
>
> How can I use both channel B1 and B2?

Please take a look at /usr/share/examples/ppp, you can find there
some good examples.

First, you have to tell isdnd that you want to use the raw B channels:

isdnd.rc:

[...]
entry
name = userppp # name for reference. This name will
# be used in the logfile to identfy
# this entry.
# the network or telephone device
# the data traffic should be routed to:
usrdevicename = rbch # ipr, isp, tel, rbch
usrdeviceunit = 0 # unit number
# the ISDN controller number to be
# used for this entry:
isdncontroller = 0 # contoller to use or -1 to use any
isdnchannel = -1 # channel (1/2) to use or 0 or -1 for any
[...]

Please read the isdn4bsd documentation if you don't know what to do,
or ask clever people :)


In ppp.conf, you should use

set device = /dev/i4brbch0 /dev/i4brbch1

This uses both B channels (only one of them by default; this is the preferred
method if the line is used by other telephones, etc.)

If you want multilink PPP, try something like this:

# Multilink mode please
set mrru 1500
# Two new links
clone 1,2
# And get rid of the old one with the crusty name
link deflink rm
# Automatically manage the second link
link * set mode auto
set autoload 10 100 30

And again, please take a look at /usr/share/examples/ppp.conf.isdn and
ppp.conf.sample


> Do I have to start ppp like before:
> ppp -auto -nat myisp-isdn
>
> and then
> isdnd -f (to see what's going on)

Please start isdnd first, then PPP.

You should use rc.conf to start isdnd & ppp:

ppp_enable="yes"
ppp_profile="myisdn"
# default settings are: ppp_nat="yes" and ppp_mode="auto"

isdn_enable="yes"
isdn_fsdev="no" #or a terminal name if you need for eg /dev/ttyva

Good luck with i4b!

--
mico@bsd.hu
It is easier to fix Unix than to live with NT.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Elapsed time: 0.153 seconds