I need to disable IPv6 on 100 servers, so I was hoping to find a way to do it using a script. I searched the forums and the internet, but only found ways that might work. From what I can determine from using YaST to do it, YaST changes several files so I am looking for more of an authoritative answer. If anyone can help it would save me a lot of time.
I’d start with the Yast changes. If you do not make those then the next
time somebody goes to do anything networking-related (change hostname,
DNS, server, IP, add other NICs, etc.) it is likely, depending on the
setting, that things will be re-enabled. If you find how Yast does it
(which ‘sysconfig’ files in particular) then scripting those changes and
forcing a reboot (required) should be pretty simple.
[QUOTE=mrmcginnt;13910]I need to disable IPv6 on 100 servers, so I was hoping to find a way to do it using a script. I searched the forums and the internet, but only found ways that might work. From what I can determine from using YaST to do it, YaST changes several files so I am looking for more of an authoritative answer. If anyone can help it would save me a lot of time.
An alternative is to add the following line to /etc/modprobe.conf.local
alias net-pf-10 off
net-pf-10 is networking protocol family 10 which is IPv6 - see “modprobe
-c | grep net-pf”.
The server(s) will then need restarting (just as disabling IPv6 during
install also requires a restart).
HTH.
Simon
SUSE Knowledge Partner
Do you work with SUSE technologies at a university, college or school?
If so, your campus could benefit from joining the Technology Transfer
Partner (TTP) program. See TTP Organization | Micro Focus for more details.
So, I tried the following
Added the following to /etc/sysctl.conf:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
This does appear to disable IPv6 when looking at the ifconfig output. However, if I look at the Networking in Yast the Enable IPv6 is still marked as enabled. Is there something else that needs to happen to remove this in Yast? I am running SLES 11sp3 and like the original poster have several servers which I need to disable this on. Just want to do it right the first time and the correct way.
So, I tried the following
Added the following to /etc/sysctl.conf:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
This does appear to disable IPv6 when looking at the ifconfig output.
However, if I look at the Networking in Yast the Enable IPv6 is still
marked as enabled. Is there something else that needs to happen to
remove this in Yast? I am running SLES 11sp3 and like the original
poster have several servers which I need to disable this on. Just want
to do it right the first time and the correct way.[/color]
Unfortunately YaST not correctly reflecting IPv6 being disabled is a
cosmetic defect - please see TID 7015035[1] which was recently published.