*BSD News Article 24933


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!news.hk.net!hknet.hk.net!samson
From: samson@hknet.hk.net (Samson Luk)
Subject: FreeBSD PPP Server SetUp Questions
Organization: Hong Kong Internet & Gateway Services Ltd.
Nntp-Posting-Host: hknet.hk.net
Message-ID: <CHx65D.41n@news.hk.net>
Sender: news@news.hk.net
Date: Sun, 12 Dec 1993 11:20:00 GMT
Lines: 40


I attempt to setup FreeBSD as a PPP server with NO success.  Much
appreciated if anyone here can give me some hints.
 
Command lines for bring up pppd from /root/.login:
 
stty -f /dev/tty01 clocal
sleep 5
ifconfig ppp0 up
sleep 5
/usr/libexec/pppd -detach crtscts netmask 255.255.255.240 tty01 38400
202.21.128.33:202.21.128.34
sleep 5
 
when I logon as 'root' system output the following:
 
Dec 12 18:48:03 router pppd[105]: setsid(): Operation not permitted
Dec 12 18:48:03 router pppd[105]: setsid(): Operation not permitted
 
then drop to the '#' prompt.  I have 'pseudo-device   ppp     2' in my
kernel config file and here is the netstat -in output:
 
Name  Mtu   Network     Address            Ipkts Ierrs    Opkts Oerrs  Coll
ed0   1500  <Link>0.0.44.1.d8.80             292     0      215     0     0
ed0   1500  202.21.128. 202.21.128.33        292     0      215     0     0
sl0*  296   <Link>                             0     0        0     0     0
sl1*  296   <Link>                             0     0        0     0     0
ppp0* 1500  <Link>                             0     0        0     0     0
ppp0* 1500  none        none                   0     0        0     0     0
lo0   1536  <Link>                            56     0       56     0     0
lo0   1536  127         127.0.0.1             56     0       56     0     0
 
Please note that although my kernel was compiled with 'pseudo-device ppp
2' but 'netstat -in' only show ppp0 but no ppp1. Will it be the problem
with ppp0 only works with tty00 but I am now try using tty01?  If yes,
where can I find ppp1?
 
Regards
Samson Luk