When using netmask notation in config_<interface>, an error is received on startup: Error: inet prefix is expected rather than "10.10.2.178//16" It would appear that an extra slash is being added. Using CIDR notation works normally. Reproducible: Always Steps to Reproduce: 1. Set config_<interface> in /etc/conf.d/net to a static IP using netmask e.g. "192.168.1.1 netmask 255.255.255.0" 2. Restart net.<interface> Actual Results: script calls command ip addr add 192.168.1.1//24 broadcast + dev <interface> Error: inet prefix is expected rather than "192.168.1.1//24". Expected Results: script calls command ip addr add 192.168.1.1/24 broadcast + dev <interface> (no error)
I have the same bug. Downgrading to 0.4.0-r1 fixes static network for me.
*** Bug 598156 has been marked as a duplicate of this bug. ***
Workaround, worked for me: config_eth0="192.168.0.2/24" or config_eth0="192.168.0.2/24 brd 192.168.0.255" These options are also correct on Handbook (Interface handlers).
Here's a quickfix before I get 0.5.1 out the door. net/iproute2.sh:136: - netmask="/$(_netmask2cidr "$1")" + netmask="$(_netmask2cidr "$1")" However I'd strongly recommend everybody start moving to just CIDR notation. (In reply to lebarondemerde from comment #3) > config_eth0="192.168.0.2/24 brd 192.168.0.255" That broadcast is the default implied value from the specified address, you don't need to specify it.
0.5.1 released with fix.