ipv6 config on debuntu

I got my "automatic" address working fine (rebooted). I got an assigned pool. I followed the directions to add addresses via "ip -6 addr add" and got that to work. was able to ping from one linode to another on both the automaticly configured addresses and the ones manually added.

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

I usually do an /etc/network/interface stanza like:

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

On Debian 6.0 under my eth0 section I added lines like this:

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

I wasn't getting hoopycat's method to work out, it seemed to be ignored. I was able to get theckman's way to work and now am able to ping from external, etc.

really thanks

theckman's function worked for me.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct