ipv6 config on debuntu
So, how do I configure this properly? ie, put the "pool" addresses I want into my interfaces file. I tried copying an iface eth0 inet6 static stanza I found online, didn't work. Anyone got an example?
4 Replies
iface eth0 inet6 static
address xxxx:xxxx:xxxx::dead:beef
netmask 64
Might need to stick it on eth0:1, eth0:2, etc, though… haven't played with that aspect lately. -rt
iface eth0 inet static
address <ipv4_addr>
netmask <ipv4_subnet>
gateway <ipv4_gateway>
# bring up IPv6
up /sbin/ip -6 addr add <ipv6_addr>/64 dev eth0
up /sbin/ip -6 addr add <ipv6_addr>/64 dev eth0</ipv6_addr></ipv6_addr></ipv4_gateway></ipv4_subnet></ipv4_addr>
This ran the ip command when the interface was brought up. Seemed to work perfectly for me. I'm thinking of trying out HoopyCat's method shortly on my Debian Linode.
-Tim
theckman's function worked for me.