On 2/18/11 6:10 AM, Indunil Jayasooriya wrote:
one IP per subnet with the real mask so there is a route, all others
with all-ones netmask.
Then, It is like this..
# cat
/etc/hostname.em0
inet 192.168.9.62 255.255.255.0
inet alias 192.168.9.63 255.255.255.255
inet alias 192.168.5.62 255.255.255.0
inet alias 192.168.5.63 255.255.255.255
inet alias 192.168.6.62 255.255.255.0
inet alias 192.168.6.63 255.255.255.255
your comments?
Then based on the correction from Henning on my previous suggestion, I
would say that's exactly how it should be done.
Or it could be like this I suppose if your network was actually on the
proper boundary.
> inet 192.168.9.62 255.255.255.0
> inet alias 192.168.9.63 255.255.255.255
> inet alias 192.168.6.62 255.255.254.0
> inet alias 192.168.6.63 255.255.255.255
> inet alias 192.168.7.62 255.255.255.255
> inet alias 192.168.7.63 255.255.255.255
On the above example 192.168.6.x with /23 would cover both the 6.x and
7.x and if they are both directly connected to that interface chances
are that they should be in the router as such, but that's just a
suggestion and based on Henning should be good.
Best,
Daniel
PS: I learn something new, but more importantly, I corrected a long
lasting mistake today! (;>
PS2: It would really good if the FAQ could add that simple distinction.
I would have found it useful talking just for myself may be, but sure
would have eliminated the question from the start.