Hurricane Electric's IPv6 Tunnel Broker Forums

Advanced search  

News:

Welcome to Hurricane Electric's Tunnelbroker.net forums!

Author Topic: Centos - add additional IPv6 address?  (Read 3839 times)

bombcar

  • Jr. Member
  • **
  • Posts: 55
Centos - add additional IPv6 address?
« on: August 30, 2011, 07:26:35 AM »

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:

Code: [Select]
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 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?
Logged

cholzhauer

  • Hero Member
  • *****
  • Posts: 2671
Re: Centos - add additional IPv6 address?
« Reply #1 on: August 30, 2011, 07:28:12 AM »

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
Logged

kriteknetworks

  • Sr. Member
  • ****
  • Posts: 259
    • aRDy Music
Re: Centos - add additional IPv6 address?
« Reply #2 on: August 31, 2011, 08:18:48 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?
Logged

cholzhauer

  • Hero Member
  • *****
  • Posts: 2671
Re: Centos - add additional IPv6 address?
« Reply #3 on: August 31, 2011, 08:24:49 AM »

I probably could have, but I was already using rc.local for routing commands, so I just dumped them all in there
Logged

cconn

  • Full Member
  • ***
  • Posts: 128
Re: Centos - add additional IPv6 address?
« Reply #4 on: August 31, 2011, 02:23:54 PM »

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)
Logged

bombcar

  • Jr. Member
  • **
  • Posts: 55
Re: Centos - add additional IPv6 address?
« Reply #5 on: August 31, 2011, 02:24:48 PM »

I did that and it didn't come up. I'll try again.
Logged