I have everything working fine, my Centos 5 box gets an advertised IPv6 prefix and route, and everything is fine.
However, I want additional addresses. I can add them manually via:
ip -6 addr add 2001:xxx:xxx:5::2/64 dev eth0
after boot, but I want it to do it automatically.
I tried following this (http://www.cyberciti.biz/faq/redhat-centos-rhel-fedora-linux-add-multiple-ip-samenic/) but it didn't work. I don't want to manually assign everything (I want the automatic configuration to still happen), but I do want to add the extra address. Is my only hope to stick the ip command into /etc/rc.local?
Quote
Is my only hope to stick the ip command into /etc/rc.local?
That's what I ended up doing on a BSD system (Yeah, I know you're on CentOS) It's worked well for me and I haven't had any problems
Quote from: cholzhauer on August 30, 2011, 07:28:12 AM
That's what I ended up doing on a BSD system (Yeah, I know you're on CentOS) It's worked well for me and I haven't had any problems
You couldn't add them to rc.conf?
I probably could have, but I was already using rc.local for routing commands, so I just dumped them all in there
you need to edit /etc/sysconfig/network-scripts/ifcfg-eth0 (or whatever your interface is)
and use the IPV6ADDR_SECONDARIES
I just tested mine and it works (Centos6 and Centos 5)
I did that and it didn't come up. I'll try again.