Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Feb 2012 22:55:58 +0200
From:      =?koi8-r?B?68/O2MvP1yDl18fFzsnK?= <kes-kes@yandex.ru>
To:        Ivan Ivanyuk <ivan.ivanyuk@gmail.com>
Cc:        freebsd-net@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re[2]: deleting an alias from interface cause the static route to be deleted
Message-ID:  <323151470.20120221225558@yandex.ru>
In-Reply-To: <CAD_Den-cWO81WcE3C2yFiL72%2Bu8RudGScRzgTOAtxQDKu9D1oA@mail.gmail.com>
References:  <376001325.20120220220651@yandex.ru> <CAD_Den-cWO81WcE3C2yFiL72%2Bu8RudGScRzgTOAtxQDKu9D1oA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
úÄÒÁ×ÓÔ×ÕÊÔÅ, Ivan.

÷Ù ÐÉÓÁÌÉ 21 ÆÅ×ÒÁÌÑ 2012 Ç., 0:45:33:

II> 2012/2/20 ëÏÎØËÏ× å×ÇÅÎÉÊ <kes-kes@yandex.ru>:
>>
>> 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?
>>
II>  See here:

II> http://lists.freebsd.org/pipermail/freebsd-net/2012-February/031404.html

II> It should be fixed, I asked Andrew and he said it was fixed as well.
II> If latest code still has this problem, than yes it's a bug.
http://www.freebsd.org/cgi/query-pr.cgi?pr=128954&cat=bin


it is repeatable on
# uname -a
FreeBSD  8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #1 r231881: Fri Feb 17 17:20:09 UTC 2012    @:/usr/obj/usr/src/sys/KES_KERN_v8  amd64


# ifconfig vlan7
vlan7: flags=8002<BROADCAST,MULTICAST> metric 0 mtu 1500
        ether 00:00:00:00:00:00
        vlan: 0 parent interface: <none>
# ifconfig vlan7 vlan 7 vlandev re0
# ifconfig vlan7
vlan7: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=3<RXCSUM,TXCSUM>
        ether 14:da:e9:b8:5a:76
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
        vlan: 7 parent interface: re0
# ifconfig vlan7 add 10.3.0.1/24
# ifconfig vlan7 add 10.3.0.2/24
# route add 10.4.0.0/24 10.3.0.3
add net 10.4.0.0: gateway 10.3.0.3
# netstat -nr
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            10.11.6.1          UGS         0        0    re0
10.0.0.0/8         10.11.6.1          UGS         1      241    re0
10.3.0.0/24        link#7             U           0        0  vlan7
10.3.0.1           link#7             UHS         0        0    lo0
10.3.0.2           link#7             UHS         0        0    lo0
10.4.0.0/24        10.3.0.3           UGS         0        0  vlan7
10.5.0.18          link#5             UH          0        0    lo0
10.11.6.0/28       link#2             U           0     6161    re0
10.11.6.7          link#2             UHS         0        0    lo0
127.0.0.1          link#5             UH          0       53    lo0

Internet6:
Destination                       Gateway                       Flags      Netif Expire
::/96                             ::1                           UGRS        lo0
::1                               ::1                           UH          lo0
::ffff:0.0.0.0/96                 ::1                           UGRS        lo0
fe80::%lo0/64                     link#5                        U           lo0
fe80::1%lo0                       link#5                        UHS         lo0
ff01::%lo0/32                     fe80::1%lo0                   U           lo0
ff02::%lo0/32                     fe80::1%lo0                   U           lo0

--------------------------------

# ifconfig vlan7 delete 10.3.0.1
# netstat -nr
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            10.11.6.1          UGS         0        0    re0
10.0.0.0/8         10.11.6.1          UGS         0      334    re0
10.3.0.0/24        link#7             U           0        0  vlan7
10.3.0.2           link#7             UHS         0        0    lo0
10.5.0.18          link#5             UH          0        0    lo0
10.11.6.0/28       link#2             U           0     6161    re0
10.11.6.7          link#2             UHS         0        0    lo0
127.0.0.1          link#5             UH          0       53    lo0

Internet6:
Destination                       Gateway                       Flags      Netif Expire
::/96                             ::1                           UGRS        lo0
::1                               ::1                           UH          lo0
::ffff:0.0.0.0/96                 ::1                           UGRS        lo0
fe80::%lo0/64                     link#5                        U           lo0
fe80::1%lo0                       link#5                        UHS         lo0
ff01::%lo0/32                     fe80::1%lo0                   U           lo0
ff02::%lo0/32                     fe80::1%lo0                   U           lo0

# ifconfig vlan7
vlan7: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=3<RXCSUM,TXCSUM>
        ether 14:da:e9:b8:5a:76
        inet 10.3.0.2 netmask 0xffffff00 broadcast 10.3.0.255
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
        vlan: 7 parent interface: re0

NOTICE: that   '10.4.0.0/24' is still reachable through 10.3.0.3 via  vlan7
but route
10.4.0.0/24        10.3.0.3           UGS         0        0  vlan7
was deleted while deleting IP from vlan




-- 
ó Õ×ÁÖÅÎÉÅÍ,
 ëÏÎØËÏ×                          mailto:kes-kes@yandex.ru




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