You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI: How to Disable IPv6 on Oracle Linux

edited Jun 3, 2024 11:57AM in Linux

Applies To:

Oracle Linux Cloud Service - Version Oracle Linux 7.0 and later

Oracle Cloud Infrastructure

Goal:

This document explains steps to disable IPV6 in Oracle Linux 7 and later.

Solution:

Method 1: To disable IPv6 for all interfaces and for their default states via sysctl.
  • On-the-fly change:
# sysctl -w net.ipv6.conf.all.disable_ipv6=1
# sysctl -w net.ipv6.conf.default.disable_ipv6=1
  • Or persistent change:
$ sudo vi /etc/sysctl.conf

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
$
$ sudo sysctl -p
$
Method 2: To disable IPv6 for one interface via sysctl.
  • On-the-fly change (choose the correct interface name):
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!