On 2/17/11 4:33 PM, Harald Dunkel wrote:

your way to configure aliases is correct, however, the masks are not.
you are screwing up routing. you want an all-ones netmask on each and
every IP address except one per subnet. alas you want 255.255.255.255
on the carp if's IPs.


That explains alot. A screwed up routing is exactly what
I see on my gateway. But I am not sure that I got you
correctly (most likely due to my poor English skills).


How about this?

em1:
inet       172.12.96.5  255.255.252.0 NONE
inet alias 172.12.101.5 255.255.255.0 NONE
inet alias 172.12.126.5 255.255.255.0 NONE

Look at the example in the man page where you would actually configure what you are asking.

man (5) hostname.if

      inet alias 10.0.1.13 255.255.255.255 10.0.1.13
      inet alias 10.0.1.14 255.255.255.255 NONE
      inet alias 10.0.1.15 255.255.255.255

Even if they are in the same subnet, they are ALL enter as single IP's.

Think about it that way may be.

You want an alias IP's, not an alias subnet, so how do you enter a single IP? With a /32 subnet.

Hope this help you some.

Best,

Daniel

Reply via email to