Date: Tue, 22 Mar 2011 04:59:42 GMT From: Alexey Samoylov <sav@ecom24.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/155772: ifconfig: ioctl (SIOCAIFADDR): File exists on directly connected networks Message-ID: <201103220459.p2M4xgav000859@red.freebsd.org> Resent-Message-ID: <201103220500.p2M502FV068779@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 155772 >Category: kern >Synopsis: ifconfig: ioctl (SIOCAIFADDR): File exists on directly connected networks >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 Mar 22 05:00:02 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Alexey Samoylov >Release: 8.2-RELEASE >Organization: SigmaTelecom Ltd >Environment: FreeBSD svm.sigma24.ru 8.2-RELEASE FreeBSD 8.2-RELEASE #2 r219081M: Wed Mar 2 10:30:04 CET 2011 root@www4:/usr/obj/usr/src_v28/sys/GENERIC amd64 >Description: ifconfig inet command doesn't install "directly connected" route if this route is already in routing table with other flags. In my case I use quagga for redistributing connected routes: svm.sigma24.ru# show ip route 83.143.32.32/28 Routing entry for 83.143.32.32/28 Known via "ospf", distance 110, metric 20, best Last update 00:26:50 ago * 83.143.32.9, via vlan4 svm# ifconfig vlan6 create svm# ifconfig vlan6 vlan6: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=3<RXCSUM,TXCSUM> ether 00:1b:21:93:ba:85 inet 83.143.32.43 netmask 0xfffffff0 broadcast 83.143.32.47 media: Ethernet autoselect (1000baseT <full-duplex>) status: active vlan: 6 parent interface: igb7 svm# route get 83.143.32.32/28 route to: 83.143.32.32 destination: 83.143.32.32 mask: 255.255.255.240 gateway: br2 interface: vlan4 flags: <UP,GATEWAY,DONE,PROTO1> recvpipe sendpipe ssthresh rtt,msec mtu weight expire 0 0 0 0 1500 1 0 svm# ifconfig vlan6 delete svm# ifconfig vlan6 inet 83.143.32.43 netmask 0xfffffff0 broadcast 83.143.32.47 ifconfig: ioctl (SIOCAIFADDR): File exists >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103220459.p2M4xgav000859>