Get the App
SLTechnology News&Howtos  ›  Network Security  › 

How to set static IP in ubuntu16.04

Shulou Source: shulou.com Published: 2022-06-01 00:59:23 10月04日 Update

This article shows you how to set up static IP in ubuntu16.04. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

Setup process:

1. Ctrl+alt+t, open the terminal.

2. The permission for sudo su to switch to root

3. Execute: vi / etc/NetworkManager/NetworkManager.conf

Change manager=false to manager=true save and exit

4. Execute reboot to restart the system

5. After the restart is completed, open the terminal and execute vi/etc/network/interfaces

Add the following to the file:

Auto ens33

Iface ens33 inet static

Address 172.18.xx.xx

Gateway 172.18.xx.xx

Netmask 255.255.255.0

Dns-nameserver 172.17.xx.x 172.17.xx.x

Content explanation:

Static ip to be set by address

Gateway Gateway

Netmask subnet mask

Dns-nameserver dns (Note: there are multiple dns separated by spaces)

After the addition is complete, save and exit

6. Reboot restarts the system, and the setup is complete.

The above is how to set static IP in ubuntu16.04. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Tags: Content static skills knowledge systems terminals concise concise multiple that is files articles more permissions comments processes spaces articles gateways industries Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology vpn macOS Xiaomi Linux