How to set a fixed IP address for a VMware virtual machine (graphic tutorial)

How to set a fixed IP address for a VMware virtual machine (graphic tutorial)

1. Select Edit → Virtual Network Editor in the menu bar to open the Virtual Network Editor dialog box, select Net network connection mode, set the subnet IP at will, click the NAT settings page, check the subnet mask and gateway, which will be used later to modify the static IP.

Note: The "Use local DHCP service..." option is not checked.

2. Check the physical host network card settings, open Network and Sharing Center → Change adapter settings →, right-click on VMware Network Adapter VMnet8, and select the Properties button to open the Properties dialog box.

Modify the IP address and fill in the same as the first step

3. Enter the virtual machine and set a fixed IP address.

Enter the following command: vi /etc/sysconfig/network-scripts/ifcfg-eth0

Note: To modify network settings, you must be the root user or sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0

Modify as shown below

DEVICE="eth0"
BOOTPROTO="static"
HWADDR="00:0C:29:F4:7E:C9"
IPV6INIT="yes"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="2a76c2f8-cd47-44af-936d-11559b3a498d"
IPADDR="192.168.73.100"
NETMASK="255.255.255.0"

GATEWAY="192.168.73.1"

Next, save and exit

In order for the address to take effect, you need to restart the network configuration, as shown in the following input: service network restart

The following can be connected through SecureCRT

This is the end of this article about how to set a fixed IP address for a VMware virtual machine (graphic tutorial). For more information about setting a fixed IP address for VMware, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed explanation of setting fixed IP for CentOS in VMware virtual machine

<<:  How to use CSS to center a box horizontally and vertically (8 methods)

>>:  Application of dynamic image loading technology and use case of jquery.lazyload plug-in

Recommend

How to split and merge multiple values ​​in a single field in MySQL

Multiple values ​​combined display Now we have th...

Detailed explanation of the correct way to open em in CSS

Why do we say “usually 1em=16px”? The default tex...

How to solve the timeout during pip operation in Linux

How to solve the timeout problem when pip is used...

How to set the height of the autosize textarea in Element UI

After setting textarea input in Element UI to aut...

How to configure Linux to use LDAP user authentication

I am using LDAP user management implemented in Ce...

Detailed explanation of the solution to Ubuntu dual system stuck when starting

Solution to Ubuntu dual system stuck when startin...

How to insert Emoji expressions into MySQL

Preface Today, when I was designing a feedback fo...

How to get the dynamic number of remaining words in textarea

I encountered a case at work that I had never wri...

Use of MySQL DDL statements

Preface The language classification of SQL mainly...

Detailed explanation of grep and egrep commands in Linux

rep / egrep Syntax: grep [-cinvABC] 'word'...

Learn Node.js from scratch

Table of contents url module 1.parse method 2. fo...

Sqoop export map100% reduce0% stuck in various reasons and solutions

I call this kind of bug a typical "Hamlet&qu...