*BSD News Article 89589


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!uunet!in1.uu.net!207.172.3.52!feed1.news.erols.com!howland.erols.net!rill.news.pipex.net!pipex!hose.news.pipex.net!pipex!news.utell.co.uk!ui-gate.utell.co.uk!brian
From: brian@ui-gate.utell.co.uk (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: tun device
Date: 19 Feb 1997 10:09:44 GMT
Organization: Utell International
Lines: 38
Message-ID: <5eejh8$77j@ui-gate.utell.co.uk>
References: <330A42AF.5C82@worldnet.att.net>
NNTP-Posting-Host: ui-gate.utell.net
X-Newsreader: TIN [version 1.2 PL2]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:35737

Vijay Konkimalla (vjmrudula@worldnet.att.net) wrote:
: Hi,

: Currently, I am using FreeBSD 2.1 version and am using tun0 device to
: connect to the ISP provider (ATT Worldnet). I have a 33.6 USRobotics 
: Sportster modem and am running into the following problems:


: 1. System hangs up intermittantly when I "dial worldnet". (It some times
: talks to modem. Otherwise System hangs up) I suppose, this problem
: is due to the modem.

Have a look in the modem manual (I havn't got one handy at the moment).
There's a register setting (around S9 or S13 or something) that controls
how long carrier can be lost before the modem hangs up.  If you've got
a bad phone line, this value will need to be greater than 7/100 seconds
(or whatever the default is).

: 2. How do i specify modem characteristics to the system?
I'm not sure what you mean - you can do AT commands in the
dial string (see /etc/ppp/ppp.conf.sample).

: 3. Since i am assigned the IP address dynamically, what should be
: contained in /etc/hosts file?

/etc/ppp/ppp.conf:
    ifaddr 10.10.10.10/0 10.10.10.11/0 255.255.255.0
    delete ALL
    add 0 0 HISADDR

/etc/ppp/ppp.linkup
    delete ALL
    add 0 0 HISADDR

--
Brian <brian@awfulhak.demon.co.uk> <brian@utell.co.uk> <brian@freebsd.org>
      <http://www.awfulhak.demon.co.uk>
Don't _EVER_ lose your sense of humour !