---
title: "How to disable IPv6 on Linux? | Nordlayer Help"
slug: "how-to-disable-ipv6-on-linux"
updated: 2022-10-11T14:15:23Z
published: 2022-10-11T14:15:23Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://help.nordlayer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to disable IPv6 on Linux?

This guide will show you how to disable IPv6 on a Linux operating system.

1. Open the **Terminal** using the Ctrl+Alt+T keyboard shortcut. On the Terminal window, enter the following command:

```
sudo nano /etc/sysctl.conf
```

This command will open the **sysctl.conf** file in the Terminal.

1. Scroll down to the bottom of the sysctl.conf file and paste these lines.

```
net.ipv6.conf.all.disable_ipv6 = 1

net.ipv6.conf.default.disable_ipv6 = 1

net.ipv6.conf.lo.disable_ipv6 = 1

net.ipv6.conf.tun0.disable_ipv6 = 1
```

Save the changes by pressing **Ctrl+O** and **Ctrl+X** after that.

1. Enter **sudo sysctl -p** to apply the changes in the sysctl.conf file.
2. Check the status of IPv6 by entering the following command in the Terminal:

```
sudo cat /proc/sys/net/ipv6/conf/all/disable_ipv6
```

If you see 1 as a reply, it means IPv6 is not running on your device anymore.

**Note**: In case you have any questions or are experiencing any issues, please feel free to contact our [24/7 customer support team](/docs/how-do-i-contact-nordlayer-customer-support).
