On Nov 24, 2011, at 8:40 PM, Henning Brauer wrote:
> * Russell Garrison <[email protected]> [2011-11-22 18:28]:
>> I have set up my system accordingly and my advice is to set your carp
>> primary IP to the proper network mask (especially if it is using the
>> carp IP to provide a gateway to the connected network) and then any
>> other IP/interfaces to /32 per subnet.
>
> if your carpdev has an IP and the IP(s) on the carp interface are in
> the same subnet, is it best to have the real netmask on the carpdev
> and all-ones netmasks on the carp interface, for the case where you're
> carp slave.
>
> and the rule of thumb remains, one IP per subnet per rdomain in the
> system with the real netmask, all others all-ones - aka /32 for the one
> and only real protocol.
I've tried to find any mentions in the documentation about aliases, all-ones,
and IPv6. Is it correct to assume that one should NOT use /128 prefixes for
IPv6 aliases? In the context of CARP:
# ifconfig em0
em0: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu
1500
...
inet A.B.C.1 netmask 0xffffff00 broadcast XXX
inet6 ABC::1 prefixlen 64
# ifconfig carp0
carp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
...
carp: BACKUP carpdev em0 vhid 1 advbase 1 advskew 100
inet A.B.C.2 netmask 0xffffffff
inet6 ABC::2 prefixlen 64
In other words, using /32 for IPv4 aliases, but NOT /128 for IPv6 aliases?
What made me believe this was the usage of /64 in
http://www.openbsd.org/cgi-bin/man.cgi?query=hostname.if
Take care
Anders
[demime 1.01d removed an attachment of type application/pkcs7-signature which
had a name of smime.p7s]