Bug 117423 - [vlan] Duplicate IP on different interfaces
Summary: [vlan] Duplicate IP on different interfaces
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-net (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-23 12:50 UTC by Ivan Khilko
Modified: 2017-08-27 01:26 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Khilko 2007-10-23 12:50:00 UTC
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 impossible.

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
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2007-10-29 09:57:59 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-net

Over to maintainer(s).