Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Oct 2007 11:48:13 GMT
From:      Ivan Khilko <ivan@ins.dn.ua>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/117423: Duplicate IP on different interfaces
Message-ID:  <200710231148.l9NBmDdJ070421@www.freebsd.org>
Resent-Message-ID: <200710231150.l9NBo0P5061496@freefall.freebsd.org>

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

>Number:         117423
>Category:       kern
>Synopsis:       Duplicate IP on different interfaces
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 23 11:50:00 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Ivan Khilko
>Release:        test on FreeBSD 5.5, FreeBSD 6.1, FreeBSD 6.2
>Organization:
ISP InformService
>Environment:
First machine: FreeBSD ivan 5.5-STABLE FreeBSD 5.5-STABLE #2:
 Wed Feb  7 22:15:02 EET 2007 ivan@ivan:/usr/obj/usr/src-5-09112006/sys/MyKernel  i386
Second machine: FreeBSD centurion.ins.dn.ua 6.2-STABLE FreeBSD 6.2-STABLE #5:
 Thu Oct 11 11:08:39 EEST 2007     root@centurion.ins.dn.ua:/usr/obj/usr/src/sys/Centurion  i386
Third machine: FreeBSD frenzy 6.1-STABLE FreeBSD 6.1-STABLE #0:
 Wed Jan 31 15:31:08 UTC 2007 alexx@frenzy:/usr/obj/usr/src/sys/FRENZY  i386

>Description:
 I upgrade FreeBSD on server (from FreeBSD 4.11 to FreeBSD 6.2). After boot 
new version FreeBSD I found mistake on my configuration file. Two diferent 
network interfaces have same IP address. I think it imposible.
   I test it on different machines with different version FreeBSD.
On FreeBSD 6.2 (on FreeBSD 6.1, FreeBSD 5.5, FreeBSD 7.0 same result):
# ifconfig vlan90 create vlan 100 vlandev fxp0
# ifconfig vlan91 create vlan 101 vlandev fxp1
# ifconfig vlan90 inet 10.0.0.1/30
# ifconfig vlan91 inet 10.0.0.1/30
in result (no error messages):
# ifconfig vlan90
vlan90: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 10.0.0.1 netmask 0xfffffffc broadcast 10.0.0.3
        ether 00:02:b3:22:6c:eb
        media: Ethernet autoselect (100baseTX)
        status: active
        vlan: 100 parent interface: fxp0
# ifconfig vlan91
vlan91: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 10.0.0.1 netmask 0xfffffffc broadcast 10.0.0.3
        ether 00:0c:f1:ba:6c:d5
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
        vlan: 101 parent interface: fxp1
On FreeBSD 4.9 this example don't work, it generat error (and it is true):
#ifconfig vlan91 inet 10.0.0.1/30
ifconfig: ioctl (SIOCAIFADDR): File exists


>How-To-Repeat:
# ifconfig vlan90 create vlan 100 vlandev fxp0
# ifconfig vlan91 create vlan 101 vlandev fxp1
# ifconfig vlan90 inet 10.0.0.1/30
# ifconfig vlan91 inet 10.0.0.1/30

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



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