There is error using "ip" and "route" command when you want to add new
route to ipv6. I experienced similar error programming routing protocol
using netlink. <br><br>for 'ip" error:  RTNETLINK answers: Invalid argument<br>
for "route" error: SIOCADDRT: Invalid argument <br><br>e.g:<br>ifconfig eth1 inet6 add 301::1/64<br>route -6 add 400::/64 gw 301::2 dev eth1<br>   SIOCADDRT: Invalid argument<br>ip -6 route add 400::/64 via 301::2 dev eth1<br>


   RTNETLINK answers: Invalid argument<br><br>route -- version<br>net-tools 1.60<br><br>using tap0 device it fails as well.<br>Also using <linux/rtnetlink.h> library adding the route rule fails. Error [-22].<br><br>


This  does not work with latest Ubuntu distribution.<br>Kernel version generic 2.6.31-14-generic.<br>Any ideas how to fix it?