From nobody@FreeBSD.org  Tue May 16 12:47:00 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 43C7F16A51E
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 May 2006 12:47:00 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id BB74443D62
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 May 2006 12:46:54 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k4GCkrp9053964
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 May 2006 12:46:53 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k4GCkrEw053963;
	Tue, 16 May 2006 12:46:53 GMT
	(envelope-from nobody)
Message-Id: <200605161246.k4GCkrEw053963@www.freebsd.org>
Date: Tue, 16 May 2006 12:46:53 GMT
From: Eddy <eddy@ncv.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ppp is giving same ip-addresses for 2 or more ppp-clients
X-Send-Pr-Version: www-2.3

>Number:         97339
>Category:       misc
>Synopsis:       ppp is giving same ip-addresses for 2 or more ppp-clients
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 16 12:50:16 GMT 2006
>Closed-Date:    Wed May 24 12:17:38 GMT 2006
>Last-Modified:  Wed May 24 12:17:38 GMT 2006
>Originator:     Eddy
>Release:        6.0 or 5.4
>Organization:
IT-Telecom
>Environment:
FreeBSD test-nas.ncv.ru 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005     root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
ppp is giving same ip-addresses for 2 or more ppp-clients:

de0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet6 fe80::203:ffff:fe7e:642c%de0 prefixlen 64 scopeid 0x1
        inet 192.168.0.36 netmask 0xffffff00 broadcast 192.168.0.255
        ether 00:03:ff:7e:64:2c
        media: Ethernet autoselect (100baseTX)
        status: active
de1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet6 fe80::203:ffff:fe61:642c%de1 prefixlen 64 scopeid 0x2
        inet 62.33.245.10 netmask 0xffffffc0 broadcast 62.33.245.63
        ether 00:03:ff:61:64:2c
        media: Ethernet autoselect (100baseTX)
        status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet 127.0.0.1 netmask 0xff000000
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1460
        inet 10.10.10.10 --> 62.33.245.236 netmask 0xffffffff
        Opened by PID 13131
tun1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
        inet 10.10.10.10 --> 62.33.245.231 netmask 0xffffffff
        Opened by PID 25977
tun2: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1460
        inet 10.10.10.10 --> 62.33.245.229 netmask 0xffffffff
        Opened by PID 27153
tun3: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1460
        inet 10.10.10.10 --> 62.33.245.228 netmask 0xffffffff
        Opened by PID 27193
tun4: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1460
        inet 10.10.10.10 --> 62.33.245.229 netmask 0xffffffff
        Opened by PID 27197

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: glebius 
State-Changed-When: Wed May 24 12:17:27 UTC 2006 
State-Changed-Why:  
Actually the PPP software or RADIUS should take care about colliding 
client IP addresses. Historically PPP software didn't do this relying 
on the fact that kernel will refuse such configuration. Meanwhile 
this configuration is valid and in some cases it is useful, and thus 
since FreeBSD 5.4-RELEASE kernel doesn't refuse same IP addresses 
on different interfaces. 

To assist software that relies on the old behavior a helper sysctl 
is available - net.inet.ip.same_prefix_carp_only. To get the old 
behavior you need to add the following line to your /etc/sysctl.conf: 

net.inet.ip.same_prefix_carp_only=1 


http://www.freebsd.org/cgi/query-pr.cgi?pr=97339 
>Unformatted:
