Hhm, defining config_eth0=( "dhcp" "192.168.0.254/24" ) in /etc/conf.d/net works fine even if I do not have dhcp : n22 /etc/conf.d # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 * 255.255.255.0 U 0 0 0 eth0 loopback * 255.0.0.0 U 0 0 0 lo Whereas config_eth0=( "192.168.0.254/24" "dhcp" ) does not work if I don't have dhcp: n22 /etc/conf.d # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface loopback * 255.0.0.0 U 0 0 0 lo Why is the order of the 2 definitions in /etc/conf.d/net important, meaning first trying to use dhcp and after that creating the alias eth0:1 ?
Why don't you use fallback?
I don't want at fallback solution, I want every time a static ip address ever and dhcp only if possible. My question wasn't, how I can do that (1st solution works for me), the question is why the 2nd variant did not work. Seems to be a leak in the logic of configuring the network adapters, isn't it ?
(In reply to comment #2) > My question wasn't, how I can do that (1st solution works for me), the question > is why the 2nd variant did not work. Seems to be a leak in the logic of > configuring the network adapters, isn't it ? No, not at all. Once you've assigned a static IP address to a card, there's no business left for DHCP. So - the second case in your configuration doesn't make sense.