Introduction
This document drescribe how to disable IPV6 from Linux Operator System.
Contributed by Gustavo Bell, Cisco TAC Engineer.
Prerequisites
Requirements
- Access as root user to the system.
- OS (Operation System)
Configure
Configurations
Step 1. Connect to OS as root
Step 2. Verify the if the system have an IPV6 ip.
ip add | grep inet6
possible output
inet6 ::1/128 scope host
inet6 fe80::18e2:36ec:dd69:6c3f/64 scope link
Step 3. Modify the file /etc/sysctl.conf and add the following lines/
echo "net.ipv6.conf.eth0.disable_ipv6 = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.lo.disable_ipv6 = 1" >> /etc/sysctl.conf
Step 4. Reboot the system
systemctl reboot
Verify
Step 1. Verify if PV6 is running. The output should empty
ip add | grep inet6