Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Feb 2012 14:36:37 +0400
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        =?koi8-r?B?68/O2MvP1yDl18fFzsnK?= <kes-kes@yandex.ru>
Cc:        freebsd-net@FreeBSD.org, freebsd-questions@FreeBSD.org, Ivan Ivanyuk <ivan.ivanyuk@gmail.com>
Subject:   Re: deleting an alias from interface cause the static route to be deleted
Message-ID:  <20120223103637.GS92625@FreeBSD.org>
In-Reply-To: <323151470.20120221225558@yandex.ru>
References:  <376001325.20120220220651@yandex.ru> <CAD_Den-cWO81WcE3C2yFiL72%2Bu8RudGScRzgTOAtxQDKu9D1oA@mail.gmail.com> <323151470.20120221225558@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 21, 2012 at 10:55:58PM +0200, ๋ฯฮุหฯื ๅืวลฮษส wrote:
๋> >> vlan74: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
๋> >> š š š šoptions=3<RXCSUM,TXCSUM>
๋> >> š š š šether f4:6d:04:7c:7b:d3
๋> >> š š š šinet6 fe80::f66d:4ff:fe7c:7bd3%vlan74 prefixlen 64 scopeid 0xd
๋> >> š š š šinet 10.1.26.1 netmask 0xfffffe00 broadcast 10.1.27.255
๋> >> š š š šinet 10.1.26.3 netmask 0xfffffe00 broadcast 10.1.27.255
๋> >> š š š šnd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
๋> >> š š š šmedia: Ethernet autoselect (1000baseT <full-duplex>)
๋> >> š š š šstatus: active
๋> >> š š š švlan: 74 parent interface: re0
๋> >>
๋> >> ifconfig vlan74 delete 10.1.26.1
๋> >>
๋> >> will delete these static routes from route table:
๋> >>
๋> >> 10.3.0.1 š š š š š 10.1.26.2 š š š š šUGHS š š š š8 š š š367 vlan74
๋> >> 10.1.6.0/23 š š š š10.1.26.2 š š š š šUGS š š š 275 š 166969 vlan74
๋> >>
๋> >> Does this a bug?

It is.

The problem is that our routing table support only a single route for
a prefix (yep, there is RADIX_MPATH, but it serves other needs). Thus,
every time we add or delete a prefix we need to do a lot of sanity
checking: running through interfaces list, seek for other origin
for this prefix, etc. All suggested patches do this, and from my viewpoint
these are crutches.

I'd prefer to have something like this:

http://lists.freebsd.org/pipermail/freebsd-net/2012-February/031468.html

-- 
Totus tuus, Glebius.



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