In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you how to set up a fixed ip in linux. 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.
First turn on the virtual machine
Open xshell5 to connect to the virtual machine (it is convenient. Here the ip of Linux is set by default, but it is not fixed)
Enter ifconfig to view the configuration information related to network management:
Then enter the vi / etc/sysconfig/network-scripts/ifcfg-ens33 command. Modify the network card configuration file
Press I to edit. Modify the following, do not delete the original configuration, just click below to modify it. Just add the configuration items that you don't have.
When you open it, you can see that the default configuration is dhcp, and then onboot=no means that it will not start with the startup of the system. We need to modify this configuration
Then create two values below, ip and subnet mask, and add them anywhere in the image above to ok.
IPADDR=192.168.0.116 (fill in your ip) # IP address
NETMASK=255.255.255.0 (fill in your mask value) # mask value
GATEWAY=192.168.0.1 (default gateway)
DNS1=8.8.8.8 (using Google's default DNS server)
If you don't add the above four items, just modify them (if the configuration is like the figure above, just delete the other parameters, it's useless)
Esc launch editor,: wq save launch, reboot restart
After restarting, enter ifconfig to check whether the modification of ip is successful.
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
The above is how to set up a fixed ip in linux. 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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.