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.
Actually I _do_ want to have alias subnets, as written before:
Why?
Please note that I would like to have 172.12.96.0/22,
but 172.12.101.0/24 and 172.12.126.0/24.
These subnets share the same physical line, but they have
different netmasks. If I would use
inet 172.12.96.5 255.255.252.0 NONE
inet alias 172.12.101.5 255.255.255.255 NONE
inet alias 172.12.126.5 255.255.255.255 NONE
- -inet6
group internal
as you suggested, then the netmask information is lost.
So, did you try it?
See I have for example:
# cat hostname.fxp0
inet 66.63.3.250 255.255.255.240 NONE
inet alias 66.63.40.19 255.255.255.255
Not in the same subnet at all, but address by the routing in front of it.
Alias are enter with /32.
Your network card is configure with the IP 172.12.96.5 and you want to
have on the same network card the IP 172.12.101.5 and 172.12.126.5
working right?
Then enter it with the /32 netmark. Not relevant what subnet it is in
really. Make sure your router, or what ever in front of that box point
these IP's to your box here.
It's possible that I do not understand your question may be, but unless
I miss something really stupid here and that may be possible, just try
it and you will have these IP's working on your box as long as obviously
pf is configure to let that traffic going through right?
Alias do not need to be part of the same subnet to work.
At the price of making a fool of myself, witch wouldn't be the first
time and most likely not the last either! If they need to be, that's
news to me and I have been wrong for many years then. Sure possible, but
as I said. I never did and I may have been wrong for many years...
Why would you need to keep the subnet mark to get them to work as alias
on that box really?
It is also possible that I really don't understand your question too,
but I guess based on what I put above that's what you try to do no?
If that's not the case, they simply ignore me and sorry for wasting your
time.
Just try it.
Hope this help you never the less.
Daniel