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 CentOS in VMware virtual machine

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "how to set the fixed IP in the CentOS in the VMware virtual machine". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to set a fixed IP for CentOS in a VMware virtual machine".

1. Get your gateway first

It is convenient to use the selection menu bar in the cento system configuration later: edit- > virtual network editor

Select vmnet8 and click nat settings to view the gateway address: the gateway ip here is 192.168.110.2

Then we can get down to business.

two。 Set the centos static ip:

Three profiles are involved, which are:

/ etc/sysconfig/network/etc/sysconfig/network-scripts/ifcfg-eth0/etc/resolv.conf

a. First, modify / etc/sysconfig/network as follows:

Specify the gateway address.

b. Then modify / etc/sysconfig/network-scripts/ifcfg-eth0:

c. Finally, configure / etc/resolv.conf: (in fact, this step can be omitted. The system will automatically modify the configuration file when the address of dns server is set above.)

This is easy. After a few steps, the ip of the virtual machine has been 192.168.110.129.

Once the ip is fixed, you can then set up the host

At this point, I believe you have a deeper understanding of "how to set fixed IP in CentOS in VMware virtual machine". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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

Development

Wechat

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

12
Report