Currently /etc/vz/dists/scripts/gentoo-add_ip.sh only adds an IPv4 default route to ${CT}/etc/conf.d/net: put_param ${IFCFG} "routes_${VENET_DEV}" "default" It should however also add an IPv6 default route. net.example as of sys-apps/openrc-0.9.8.4 describes this as adding a 2nd line with ::/0 to routes_$IFACE. This, however, is currently impossible with put_param, since it uses the sed s command: /bin/sed: -e expression #1, char 42: unterminated `s' command ERROR: Can't change file /etc/conf.d/net Other workarounds, like separating the entries with ; are not parsed by OpenRC and are just passed directly to iproute2, which does not understand them either. Severity is "normal" (imo), because there currently is no IPv6 connectivity in the containers. Reproducible: Always
P.S: iproute2 also offers no way to add two routes with one command. So the only way appears to be to make put_param able to insert multiple lines into the file.
I've added bug 442594 as a blocker because iproute2 package is not in @system. Network config created by the gentoo-add_ip.sh script should work even if iproute2 is not installed.
IMHO, this is obsolete .
As far as I see sed now uses | instead of : in put_param, so ipv6 should work. Dennis, please, test and report if it still fails for you. /bin/sed -e "s|^\<$name\>.*|$name $value|"