[Users] vzctl 3.0.23: debian-add_ip.sh lenny (debian 5.0) IPv6 bug

Benoit Branciard Benoit.Branciard at univ-paris1.fr
Thu Mar 5 14:50:27 EST 2009


the debian-add_ip.sh script available in vzctl 3.0.23 does not set up 
IPv6 default route correctly for a Debian 5.0 (Lenny) container.

The reason seems to be that the default behaviour of the ifconfig 
command changed from etch to lenny: when adding IPv6 addresses without 
specifying a prefixlen, the prefixlen is assumed to be /128 in Lenny 
instead of /0 in etch.

The patch below corrects the problem by explicitely specifying the 
prefixlen, and works for both Etch and Lenny containers.


--- debian-add_ip.sh.0  2009-03-05 18:57:40.000000000 +0100
+++ debian-add_ip.sh    2009-03-05 19:02:43.000000000 +0100
@@ -87,8 +87,8 @@
             printf "
  auto ${VENET_DEV}:${ifnum}
  iface ${VENET_DEV}:${ifnum} inet6 manual
-       up   ifconfig ${VENET_DEV}:${ifnum} add ${ip}
-       down ifconfig ${VENET_DEV}:${ifnum} del ${ip}
+       up   ifconfig ${VENET_DEV}:${ifnum} add ${ip}/0
+       down ifconfig ${VENET_DEV}:${ifnum} del ${ip}/0
  " >> ${CFGFILE}.bak
         fi


-- 
Ce message a ete verifie par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a ete trouve.



More information about the Users mailing list