From owner-freebsd-hackers Thu Nov 12 14:14:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA00301 for freebsd-hackers-outgoing; Thu, 12 Nov 1998 14:14:52 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from chunga.apana.org.au (chunga.apana.org.au [202.12.89.57]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA00291 for ; Thu, 12 Nov 1998 14:14:47 -0800 (PST) (envelope-from davo@chunga.apana.org.au) Received: (from davo@localhost) by chunga.apana.org.au (8.9.1/8.8.8) id IAA14495 for freebsd-hackers@freebsd.org; Fri, 13 Nov 1998 08:44:15 +1030 (CST) (envelope-from davo) From: Dave Edwards Message-Id: <199811122214.IAA14495@chunga.apana.org.au> Subject: Ijppp and the -alias option To: freebsd-hackers@FreeBSD.ORG Date: Fri, 13 Nov 1998 08:44:13 +1030 (CST) X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi folks, I've been trying to use a few machines on rfc-1597 addresses connecting through a FreeBSD router which dials into an ISP using dynamic addressing. It seems that the ppp process ignores the -background switch and sets up demand dialing when you use the -alias option. The line will drop (and stay dropped) with entries in the logs saying "Idle time expired" when activity ceases (about 30 seconds or so). It turns out that the cost of redialling is more than keeping the link up during the day and with M$ machines on the ethernet, I don't want to risk dialing out at night for no reason. Is this normal behaviour or is there something I'm missing? I can use workarounds if I need to. Also are there any gotchas in this sort of setup that I should watch out for? I've appended the relavent section in ppp.conf and the chunk of log in question. TIA dave -- Dave Edwards davo@chunga.apana.org.au || davo@sa.apana.org.au Adelaide, South Australia ---- ppp is run using: /usr/sbin/ppp -alias -background isp Section from ppp.conf ------- isp: set log Phase Connect Carrier LCP IPCP CCP command set device /dev/cuaa0 set speed 38400 set phone 12345678 set authname foo set authkey foobar set ifaddr 10.10.10.10/0 10.10.11.11/0 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK ATE1Q0&D2 OK \\dATDT\\T TIMEOUT 40 CONNECT" default: set device /dev/cuaa0 set speed 57600 disable pred1 deny pred1 disable lqr deny lqr Extract from ppp.log --------- Jan 4 04:00:11 gw ppp[402]: Phase: Parent: PPP enabled. Jan 4 04:00:11 gw ppp[403]: Phase: Parent notified of success. Jan 4 04:00:11 gw ppp[403]: Command: MYADDR: delete ALL Jan 4 04:00:11 gw ppp[403]: Command: MYADDR: add 0 0 HISADDR Jan 4 04:00:11 gw ppp[403]: CCP: Received Configure Ack (2) state = Ack-Sent (8) Jan 4 04:00:11 gw ppp[403]: CCP: State change Ack-Sent --> Opened Jan 4 04:00:11 gw ppp[403]: CCP: CcpLayerUp(9). Jan 4 04:00:11 gw ppp[403]: CCP: Out = none[-1], In = none[-1] Jan 4 04:00:11 gw ppp[403]: CCP: Received Terminate Request (2) state = Opened (9) Jan 4 04:00:11 gw ppp[403]: CCP: CcpLayerDown. Jan 4 04:00:11 gw ppp[403]: CCP: CcpSendTerminateAck Jan 4 04:00:11 gw ppp[403]: CCP: State change Opened --> Stopping Jan 4 04:00:14 gw ppp[403]: CCP: State change Stopping --> Stopped Jan 4 04:00:14 gw ppp[403]: CCP: CcpLayerFinish. Jan 4 04:01:11 gw ppp[403]: Phase: HDLC errors -> FCS: 1 ADDR: 0 COMD: 0 PROTO: 0 Jan 4 11:05:17 gw ppp[403]: Phase: Idle timer expired. Jan 4 11:05:17 gw ppp[403]: Phase: NewPhase: Terminate Jan 4 11:05:17 gw ppp[403]: IPCP: OsLinkdown: 202.12.89.57 Jan 4 11:05:17 gw ppp[403]: IPCP: IpcpLayerDown. Jan 4 11:05:17 gw ppp[403]: IPCP: Connect time: 25506 secs: 4216637 octets in, 4219767 octets out ----------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message