From owner-freebsd-questions Thu Oct 21 3:28:55 1999 Delivered-To: freebsd-questions@freebsd.org Received: from unix.knu.ac.kr (unix.kyungpook.ac.kr [155.230.124.116]) by hub.freebsd.org (Postfix) with ESMTP id 69A4E14C8A for ; Thu, 21 Oct 1999 03:28:49 -0700 (PDT) (envelope-from hdcho@unix.knu.ac.kr) Received: (from hdcho@localhost) by unix.knu.ac.kr (8.9.3/8.9.3) id TAA32390; Thu, 21 Oct 1999 19:26:45 +0900 (KST) (envelope-from hdcho) Date: Thu, 21 Oct 1999 19:26:45 +0900 (KST) From: Huidae Cho Message-Id: <199910211026.TAA32390@unix.knu.ac.kr> To: brian@Awfulhak.org, freebsd-questions@freebsd.org Subject: Re: ppp.conf problem Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have no defaultrouter in /etc/rc.conf. And these are some related files. Look at the end of ppp.log. Something wrong? /etc/rc.conf ------------ releaseName="3.3-RELEASE" editor="/usr/bin/vi" firewall_enable="YES" firewall_type="open" network_interfaces="lo0" hostname="geni.home.org" saver="logo" keyrate="fast" linux_enable="YES" moused_enable="YES" lpd_enable="YES" nfs_server_enable="YES" nfs_client_enable="YES" /etc/ppp/ppp.conf ----------------- default: set device /dev/modem set log Phase Chat LCP IPCP CCP tun command set speed 115200 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" hitel: set phone 12345 set login "\\-\\-\\-\\- 3 \"ID :\" ID : PASSWORD ENTER \"\" H: \"internet 34\"" 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 /var/log/ppp.log ---------------- Oct 18 14:07:46 geni ppp[622]: Command: default: set speed 115200 Oct 18 14:07:46 geni ppp[622]: Command: default: set dial ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5 "" AT OK-AT-OK ATE1Q0 OK \dATDT\T TIMEOUT 40 CONNECT Oct 18 14:07:46 geni ppp[622]: tun0: Phase: Using interface: tun0 Oct 18 14:07:46 geni ppp[622]: tun0: Phase: PPP Started. Oct 18 14:07:52 geni ppp[622]: tun0: Command: set phone 12345 Oct 18 14:08:34 geni ppp[622]: tun0: Command: set login \-\-\-\- 3 "ID :" ID : PASSWORD ENTER "" H: "internet 34" Oct 18 14:08:37 geni ppp[622]: tun0: Command: set timeout 120 Oct 18 14:08:50 geni ppp[622]: tun0: Command: set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 Oct 18 14:08:54 geni ppp[622]: tun0: Command: add! default HISADDR Oct 18 14:09:00 geni ppp[622]: tun0: Command: dial Oct 18 14:09:00 geni ppp[622]: tun0: Phase: Connected! Oct 18 14:09:00 geni ppp[622]: tun0: Chat: Expecting: Oct 18 14:09:00 geni ppp[622]: tun0: Chat: Sending: AT^M Oct 18 14:09:00 geni ppp[622]: tun0: Chat: Expecting: OK-AT-OK Oct 18 14:09:00 geni ppp[622]: tun0: Chat: Wait for (5): OK Oct 18 14:09:00 geni ppp[622]: tun0: Chat: Sending: ATE1Q0^M Oct 18 14:09:00 geni ppp[622]: tun0: Chat: Expecting: OK Oct 18 14:09:00 geni ppp[622]: tun0: Chat: Wait for (5): OK Oct 18 14:09:02 geni ppp[622]: tun0: Phase: Phone: 12345 Oct 18 14:09:02 geni ppp[622]: tun0: Chat: Sending: ATDT12345^M Oct 18 14:09:02 geni ppp[622]: tun0: Chat: Expecting: CONNECT Oct 18 14:09:02 geni ppp[622]: tun0: Chat: Wait for (40): CONNECT Oct 18 14:09:24 geni ppp[622]: tun0: Chat: Expecting: \-\-\-\- Oct 18 14:09:24 geni ppp[622]: tun0: Chat: Wait for (30): \-\-\-\- --> ---- Oct 18 14:09:26 geni ppp[622]: tun0: Chat: Sending: 3^M Oct 18 14:09:26 geni ppp[622]: tun0: Chat: Expecting: ID : Oct 18 14:09:26 geni ppp[622]: tun0: Chat: Wait for (30): ID : Oct 18 14:09:30 geni ppp[622]: tun0: Chat: Sending: ID^M Oct 18 14:09:30 geni ppp[622]: tun0: Chat: Expecting: : Oct 18 14:09:30 geni ppp[622]: tun0: Chat: Wait for (30): : Oct 18 14:09:31 geni ppp[622]: tun0: Chat: Sending: PASSWORD^M Oct 18 14:09:31 geni ppp[622]: tun0: Chat: Expecting: ENTER Oct 18 14:09:31 geni ppp[622]: tun0: Chat: Wait for (30): ENTER Oct 18 14:09:31 geni ppp[622]: tun0: Chat: Sending: ^M Oct 18 14:09:31 geni ppp[622]: tun0: Chat: Expecting: H: Oct 18 14:09:31 geni ppp[622]: tun0: Chat: Wait for (30): H: Oct 18 14:09:32 geni ppp[622]: tun0: Chat: Sending: internet 34^M Oct 18 14:09:32 geni ppp[622]: tun0: IPCP: Using trigger address 0.0.0.0 Oct 18 14:09:32 geni ppp[622]: tun0: LCP: State change Initial --> Closed Oct 18 14:09:32 geni ppp[622]: tun0: LCP: State change Closed --> Stopped Oct 18 14:09:33 geni ppp[622]: tun0: LCP: LcpSendConfigReq Oct 18 14:09:33 geni ppp[622]: tun0: LCP: ACFCOMP[2] Oct 18 14:09:33 geni ppp[622]: tun0: LCP: PROTOCOMP[2] Oct 18 14:09:33 geni ppp[622]: tun0: LCP: ACCMAP[6] 0x00000000 Oct 18 14:09:33 geni ppp[622]: tun0: LCP: MRU[4] 1500 Oct 18 14:09:33 geni ppp[622]: tun0: LCP: MAGICNUM[6] 0x4696b394 Oct 18 14:09:33 geni ppp[622]: tun0: LCP: State change Stopped --> Req-Sent Oct 18 14:09:34 geni ppp[622]: tun0: LCP: Received Configure Request (1) state = Req-Sent (6) Oct 18 14:09:34 geni ppp[622]: tun0: LCP: MRU[4] 1500 Oct 18 14:09:34 geni ppp[622]: tun0: LCP: MAGICNUM[6] 0x9735ff18 Oct 18 14:09:34 geni ppp[622]: tun0: LCP: PROTOCOMP[2] Oct 18 14:09:34 geni ppp[622]: tun0: LCP: ACFCOMP[2] Oct 18 14:09:34 geni ppp[622]: tun0: LCP: SendConfigAck(Req-Sent) Oct 18 14:09:34 geni ppp[622]: tun0: LCP: MRU[4] 1500 Oct 18 14:09:34 geni ppp[622]: tun0: LCP: MAGICNUM[6] 0x9735ff18 Oct 18 14:09:34 geni ppp[622]: tun0: LCP: PROTOCOMP[2] Oct 18 14:09:34 geni ppp[622]: tun0: LCP: ACFCOMP[2] Oct 18 14:09:34 geni ppp[622]: tun0: LCP: State change Req-Sent --> Ack-Sent Oct 18 14:09:34 geni ppp[622]: tun0: LCP: Received Configure Ack (1) state = Ack-Sent (8) Oct 18 14:09:34 geni ppp[622]: tun0: LCP: State change Ack-Sent --> Opened Oct 18 14:09:34 geni ppp[622]: tun0: LCP: LcpLayerUp Oct 18 14:09:34 geni ppp[622]: tun0: Phase: NewPhase: Authenticate Oct 18 14:09:34 geni ppp[622]: tun0: Phase: NewPhase: Network Oct 18 14:09:34 geni ppp[622]: tun0: IPCP: State change Initial --> Closed Oct 18 14:09:34 geni ppp[622]: tun0: IPCP: IPCP Up event!! Oct 18 14:09:34 geni ppp[622]: tun0: IPCP: IpcpSendConfigReq Oct 18 14:09:34 geni ppp[622]: tun0: IPCP: IPADDR[6] 0.0.0.0 Oct 18 14:09:34 geni ppp[622]: tun0: IPCP: COMPPROTO[6] 16 VJ slots with slot compres Oct 18 14:09:34 geni ppp[622]: tun0: IPCP: State change Closed --> Req-Sent Oct 18 14:09:34 geni ppp[622]: tun0: CCP: State change Initial --> Closed Oct 18 14:09:34 geni ppp[622]: tun0: CCP: CCP Up event!! Oct 18 14:09:34 geni ppp[622]: tun0: CCP: CcpSendConfigReq Oct 18 14:09:34 geni ppp[622]: tun0: CCP: DEFLATE[4] win 15 Oct 18 14:09:34 geni ppp[622]: tun0: CCP: PRED1[2] Oct 18 14:09:34 geni ppp[622]: tun0: CCP: State change Closed --> Req-Sent Oct 18 14:09:34 geni ppp[622]: tun0: IPCP: Received Configure Request (1) state = Req-Sent (6) Oct 18 14:09:34 geni ppp[622]: tun0: IPCP: IPADDR[6] 123.456.789.012 Oct 18 14:09:34 geni ppp[622]: tun0: IPCP: COMPPROTO[6] 16 VJ slots with slot compression Oct 18 14:09:34 geni ppp[622]: tun0: IPCP: SendConfigAck(Req-Sent) Oct 18 14:09:34 geni ppp[622]: tun0: IPCP: IPADDR[6] 123.456.789.012 Oct 18 14:09:34 geni ppp[622]: tun0: IPCP: COMPPROTO[6] 16 VJ slots with slot compression Oct 18 14:09:34 geni ppp[622]: tun0: IPCP: State change Req-Sent --> Ack-Sent Oct 18 14:09:34 geni ppp[622]: tun0: CCP: Received Configure Request (1) state = Req-Sent (6) Oct 18 14:09:34 geni ppp[622]: tun0: CCP: SendConfigAck(Req-Sent) Oct 18 14:09:34 geni ppp[622]: tun0: CCP: State change Req-Sent --> Ack-Sent Oct 18 14:09:34 geni ppp[622]: tun0: IPCP: Received Configure Nak (1) state = Ack-Sent (8) Oct 18 14:09:34 geni ppp[622]: tun0: IPCP: IPADDR[6] 10.0.2.15 Oct 18 14:09:34 geni ppp[622]: tun0: IPCP: IPADDR[6] changing address: 0.0.0.0 --> 10.0.2.15 Oct 18 14:09:34 geni ppp[622]: tun0: IPCP: IpcpSendConfigReq Oct 18 14:09:34 geni ppp[622]: tun0: IPCP: IPADDR[6] 10.0.2.15 Oct 18 14:09:34 geni ppp[622]: tun0: IPCP: COMPPROTO[6] 16 VJ slots with slot compres Oct 18 14:09:34 geni ppp[622]: tun0: CCP: Received Configure Reject (1) state = Ack-Sent (8) Oct 18 14:09:34 geni ppp[622]: tun0: CCP: RecvConfigRej. Oct 18 14:09:34 geni ppp[622]: tun0: CCP: DEFLATE[4] Oct 18 14:09:34 geni ppp[622]: tun0: CCP: PRED1[2] Oct 18 14:09:34 geni ppp[622]: tun0: CCP: CcpSendConfigReq Oct 18 14:09:34 geni ppp[622]: tun0: IPCP: Received Configure Ack (2) state = Ack-Sent (8) Oct 18 14:09:34 geni ppp[622]: tun0: IPCP: State change Ack-Sent --> Opened Oct 18 14:09:34 geni ppp[622]: tun0: IPCP: IpcpLayerUp(9). Oct 18 14:09:34 geni ppp[622]: tun0: IPCP: myaddr = 10.0.2.15 hisaddr = 123.456.789.012 Oct 18 14:09:34 geni ppp[622]: tun0: LCP: OsLinkup: 123.456.789.012 Oct 18 14:09:34 geni ppp[622]: tun0: CCP: Received Configure Ack (2) state = Ack-Sent (8) Oct 18 14:09:34 geni ppp[622]: tun0: CCP: State change Ack-Sent --> Opened Oct 18 14:09:34 geni ppp[622]: tun0: CCP: CcpLayerUp(9). Oct 18 14:09:34 geni ppp[622]: tun0: CCP: Out = none[-1], In = none[-1] Brian wrote: ------------ > > > I used ppp.conf well in 3.2-19990815-STABLE. However, after i upgraded to > > 3.3-RELEASE, it didn't work. I checked /var/log/ppp.log and it connected > > to ISP but didn't add default router. So i did 'route add default 123.456.789.012' by hand. Of course, 123.456.789.012 is HISADDR. After 'route add', i could > > use PPP connection. What's wrong? > > > > I ran 'ppp -auto hitel' in 3.2. Some clue? Help me... > > > > > > ----- ppp.conf ----- > > default: > > set device /dev/modem > > set log Phase Chat LCP IPCP CCP tun command > > set speed 115200 > > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" > > > > hitel: > > set phone 12345 > > set login "\\-\\-\\-\\- 3 \"ID :\" ID : PASSWORD ENTER \"\" H: \"internet 34\"" > > 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 > > I'd hazard a guess that you've got ``defaultrouter'' set in > /etc/rc.conf. > > Have you tried looking in /var/log/ppp.log ? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message