Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Nov 1998 08:44:13 +1030 (CST)
From:      Dave Edwards <davo@chunga.apana.org.au>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   Ijppp and the -alias option
Message-ID:  <199811122214.IAA14495@chunga.apana.org.au>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811122214.IAA14495>