Ip -6 route add

I am running ubuntu on a VMWARE Workstation 12 Player.

Within the Ubuntu system I create a couple of Ubuntu virtual nodes.

I have created a virtual ethernet pair between the Ubuntu host and one of the nodes.

I want to add a route from my host to the node through the virtual pair.

My host if is vnode0h and it’s “ifconfig” is…

vnode0h Link encap:Ethernet HWaddr 82:58:2d:0b:0d:76
inet6 addr: fd01::ff:fe00:0/64 Scope:Global
inet6 addr: fe80::8058:2dff:fe0b:d76/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:35 errors:0 dropped:0 overruns:0 frame:0
TX packets:98 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3418 (3.4 KB) TX bytes:11103 (11.1 KB)

node0’s “ifconfig” is…

vpeer Link encap:Ethernet HWaddr aa:4e:aa:0e:2c:0d
inet6 addr: fe80::a84e:aaff:fe0e:2c0d/64 Scope:Link
inet6 addr: fd01::ff:fe00:10/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:76 errors:0 dropped:0 overruns:0 frame:0
TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8659 (8.6 KB) TX bytes:2374 (2.3 KB)

My nodes are on a separate subnet from the host and the ethernet pair (fd00::/64).

I feel I should be able to add a route to the fd00::/64 subnet through vnode0h lla.

e.g.

sudo ip -6 add route fd00::/64 via fe80::8058:2dff:fe0b:d76 dev vnode0h

If I do I get …

RTNETLINK answers: Invalid argument

What am I misunderstanding or doing wrong?

Thanks for any help…

Don


Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki