 Roop join:2003-11-15 Ottawa, ON | ipv6 static route on ubuntumy end goal is a simple test network. the test network has two subnets, a router and some hosts on each subnet.
all i want to do is add a static route saying to get to the 172:26:104::/64, go to 192:168:12::68
sudo ip -6 route add 172:26:104::/64 via 192:168:12::68 dev eth0
RTNETLINK answers: Invalid argument
ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:1d:60:39:60:81
inet addr:192.168.12.200 Bcast:192.168.12.255 Mask:255.255.255.0
inet6 addr: 192:168:12::200/64 Scope:Global
ping6 192:168:12::68
PING 192:168:12::68(192:168:12::68) 56 data bytes
64 bytes from 192:168:12::68: icmp_seq=1 ttl=64 time=7.69 ms
64 bytes from 192:168:12::68: icmp_seq=2 ttl=64 time=0.280 ms
|
|
 | I think the problem is in using reserved IPv6 address ranges (in particular, the 0100::/8 block), so ip -6 route won't let you use it as a gateway. (See »www.iana.org/assignments/ipv6-ad···pace.xml)
My guess would be that the FC00::/7 block would be appropriate (see RFC4291), or something in 2000::/3 if you don't mind clashing with the global IPv6 space. |
|
 Roop join:2003-11-15 Ottawa, ON | that was indeed the cause, thank you.
the false addresses i was using worked fine on freebsd so i figured they should work in other OSs.
freebsd:
IPv6: instance 0 name "default"
Destination Type Ref NextHop Type Ref Index Interface
default perm 1 rjct 1 45
::/96 perm 0 locl 2 43
:: perm 0 locl 2 46
::1 dest 0 ::1 locl 1 52
::ffff:0:0/96 perm 0 locl 2 42
172:26:104::/64 user 0 192:168:12::68 dest 2 74 eth1c0
192:168:12::/64 dest 0 rslv 1 66 eth1c0
192:168:12:: dest 0 192:168:12:: locl 1 69 eth1c0
192:168:12::68 clon 0 eth1c0 dest 2 74 eth1c0
192:168:12:0:63:: dest 0 192:168:12:0:63:: locl 1 67 eth1c0
|
|