On 2009/08/14 08:20, Nice Daemon wrote: > Hi, > > On Thu, Aug 13, 2009 at 8:53 PM, Stuart Henderson <s...@spacehopper.org>wrote: > > > On 2009-08-13, Nice Daemon <nicedae...@googlemail.com> wrote: > > > inet xx.yyy.253.225 netmask 0xff000000 broadcast 255.255.255.255 (this is > > > carp IP in upstream VLAN, AFTER your hint) > > > > that's definitely wrong, you ended up setting your broadcast address to > > 255.255.255.255 instead of setting the netmask. > > > > most likely you got bitten by the different syntax between ifconfig(8) > > and hostname.if(5). I use the format "inet 11.22.33.44/28" in hostname.if > > which I find much easier to work with. > > > > okay, now I've tried to use the CIDR notation (which I usually use anyways, > but not in this case, mainly due to historical reasons or because I never > did that on any OS before). > > This now works and gives me the correct netmask of 255.255.255.240 (set > before) or /28. > > However, the man page of hostname.if(5) states: > > STATIC ADDRESS CONFIGURATION > The following three hostname.* formats are valid for configuring > network > interfaces with static addresses: > > Regular IPv4 network setup: > > inet [alias] addr netmask broadcast_addr options > dest dest_addr > > So, > > inet 192.168.1.1 255.255.255.0 NONE > > should be equal to > > inet 192.168.1.1/24 NONE
if you're using that format, you need to have it like I wrote, without "NONE". just "inet 192.168.1.1/24". > However, this was exactly NOT the case in my setup. Here, stating > 255.255.255.255 on the 'netmask' value led to a /8 (or 0xff000000) address > and broadcast set to 255.255.255.255, for whatever reason. I think you'll need to show the exact line if you want to find out why. (Or add some "set -x" to the netstart shell script and watch how it runs..)