Problems Connecting to the internet using FreeBSD
Brian Somers
brian at Awfulhak.org
Thu Apr 26 14:31:08 BST 2001
> Right, I hit a problem on the way...
>
> First problem is with the line 'add default HISADDR', when that's in the
> ppp.conf I get this msg: ppp ON chewy> dial btconnect
> Warning: Add route failed: default already exists
Either remove the defaultrouter from /etc/rc.conf or change the
``add'' to ``add!''. See the man page.
> But without it connects fine, but I still couldn't ping anything, maybe
> due to the machine is routing through my win2k box already, that's
> another question, where about in bsd do I look at to stop it routing and
> just use the modem..
This is the same problem as above.
> Here's the log from when it did connect.
>
> Apr 26 13:44:20 chewy ppp[13530]: tun3: IPCP: Secondary nameserver set
> to 194.72.9.34
> Apr 26 13:44:20 chewy ppp[13530]: tun3: IPCP: deflink: SendConfigReq(2)
> state = Ack-Sent
> Apr 26 13:44:20 chewy ppp[13530]: tun3: IPCP: IPADDR[6] 217.32.158.140
> Apr 26 13:44:20 chewy ppp[13530]: tun3: IPCP: COMPPROTO[6] 16 VJ slots
> with slot compression
> Apr 26 13:44:20 chewy ppp[13530]: tun3: IPCP: PRIDNS[6] 194.74.65.68
> Apr 26 13:44:20 chewy ppp[13530]: tun3: IPCP: SECDNS[6] 194.72.9.34
> Apr 26 13:44:20 chewy ppp[13530]: tun3: IPCP: deflink: RecvConfigAck(2)
> state = Ack-Sent
> Apr 26 13:44:20 chewy ppp[13530]: tun3: IPCP: deflink: State change
> Ack-Sent --> Opened
> Apr 26 13:44:20 chewy ppp[13530]: tun3: IPCP: deflink: LayerUp.
> Apr 26 13:44:20 chewy ppp[13530]: tun3: IPCP: myaddr 217.32.158.140
> hisaddr = 213.120.208.204
>
> Which ip is mine ? :|
>
> Thanks for the help so far!
>
> Regards,
>
> William Cooper
>
>
> -----Original Message-----
> From: Neil Ford [mailto:neil at ourshack.com]
> Sent: 26 April 2001 13:29
> To: .
> Cc: freebsd-users at uk.freebsd.org
> Subject: Re: Problems Connecting to the internet using FreeBSD
>
> On Thu, Apr 26, 2001 at 08:44:03AM +0100, . wrote:
> > My /etc/ppp/ppp.conf:
> > default:
> >
> Okay, here's a version built from
> /usr/share/examples/ppp/ppp.conf.sample. Try this and see how you get
> on.
>
> <--- CUT HERE --->
> #
> # ppp.conf - 200/04/26 - Neil Ford (neil at yacsc.com)
> #
> default:
> set log Phase Chat LCP IPCP CCP tun command
> set device /dev/cuaa1
> set speed 115200
> set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT \
> OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
>
> #
> # You *MUST* customise ``ISPphoneNo'', ``MyName'' and ``MyKey'' below. #
> btconnect:
> set phone ISPphoneNo
> set login
> set authname MyName
> set authkey MyKey
> set timeout 120
> set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
> add default HISADDR
> enable dns
>
> <-- CUT HERE -->
>
> Start ppp with the following command;
>
> ppp -auto -nat btconnect
>
> and then try pinging something and see if the modem dials. Check the
> logs and hopefully you'll see a successful connection. If not, post the
> log output and we'll take it from there.
>
> Neil.
> --
> Neil Ford
> Managing Director, Yet Another Computer Solutions Company Limited
> neil at yacsc.com - http://www.yacsc.com
--
Brian <brian at Awfulhak.org> <brian@[uk.]FreeBSD.org>
<http://www.Awfulhak.org> <brian@[uk.]OpenBSD.org>
Don't _EVER_ lose your sense of humour !
More information about the Ukfreebsd
mailing list