How to disable IPv6

This document (7003131) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 10
SUSE Linux Enterprise Server 11
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server 15

Situation

A network infrastructure requires IPv6 functionality being turned off.

Resolution

The IPv6 functionality of SUSE Linux Enterprise Server can be turned off with the YaST configuration tool. 
This is described in chapter 19.2 of the SUSE Linux Enterprise Server 15 SP1 Administration Guide.

Alternatively you may even follow the below steps on the command line.
1. To disable IPv6 persistent across reboot.
In the file /etc/sysctl.conf add the following lines:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

Reload the options with the following command:
sysctl -p 
Or reboot the server with the following command:
reboot

2. Disable on the fly - Temporary (does not persists a reboot)
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7003131
  • Creation Date: 27-Apr-2009
  • Modified Date:07-Aug-2020
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback@suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center