Hi all! What is the correct netmask to use for aliased IP addresses on different subnets on the same interface, runnng on a FreeBSD 8.3 box? I have two subnets: x.16/29 and y.40/29. The manual entry for ifconfig, states:
So x.21 and x.22 are on the same subnet as x.20, but y.* are not. I tried different combinations of netmaks, and they all work, so I'm not sure which one is the correct.
Would these be correct netmasks to use?
Thanks for any ideas
If the address is on the same subnet as the first network address for this interface, a non-conflicting netmask must be given. Usually 0xffffffff is most appropriate.
So x.21 and x.22 are on the same subnet as x.20, but y.* are not. I tried different combinations of netmaks, and they all work, so I'm not sure which one is the correct.
Would these be correct netmasks to use?
Code:
ifconfig_em0="inet x.x.x.20 netmask 255.255.255.248"
ifconfig_em0_alias0="inet x.x.x.21 netmask 255.255.255.255"
ifconfig_em0_alias1="inet x.x.x.22 netmask 255.255.255.255"
ifconfig_em0_alias2="inet y.y.y.44 netmask 255.255.255.248"
ifconfig_em0_alias3="inet y.y.y.45 netmask 255.255.255.248"
ifconfig_em0_alias4="inet y.y.y.46 netmask 255.255.255.248"
defaultrouter="x.x.x.17"
Thanks for any ideas