New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
centos7.4 ipv6 automatically disabled after a while.
Hi , this is most troubling
I have plesk installed on centos 7.4 , I configured ipv6 before plesk , and tested by
ping6 google.com
confirm it's working
and then I set my site to run on ipv6 , initially it works , but after a while , like an hour or so , ipv6 is not longer working , ping6 google.com failed
reboot will fix the issue , but I can't just reboot it every now and then.
I have 2 VPS with same installation , this one lost its ipv6 every once a while , but other VPS seems keep it working all the time.
anyone has ever experienced such issue ?
a help is appreciated .
Comments
Try adding
net.ipv6.conf.default.accept_ra=0 net.ipv6.conf.default.autoconf=0 net.ipv6.conf.all.accept_ra=0 net.ipv6.conf.all.autoconf=0 net.ipv6.conf.eth0.accept_ra=0 net.ipv6.conf.eth0.autoconf=0
to /etc/sysctl.d/50-IPv6.conf, reboot and see if it helps
How is your system set up to get its ipv6 address ... ?
Sounds like your system autoconfigures an ipv6 on start up by sending a router solicitation
and getting a reply - however if the router is not sending out periodic router advertisements
or they are blocked/lost your machine will loose its address ... until next reboot.
You could configure the address you get as well as gateway and default route manually.
its hacked! start over.
when it's working, run 'ip -6 route' and paste the results here.
I have compared when it's not working , output the same.
I got it followed this guide here https://unix.stackexchange.com/questions/316730/how-to-setup-ipv6-on-centos
thanks , will see how it goes.
Yeah. It's not dropping your route because it's out of band, which @sirpumpkin was providing a workaround for.
thanks , I will see how it goes
thanks , but unfortunately ipv6 still went off after a while...
It's strange, I have a VPS with Centos-7 Minimal, working with IPV6, and it works very well without any additional configuration except to place it in the adapter, you should consider opening a ticket to your provider.
indeed it is strange , I have 2 VPS from same provider , with exact same conf and setting , one works all the time , another one lost ipv6 few minutes after reboot
For the above, open a ticket with your provider and tell him that his 2 VPS are configured in the same way, and that one works in IPV6 and in another not, sure that it helps.
arrrgggg , this problem is killing me here.
ticket sent , let's see how it goes ...
thanks for advice
I worked out , but still didnt get it why and how.
The provider is Netcup , if i set ipv6 during ISO installation , ipv6 works fine all the way .
But if i install system first and then add ipv6 sftwards , ipv6 will become unusable after a while.
I write it here in case someone who got same problme and luckily google'd this thread , hope this could be a help.
For NetCup, @sirpumpkin's suggestion generally works.
well , I think I am the "de-generally" case ...
but any way , it works now ...