IPv6 global address removed from the interface

Issues related to configuring your network
Post Reply
a_aronsky
Posts: 13
Joined: 2014/05/30 08:58:45

IPv6 global address removed from the interface

Post by a_aronsky » 2015/08/06 08:49:19

Dear all,

I'm working with the following CentOS version:
2.6.32-431.23.3.el6.i686 #1 SMP Thu Jul 31 14:37:53 UTC 2014 i686 i686 i386 GNU/Linux

I've noticed that when I add some global IPv6 address to the interface, and then down/up the interface via 'ip' command, the IPv6 address I previously added does not come back. So I have to add it manually again (after which it all resumes working fine). This is of course very inconvenient. Does anyone encounter such stuff? Any suggestion?

Kind regards,
A.

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: IPv6 global address removed from the interface

Post by TrevorH » 2015/08/06 09:22:03

You are running an extremely backlevel version of the kernel (more than a year old), please run yum update to bring yourself up to date. That's 6.6 at this monent but 6.7 is imminent.

If you want persistent addresses assigned to an interface then you should add the necessary parameters to your ifcfg file for the interface and use ifdown/ifup to bring the interface up and down.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

a_aronsky
Posts: 13
Joined: 2014/05/30 08:58:45

Re: IPv6 global address removed from the interface

Post by a_aronsky » 2015/08/06 10:12:40

TrevorH,

Thank you for prompt reply! I know we are sort of outdated :-) I will run yum update as you suggest and see whether it helps.
Re. ifcfg files, we do not want the addresses to be persistent over reboots - only as long as our application is running.

Best regards,
A.

a_aronsky
Posts: 13
Joined: 2014/05/30 08:58:45

Re: IPv6 global address removed from the interface

Post by a_aronsky » 2015/08/06 10:50:44

Trevor,

FYI, I upgraded to 6.6, but the problem is still there. Just scratching my head why it works this way...

[root@Infra-L-AlexA-65 ~]# cat /etc/redhat-release
CentOS release 6.6 (Final)

Regards,
A.

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: IPv6 global address removed from the interface

Post by TrevorH » 2015/08/06 11:01:08

Because that's the way it works. You took the interface down so it forgets its configuration. The problem is that you want some sort of non-persistent persistent configuration and it just doesn't work that way.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

a_aronsky
Posts: 13
Joined: 2014/05/30 08:58:45

Re: IPv6 global address removed from the interface

Post by a_aronsky » 2015/08/06 11:29:22

OK, I understand.
But why then the IPv4 addresses remain? Seems to me rather inconsistent.
Regards,
A.

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: IPv6 global address removed from the interface

Post by aks » 2015/08/06 17:20:53

Persistence is configured in /etc/sysconfig/networking-scripts/ifcfg-eth0 - assuming you don't use NetworkManager.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: IPv6 global address removed from the interface

Post by gerald_clark » 2015/08/06 17:52:58

You might also be using dhcp for IPV4.

Post Reply