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 fixed IP in Ubuntu system

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Today, I will talk to you about how to set up a fixed IP in the Ubuntu system. Many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.

1. Click the VM menu bar: Edit-- > Virtual Network Editor...

two。 Since the network of my virtual machine is in NAT mode (which is also the default), select VMnet8 and modify it as follows:

3. Enter ubuntu and open System Settings (system Settings)-- > Network (Network)-- > Click Options... in the lower right corner. -- > Click IPv4 Settings tab

Note: click the Add button to add your own ip address. The Netmask (subnet mask) is generally 255.255.255.0 (Gateway): for example, if your ip address is 192.168.0.143, then your gateway should be set to 192.168.0.2 (the last one of the VM default gateway is 2). You can modify it as follows (generally, you don't need to modify it):

DNS server settings: I am here to set Ali's DNS server. In fact, it can be set to the address of the router, but I have tried, it seems that the speed is very slow, this setting is set according to the actual situation, only can be used.

PS: previously installed online to modify, by modifying the / etc/network/interfaces file to modify the ip, but also to modify the dns configuration file. In fact, through the above modification, the content of / etc/network/interfaces has not changed, there is nothing more in it:

After reading the above, do you have any further understanding of how to set up fixed IP in Ubuntu system? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

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

Servers

Wechat

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

12
Report