Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 May 1996 08:01:20 -0700 (PDT)
From:      batie@agora.rdrop.com (Alan Batie)
To:        freebsd-bugs@freebsd.org
Subject:   SLIP connections failing
Message-ID:  <m0uMFPc-0008vnC@agora.rdrop.com>

next in thread | raw e-mail | index | archive | help

Hi; I've got a problem which has reached critical proportions (i.e.
between 50 and 100 failures yesterday): intermittently, when users connect
for SLIP, it assigns an address then hangs up on them.

Investigation shows that ifconfig is failing on the SIOCAIFADDR ioctl with
"File exists".  This only happens with SLIP, not PPP, but seems to have
gotten worse in proportion to increasing PPP usage.

I assign IP addresses based on the port, and SLIP uses a different set
of addresses than PPP.  I've also (even more recently than PPP, and come
to think of it, that does seem to be when the problem really got
noticeable), started using IP aliases for some virtual web servers.

The one thing I'm doing weird is using one class C (199.2.212) for all
SLIP/PPP and alias addresses.  1-32 are remote SLIP, 33-64 are remote
PPP and 128+ are aliases.  Originally, I just used 1-32 for both SLIP
and PPP, but thought maybe there was a problem switching an address
between the two (gated seemed to think so anyhow), but it didn't help
with this problem.  199.2.212.241 is the local address for all the
SLIP/PPP interfaces.

Here's some debug output that shows that the interface is actually getting
configured before ifconfig returns a failure:

+ echo ifconfig of 199.2.212.16 on sl4 failed:
ifconfig of 199.2.212.16 on sl4 failed:
+ echo before:
before:
+ cat /tmp/if.before
sl4: flags=c011<UP,POINTOPOINT,LINK2,MULTICAST> mtu 552
	inet 199.2.212.241 --> 199.2.212.16 netmask 0xffffff00 
+ echo 

+ echo after:
after:
+ /sbin/ifconfig sl4
sl4: flags=c011<UP,POINTOPOINT,LINK2,MULTICAST> mtu 552
	inet 199.2.212.241 --> 199.2.212.16 netmask 0xffffff00 
+ netstat -in
+ egrep sl4[^0-9]
sl4   552   <Link>                       1268401    39  1315885     0     0
sl4   552   199.2.212   199.2.212.241    1268401    39  1315885     0     0

-- 
Alan Batie                   ______      We're Starfleet officers:
batie@agora.rdrop.com        \    /      Weird is part of the job.
+1 503 452-0960               \  /       --Captain Janeway
DE 3C 29 17 C0 49 7A 27        \/        40 A5 3C 37 4A DA 52 B9

It is my policy to avoid purchase of any products from companies which
use unrequested email advertisements or telephone solicitation.



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