Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set static IP in ubuntu16.04

2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report