aliases not working in em0
steve at ibctech.ca
Tue Jan 20 06:30:02 PST 2009
Patrick M. Hausen wrote:
> Hi, all,
> On Tue, Jan 20, 2009 at 08:52:18AM -0500, Steve Bertrand wrote:
>> For how long? On a 7.0-R box, it works ok with a /32 prefix len:
>> re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>> ether 00:0f:b5:80:53:85
>> inet 18.104.22.168 netmask 0xffffff00 broadcast 255.255.255.192
>> inet 22.214.171.124 netmask 0xffffff00 broadcast 255.255.255.255
> Did you manually edit the ifconfig output? The broadcast addresses
> should both be 126.96.36.199 for the shown prefixes and netmasks.
Hmmm... thats my bad. I have a fsck-up in my rc.conf on that box...
ifconfig_re0="inet 188.8.131.52 255.255.255.192"
ifconfig_re0_alias0="inet 184.108.40.206 255.255.255.255"
I guess when one leaves out the 'netmask' keyword, the next parameter
after the IP becomes the broadcast address.
I'm actually quite surprised and perplexed as to how this box has been
able to communicate to other prefixes on the network :)
Thanks for the keen eye. You've most certainly saved me some future anguish!
More information about the freebsd-stable