I'm trying to bring up one of my Ubuntu machines to assign it a static ipv6 IP.
I've got a router that's running an HE IPv6 tunnel using 6in4.
When I assign ip addresses to people on my LAN using radvd, everything appears to work fine.
The router is also configured to have an ipv4 DMZ as well as a LAN (not sure if this matters or not, as the router is dual stack).
I looked at one of the computers that was configured using radvd and noted that it's gateway was fe80::224:a5ff:fed8:5395, which I'm assuming to be router's IPv6 address.
Thus I tried the following configuration to setup a static IP address:
iface eth0 inet6 static
pre-up modprobe ipv6
address 2001:470:1f0e:ea7:0010
netmask 64
gateway fe80::224:a5ff:fed8:5395
However after restarting the network interfaces I could not ping any IPv6 sites, and couldn't ping the router either.
So I tried configuring a different gateway address which I obtained from the router this time by looking the 6in4-hene interface from the routers ifconfig:
6in4-hene Link encap:IPv6-in-IPv4
inet6 addr: 2001:470:1f0e:ea7::2/64 Scope:Global
inet6 addr: fe80::6c24:8bc8/128 Scope:Link
...
iface eth0 inet6 static
pre-up modprobe ipv6
address 2001:470:1f0e:ea7:0010
netmask 64
gateway fe80::6c24:8bc8
This configuration also did not allow me to ping the router or any external sites, after restarting the network interface.
Am I looking for the gateway in the wrong places?
Thanks!