Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jun 1998 07:54:24 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        robert@chalmers.com.au
Cc:        freebsd-questions <freebsd-questions@FreeBSD.ORG>, Brian Somers <brian@Awfulhak.org>
Subject:   Re: [2 x Q] Help determing kernel parameters, AND PPP warnings. COMPLEX. 
Message-ID:  <199806190654.HAA01523@awfulhak.org>
In-Reply-To: Your message of "Fri, 19 Jun 1998 13:43:55 %2B1000." <3589DE7B.3C8D1DEE@chalmers.com.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Hi,
> sorry to trouble you directly, but I have upgraded to the ppp-980618.src, and
> put the ifconfig tun0 bits in place. I'm running a much hacked about
> 2.2-961014-SNAP. I know, I know. I will upgrade when I can get this server
> off-line. Or better, replace it with a whole new system, including upgraded OS.
> 
> However,
> trying to find out what some of these things are:
> 
> These are the interfaces I have in place: I know what ed0 is, but according to
> this I have 4 point-to-point links up! Surely I only need tun0, for PPP?

Yep (and you always need ``lo0'').

> I also know what the lo0 lookback is. I also know what ppp0 is, and have taken
> it out since I listed this. however, I can find virtually nothing on lp0, or
> sl0 . 
> 
> Can I take out sl from the KERNEL? And what about lp0? Where is that
> enabled/disabled?

``sl0'' is a slip device (slattach/sliplogin).  It can be removed.  
``lp0'' is a IP over parallel port device.  If you never want to use 
a laplink-style parallel cable to connect machines you can remove it.

> ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> 	inet 203.1.96.5 netmask 0xffffff00 broadcast 203.1.96.255
> 	inet 203.1.96.150 netmask 0xffffffff broadcast 203.1.96.150
> 	inet 203.1.96.151 netmask 0xffffffff broadcast 203.1.96.151
> 	inet 203.1.96.152 netmask 0xffffffff broadcast 203.1.96.152
> 	inet 203.1.96.153 netmask 0xffffffff broadcast 203.1.96.153
> 	ether 00:00:c0:4f:7a:54 
> lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
> tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
> 	inet 203.1.96.1 --> 203.26.20.131 netmask 0xffffff00 
> sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
> ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
> 	inet 127.0.0.1 netmask 0xff000000 
> 	
> 
> Now, also, I am getting these warnings at start up.
> 
> ppp[181]: Warning: No available tunnel devices found (Device busy). 
> ppp[181]: Warning: bundle_Create: No such file or directory 
> 
> However, PPP does come up, and actually starts up.
> This is the configs related to it.
> The appropriate bits in /etc/sysconfig:
> 
> network_interfaces="lo0 ed0 tun0"
> ifconfig_lo0="inet localhost"
> ifconfig_ed0="inet 203.1.96.5  netmask 255.255.255.0"
> ifconfig_tun0=
> #
> router=NO
> 
> 
> ***********************************	PPP setups. ppp.conf:	
> # PPP setups. ppp.conf:	
> # Default setup. 
> default:
>  set log Phase Chat Connect command
>  set device /dev/cuaa0
>  set speed 57600
>  set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" 
>     ATZ OK-AT-OK ATM0E1Q0&C1&D2 OK \\dATDT\\T TIMEOUT 40 CONNECT"
> 
> ################
> # tpgi
> ###############
> tpgi:
>  set phone 49440894
>  set login " Username:-\\r-Username: xxxxx  Password: xxxxx choice:> ppp"
>  set timeout 120
>  set hangup "\"\" AT OK-AT-OK ATZ OK"
>  set redial 30 0
>  set ifaddr 203.1.96.1 203.26.20.131
>  add default HISADDR
> #=====
> 
> ********************************* PPP.linkup:
> # PPP.linkup:
> # By default
> #
> MYADDR:
> 203.1.96.1:
> # 
> 
> 
> Now, when the system is booting, 
> it tellms me there is no route to delete? and
> it shows the ifconfig tun line TWICE.
> tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
> tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500

Try putting a ``set -x'' line at the top of /etc/rc.  This will make 
your next boot-up verbose enough to find out why ppp is being started 
twice.  What does ``/etc/start_if.tun0'' say ?

> There is about a 30 second pause after boot up before it actually connects to
> the upline server.
> It does come up, but I notice at night, if there is a hangup, it doesn't want
> to reconnect. Or, it won't keep trying if it does. It gives up after about
> three tries.

Use the ``set reconnect'' command in your config to get ppp to redial 
after an unexpected disconnection.

> Any pointers would be thankfully accepted,
> 
> Cheers
> Robert
> 
> -- 
>   Support Whirled Peas.       Business in China?    China House
>   robert@chalmers.com.au      ph:61 7 49440357 fx:61 7 49578425 
>    China House Uses Webposition to ensure Top Spot in Searches      
>    http://www.chalmers.com.au/ChinaHouse/Business/webposition

-- 
Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
      <http://www.Awfulhak.org>;
Don't _EVER_ lose your sense of humour....



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



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