openrc-0.5.1 had this section in /etc/init.d/network: if [ -n "$defaultroute" ]; then ebegin "Setting default route $defaultroute" if [ "$RC_UNAME" = Linux ]; then route add default gw $defaultroute else route add default $defaultroute fi eend $? fi now it just has this: if [ -n "$defaultroute" ]; then ebegin "Setting default route $defaultroute" route add default $defaultroute eend $? elif [ -n "$defaultiproute" ]; then ebegin "Setting default route $defaultiproute" ip route add default $defaultiproute eend $? fi Note the missing check for Linux which adds the "gw" to the route add line. As a side note, why was the 0.5.x openrc series removed from the tree so quickly? Now there's nothing to use as a fallback. Reproducible: Always
(In reply to comment #0) > Note the missing check for Linux which adds the "gw" to the route add line. This was done so that you can route via an interface instead of an address (needed for VMs).
(In reply to comment #0) > openrc-0.5.1 had this section in /etc/init.d/network: > if [ -n "$defaultroute" ]; then > ebegin "Setting default route $defaultroute" > if [ "$RC_UNAME" = Linux ]; then > route add default gw $defaultroute > else > route add default $defaultroute > fi > eend $? > fi > now it just has this: > if [ -n "$defaultroute" ]; then > ebegin "Setting default route $defaultroute" > route add default $defaultroute > eend $? > elif [ -n "$defaultiproute" ]; then > ebegin "Setting default route $defaultiproute" > ip route add default $defaultiproute > eend $? > fi > Note the missing check for Linux which adds the "gw" to the route add line. That is correct. The updated /etc/conf.d/network shows that the default route variables now include "gw" as the first word in the setting, for example: defaultroute="gw 192.168.0.1" And, for defaultiproute, "via" needs to be included: defaultiproute="via 192.168.0.1" This should fix your issue. Thanks, William