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

2012-02-23 Thread Gleb Smirnoff
On Tue, Feb 21, 2012 at 10:55:58PM +0200, Коньков Евгений wrote:
К> >> vlan74: flags=8843 metric 0 mtu 
1500
К> >>        options=3
К> >>        ether f4:6d:04:7c:7b:d3
К> >>        inet6 fe80::f66d:4ff:fe7c:7bd3%vlan74 prefixlen 64 scopeid 0xd
К> >>        inet 10.1.26.1 netmask 0xfe00 broadcast 10.1.27.255
К> >>        inet 10.1.26.3 netmask 0xfe00 broadcast 10.1.27.255
К> >>        nd6 options=29
К> >>        media: Ethernet autoselect (1000baseT )
К> >>        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.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re[2]: deleting an alias from interface cause the static route to be deleted

2012-02-21 Thread Коньков Евгений
Здравствуйте, Ivan.

Вы писали 21 февраля 2012 г., 0:45:33:

II> 2012/2/20 Коньков Евгений :
>>
>> vlan74: flags=8843 metric 0 mtu 1500
>>        options=3
>>        ether f4:6d:04:7c:7b:d3
>>        inet6 fe80::f66d:4ff:fe7c:7bd3%vlan74 prefixlen 64 scopeid 0xd
>>        inet 10.1.26.1 netmask 0xfe00 broadcast 10.1.27.255
>>        inet 10.1.26.3 netmask 0xfe00 broadcast 10.1.27.255
>>        nd6 options=29
>>        media: Ethernet autoselect (1000baseT )
>>        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 metric 0 mtu 1500
ether 00:00:00:00:00:00
vlan: 0 parent interface: 
# ifconfig vlan7 vlan 7 vlandev re0
# ifconfig vlan7
vlan7: flags=8842 metric 0 mtu 1500
options=3
ether 14:da:e9:b8:5a:76
media: Ethernet autoselect (100baseTX )
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:
DestinationGatewayFlagsRefs  Use  Netif Expire
default10.11.6.1  UGS 00re0
10.0.0.0/8 10.11.6.1  UGS 1  241re0
10.3.0.0/24link#7 U   00  vlan7
10.3.0.1   link#7 UHS 00lo0
10.3.0.2   link#7 UHS 00lo0
10.4.0.0/2410.3.0.3   UGS 00  vlan7
10.5.0.18  link#5 UH  00lo0
10.11.6.0/28   link#2 U   0 6161re0
10.11.6.7  link#2 UHS 00lo0
127.0.0.1  link#5 UH  0   53lo0

Internet6:
Destination   Gateway   Flags  
Netif Expire
::/96 ::1   UGRSlo0
::1   ::1   UH  lo0
:::0.0.0.0/96 ::1   UGRSlo0
fe80::%lo0/64 link#5U   lo0
fe80::1%lo0   link#5UHS 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:
DestinationGatewayFlagsRefs  Use  Netif Expire
default10.11.6.1  UGS 00re0
10.0.0.0/8 10.11.6.1  UGS 0  334re0
10.3.0.0/24link#7 U   00  vlan7
10.3.0.2   link#7 UHS 00lo0
10.5.0.18  link#5 UH  00lo0
10.11.6.0/28   link#2 U   0 6161re0
10.11.6.7  link#2 UHS 00lo0
127.0.0.1  link#5 UH  0   53lo0

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

# ifconfig vlan7
vlan7: flags=8843 metric 0 mtu 1500
options=3
ether 14:da:e9:b8:5a:76
inet 10.3.0.2 netmask 0xff00 broadcast 10.3.0.255
media: Ethernet autoselect (100baseTX )
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/2410.3.0.3

Re[2]: deleting an alias from interface cause the static route to be deleted

2012-02-21 Thread Коньков Евгений
Здравствуйте, Matthew.

Вы писали 21 февраля 2012 г., 14:10:37:

MS> On 20/02/2012 20:06, Коньков Евгений wrote:
>> 
>> vlan74: flags=8843 metric 0 mtu 1500
>> options=3
>> ether f4:6d:04:7c:7b:d3
>> inet6 fe80::f66d:4ff:fe7c:7bd3%vlan74 prefixlen 64 scopeid 0xd
>> inet 10.1.26.1 netmask 0xfe00 broadcast 10.1.27.255
>> inet 10.1.26.3 netmask 0xfe00 broadcast 10.1.27.255
>> nd6 options=29
>> media: Ethernet autoselect (1000baseT )
>> 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.7.26.2  UGHS8  367 vlan74
>> 10.1.6.0/2310.7.26.2  UGS   275   166969 vlan74
10.3.0.1   10.1.26.2  UGHS8  367 vlan74
10.1.6.0/2310.1.26.2  UGS   275   166969 vlan74

I had mistake.
>>
>> Does this a bug?

MS> Hmmm... how have you managed to have a next hop address of 10.7.26.2 on
MS> your vlan74 interface, when the local network appears to be 10.1.26.0/23
MS> ?  What's the route to 10.7.26.2 -- presumably this is also accessible
MS> on vlan74 ?

MS> It certainly seems odd that your routes have disappeared, but I'm
MS> wondering if they were culled from the routing table because the system
MS> thought they weren't logically connected to the local system?  Given
MS> that they have seen traffic, perhaps this was connected to a different
MS> change that the deletion of 10.1.26.1 that you highlighted?



-- 
С уважением,
 Коньков  mailto:kes-...@yandex.ru

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


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

2012-02-21 Thread Adam Vande More
2012/2/20 Коньков Евгений 

>
> vlan74: flags=8843 metric 0 mtu
> 1500
>options=3
>ether f4:6d:04:7c:7b:d3
>inet6 fe80::f66d:4ff:fe7c:7bd3%vlan74 prefixlen 64 scopeid 0xd
>inet 10.1.26.1 netmask 0xfe00 broadcast 10.1.27.255
>inet 10.1.26.3 netmask 0xfe00 broadcast 10.1.27.255
>nd6 options=29
>media: Ethernet autoselect (1000baseT )
>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.7.26.2  UGHS8  367 vlan74
> 10.1.6.0/2310.7.26.2  UGS   275   166969 vlan74
>
> Does this a bug?
>

 http://www.freebsd.org/cgi/query-pr.cgi?pr=128954&cat=bin

-- 
Adam Vande More
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


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

2012-02-21 Thread Matthew Seaman
On 20/02/2012 20:06, Коньков Евгений wrote:
> 
> vlan74: flags=8843 metric 0 mtu 1500
> options=3
> ether f4:6d:04:7c:7b:d3
> inet6 fe80::f66d:4ff:fe7c:7bd3%vlan74 prefixlen 64 scopeid 0xd
> inet 10.1.26.1 netmask 0xfe00 broadcast 10.1.27.255
> inet 10.1.26.3 netmask 0xfe00 broadcast 10.1.27.255
> nd6 options=29
> media: Ethernet autoselect (1000baseT )
> 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.7.26.2  UGHS8  367 vlan74
> 10.1.6.0/2310.7.26.2  UGS   275   166969 vlan74
> 
> Does this a bug?

Hmmm... how have you managed to have a next hop address of 10.7.26.2 on
your vlan74 interface, when the local network appears to be 10.1.26.0/23
?  What's the route to 10.7.26.2 -- presumably this is also accessible
on vlan74 ?

It certainly seems odd that your routes have disappeared, but I'm
wondering if they were culled from the routing table because the system
thought they weren't logically connected to the local system?  Given
that they have seen traffic, perhaps this was connected to a different
change that the deletion of 10.1.26.1 that you highlighted?

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


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

2012-02-21 Thread Damien Fleuriot


On 2/21/12 9:34 AM, Matthew Seaman wrote:
> 
> On 21/02/2012 08:14, Damien Fleuriot wrote:
>> I don't know if it's a bug or intended, but I do know you should use
>> /32 aliases for additional IPs, not your original netmask.
> 
> Actually, it's optional nowadays.  Either way works.
> 

Well idk, seeing his post I'm not sure it works that well ?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


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

2012-02-21 Thread Matthew Seaman

On 21/02/2012 08:14, Damien Fleuriot wrote:
> I don't know if it's a bug or intended, but I do know you should use
> /32 aliases for additional IPs, not your original netmask.

Actually, it's optional nowadays.  Either way works.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


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

2012-02-21 Thread Damien Fleuriot


On 20 Feb 2012, at 21:06, Коньков Евгений  wrote:

> 
> vlan74: flags=8843 metric 0 mtu 1500
>options=3
>ether f4:6d:04:7c:7b:d3
>inet6 fe80::f66d:4ff:fe7c:7bd3%vlan74 prefixlen 64 scopeid 0xd
>inet 10.1.26.1 netmask 0xfe00 broadcast 10.1.27.255
>inet 10.1.26.3 netmask 0xfe00 broadcast 10.1.27.255
>nd6 options=29
>media: Ethernet autoselect (1000baseT )
>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.7.26.2  UGHS8  367 vlan74
> 10.1.6.0/2310.7.26.2  UGS   275   166969 vlan74
> 
> Does this a bug?
> 

I don't know if it's a bug or intended, but I do know you should use /32 
aliases for additional IPs, not your original 
netmask.___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


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

2012-02-20 Thread Коньков Евгений

vlan74: flags=8843 metric 0 mtu 1500
options=3
ether f4:6d:04:7c:7b:d3
inet6 fe80::f66d:4ff:fe7c:7bd3%vlan74 prefixlen 64 scopeid 0xd
inet 10.1.26.1 netmask 0xfe00 broadcast 10.1.27.255
inet 10.1.26.3 netmask 0xfe00 broadcast 10.1.27.255
nd6 options=29
media: Ethernet autoselect (1000baseT )
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.7.26.2  UGHS8  367 vlan74
10.1.6.0/2310.7.26.2  UGS   275   166969 vlan74

Does this a bug?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"