deleting an alias from interface cause the static route to be deleted

Gleb Smirnoff glebius at FreeBSD.org
Thu Feb 23 10:36:39 UTC 2012


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.


More information about the freebsd-questions mailing list