From owner-freebsd-questions Sat Sep 19 11:33:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA03235 for freebsd-questions-outgoing; Sat, 19 Sep 1998 11:33:30 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA03228 for ; Sat, 19 Sep 1998 11:33:23 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from woof.lan.awfulhak.org (root@woof.lan.awfulhak.org [172.16.0.7]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id TAA09643; Sat, 19 Sep 1998 19:20:52 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from woof.lan.awfulhak.org (brian@localhost [127.0.0.1]) by woof.lan.awfulhak.org (8.9.1/8.9.1) with ESMTP id TAA01628; Sat, 19 Sep 1998 19:20:52 +0100 (BST) (envelope-from brian@woof.lan.awfulhak.org) Message-Id: <199809191820.TAA01628@woof.lan.awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: BEAUPRE Antoine cc: Brian Somers , Doug White , freebsd-questions Subject: Re: Little PPP stupid probs... In-reply-to: Your message of "Sat, 19 Sep 1998 08:11:32 EDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 19 Sep 1998 19:20:51 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > So here's what I tried: > > ppp.linkup: > ------------------- > MYADDR: > delete! 0 > add 0 0 HISADDR > ------------------- > > ppp.conf > -------------------- > default: > allow users beaupran root > set log Phase Chat Connect Carrier LCP IPCP CCP tun command > set device /dev/cuaa2 > set speed 115200 > deny lqr > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK > ATE1Q0S7=45S > 0=0S11=50L3M1V1X4&c1 OK \\dATDT\\T TIMEOUT 40 CONNECT" > set log +tcp/ip > ---------------------- > > the ppp session: (it is //commented) > ----------------------- > beaupran@outpost [7:41am] /etc/ppp# ppp > Working in interactive mode > Using interface: tun0 > ppp ON outpost> set line /dev/modem > ppp ON outpost> ppp ON outpost> > ppp ON outpost> accept pap > ppp ON outpost> accept chap > ppp ON outpost> set log local +ipcp > ppp ON outpost> add default HISADDR > Warning: Add route failed: 0.0.0.0 already exists > // is this normal? Yes if you already have a default route. Don't specify a default route in /etc/rc.conf or else use ``add!''. > ppp ON outpost> term > Working in interactive mode > Entering terminal mode. > Type `~?' for help. > > atdt3432411 > CONNECT 115200 > > Serveur de terminaux AS1.CC. > (? = commandes; AIDE = aide; MOTD = message du jour) > > > User Access Verification > > Username: beaupran > Password: > umnet>ppp derby.jsp > Entering PPP mode. > // here it says some stuff about IP addresses and interfaces... > // should I care? I don't know what to do with this info... > Async interface address is unnumbered (Ethernet0) > Your IP address is 132.204.45.26. MTU is 1500 bytes > Header compression will match your system. > > ~ppp ON outpost> Packet mode. > IPCP: State change Initial --> Closed > IPCP: IPCP Up event!! > IPCP: IpcpSendConfigReq > // ok... is this coming from here or there: > IPCP: IPADDR[6] 127.0.0.1 > IPCP: COMPPROTO[6] 16 VJ slots with slot compres This says ``we want 127.0.0.1''. > IPCP: State change Closed --> Req-Sent > IPCP: Received Configure Request (1) state = Req-Sent (6) > IPCP: COMPPROTO[6] 16 VJ slots without slot compression > IPCP: IPADDR[6] 132.204.9.20 > IPCP: SendConfigAck(Req-Sent) > IPCP: COMPPROTO[6] 16 VJ slots without slot compression > IPCP: IPADDR[6] 132.204.9.20 We agree that he can have 132.204.9.20 > IPCP: State change Req-Sent --> Ack-Sent > IPCP: Received Configure Ack (1) state = Ack-Sent (8) He says 127.0.0.1 is fine. Your ISPs ppp is misconfigured. > IPCP: State change Ack-Sent --> Opened > PPP ON outpost> IPCP: IpcpLayerUp(9). > IPCP: myaddr = 127.0.0.1 hisaddr = 132.204.9.20 We're connected, and nobody in the world is ever going to talk to us. You'll need to add a line to your config: set ifaddr 127.0.0.1/0 127.0.0.2/0 255.255.255.0 0.0.0.0 the last 0.0.0.0 is the key bit. It tells ppp to send 0.0.0.0 as your IP address. This should force your ISP to actually allocate an IP number to you. This is suggested in all the latest docs :-) It's probably not stressed as much in your version. > // ok so I get an IP address assign if I get it... > PPP ON outpost> > PPP ON outpost> term > LCP state is [Opened] > Warning: term: Failed 1 > > [some 2 minutes later...] > > PPP ON outpost> IPCP: OsLinkdown: 132.204.9.20 > IPCP: IpcpLayerDown. > IPCP: Connect time: 346 secs: 0 octets in, 908 octets out > IPCP: total 2 bytes/sec > IPCP: State change Opened --> Starting > fetchmail: no other fetchmail is running > Can't connect to audio server > > ppp ON outpost> q > ----------------------------------- > > I don't understand. Trying to telnet the remote gives me: > telnet 132.204.9.20 > Trying 132.204.9.20... > telnet: Unable to connect to remote host: Operation timed out > > > I don't understand. My next move will be to try the new ppp. but I'll wait > first for your advice. > > Thanks again! [.....] Cheers. > +-----------------------------------+ > | Free the world from businessmen | > | Free yourself from your money | > +-----------------------------------+ > Free the web. > Spidey > > visit: http://www.JSP.UMontreal.CA/~beaupran > -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message