*BSD News Article 58353


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!howland.reston.ans.net!newsfeed.internetmci.com!in2.uu.net!newsfeed.tip.net!news.algonet.se!usenet
From: johang@algonet.se (Johan Granlund)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: ppp and slirp,HELP
Date: Sun, 07 Jan 1996 17:42:11 GMT
Organization: AlgoNet Public Access Node, Stockholm
Lines: 91
Message-ID: <4cp0g6$h34@prometheus.algonet.se>
NNTP-Posting-Host: sophocles.algonet.se
X-Newsreader: Free Agent 1.0.82      

Problems!!!  (for me)

It seems that a lot of you out there have got ppp to work. I only gets
som sort of timeouts and telnet and ftp is not getting throu.
Beqause of my provider is using slirp it's not possible to try
with ping.
I followed the instructions from the Handbook, but can't get it
to work. I guess i missed something (probably simple), but what?

With Hopes
Johan


My box:
	FreeBSD 2.1R
	Modem and cabling working with Windows

My provider:
	Slirp (slirp -P)
	Dynamic IPaddress, but it seems to default to 10.0.2.15

My login:
	From root: ppp
	load algonet
	term
		username
		password
		slirp -P
	Starting packetmode with ~p

/etc/log/ppp.log:
	:
	:
01-06 12:18:22 [170] IPCP: LayerUp.
01-06 12:18:22 [170]  myaddr = 10.0.2.15  hisaddr = 193.12.207.10
01-06 12:18:22 [170] OsLinkup: 193.12.207.10
01-06 12:18:22 [170] CCP: Received Configure Ack (2) state = Ack-Sent
(8)
01-06 12:18:22 [170] CCP: state change Ack-Sent --> Opend
01-06 12:18:22 [170] CCP: LayerUp.
01-06 12:18:22 [170] myproto = 0, hisproto = 0
01-06 12:19:14 [170] CCP: Received Reset Request (2) state = Opend (9)
01-06 12:19:14 [170] CCP: RecvResetReq
01-06 12:19:14 [170] CCP: SendResetAck
01-06 12:19:20 [170] CCP: Received Reset Request (3) state = Opend (9)
01-06 12:19:20 [170] CCP: RecvResetReq
01-06 12:19:20 [170] CCP: SendResetAck
01-06 12:19:23 [170] CCP: Received Reset Request (4) state = Opend (9)
01-06 12:19:23 [170] CCP: RecvResetReq
01-06 12:19:23 [170] CCP: SendResetAck
And so on...


/etc/sysconfig:
network_interfaces="ed0 lo0 tun0"
ifconfig_ed0="inet 192.168.0.1  netmask 255.255.255.0"
ifconfig_lo0="inet localhost"
ifconfig_tun0="inet 10.0.2.15 193.12.207.1 netmask 255.255.255.0"

ed0 is my local net with one  workstation. The netmask is the same 
for both nets, but i have not figured out the real one yet. If i
remove ifconfig_ed0 and ed0 from network_interfaces i don't get any
change.

/etc/ppp/ppp.conf:
default:
 set device /dev/cuaa1
 set speed 38400
 disable lqr
 deny lqr
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0
OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT"
#
algonet:
 set openmode active
 disable pap
 deny pap
 disable chap
 deny chap
 set phone 123456
 set login "TIMEOUT 10 gin:-BREAK-gin: johang word: xxxx johang> slirp
-P"
 set timeout 120
 set ifaddr 0 0

/etc/ppp/ppp.linkup:
#
MYADDR:
 add 0 0 HISADDR