Linode Forum Index Linode Forum
Linode Community Forums
 


ipv6 config on debuntu

Click here to go to the original topic

 
       Linode Forum Index -> Linux Networking
Author Message
glg



Joined: 09 Jan 2009
Posts: 505

Posted: Thu May 05, 2011 9:02 pm    Post subject: 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?
Back to top  
hoopycat



Joined: 30 Aug 2008
Posts: 1294
Location: Rochester, New York

Posted: Fri May 06, 2011 12:23 pm    Post subject:  

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
Back to top  
theckman



Joined: 27 Nov 2010
Posts: 45

Posted: Fri May 06, 2011 12:41 pm    Post subject:  

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

Code: 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

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
Back to top  
glg



Joined: 09 Jan 2009
Posts: 505

Posted: Fri May 06, 2011 5:16 pm    Post subject:  

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.
Back to top  
derekyang



Joined: 05 May 2011
Posts: 1

Posted: Sun May 08, 2011 9:38 pm    Post subject:  

really thanks

theckman's function worked for me.
Back to top  
 
       Linode Forum Index -> Linux Networking
Page 1 of 1