


This article mainly introduces how to configure staticIP in [Linux] VMware virtual machine. It has certain reference value. Interested friends can refer to it
Here is a detailed explanation of how to configure a static IP in a VMware virtual machine.
The above picture is a sketch that roughly explains the VMware network situation. A network segment refers to a certain IP range. For example, one community building and another community building are not the same network segment.
If you are in community A and your girlfriend is in community B, you need to contact her if you want to. through the gateway. Your gay friend lives next door to you, so you don’t need to go through a gateway to communicate with him. VMware
simulates the gateway for us, so when we configure it, we need to set the network IP according to the VMware virtual machine. We configure windows and Linux in the same network segment.
1. View the gateway and network segment
[Edit]--》[Virtual NetworkEditor]
We use NAT mode, so choose VMnet8. Uncheck the [Use local DHCP] service option. This is to dynamically allocate IP. Click NAT Settings.
The gateway IP needs to be remembered. Through this we know that our gateway is 192.168.133.2 and the subnet mask is 255.255.255.0. The subnet IP of 192.168.133.0 means
If you want to add a machine to this network segment, your machine IP can only be in the range of 192.168.133.0~192.168.133.255. In fact, you will find that 192.168.133.2 is the gateway IP. Generally speaking, 192.168.133.255 is a broadcast IP so it is not used. 192.168.133.0 is generally a network segment IP and is not used. That is to say, except for the three numbers 0 2 255, you can set the other
numbers at will.
2. Set the virtual machine IPInvolved file list:
/etc/sysconfig/network-scripts/ifcfg-eth0 (network card), /etc/sysconfig/network (hostname), /etc/resolv.conf (DNS).
Network card information modification: vi /etc/sysconfig/network-scripts/ifcfg-eth0
##ONBOOT: Start at boot.
Exit
.DNS configuration: vi /etc/resolv.conf
nameserver: The corresponding dns domain name resolution should be filled in here The server's ip. But I didn’t know what to fill in, so I filled in the gateway address. I can download things online, but
Update
, so I didn’t pay attention to it.Host name modification: vi /etc/sysconfig/network
If necessary, modify the host name. If not, forget it. . After configuring the above three files, restart the machine.
3. Use remote tools to connect
1. The Xshell tool is used here. The ip address is set to the ip address filled in above. In the future, the ip of this machine It's all him.
#2. Click OK. This will appear when you connect for the first time. Just confirm.
#3. Enter the user name. The machine you just installed
user.
#4. Enter the password. I like all users to have the same password, so that I only need to fill in the username to log in in the future. Password needs to be remembered.
#5. After logging in, you can play casually.
4. Windows IP settings
1. Set the network adapter configured by VMWare for us, which is the NAT8. Right-click Properties
2, select IPV4, and click Properties.
3. Set the ip address. From now on, Windows will have this IP. The IP network segment range needs to be within the range given to us by the VMWare virtual machine.
5. Special Tips
#If you close the VMWare virtual machine, there will be an option to run it in the background. . In this way, the virtual machine hangs in the background, and it feels like connecting to a remote machine, which is great!
The above is the detailed content of Detailed explanation of how to configure static IP in VMware virtual machine under Linux (picture). For more information, please follow other related articles on the PHP Chinese website!

linux设备节点是应用程序和设备驱动程序沟通的一个桥梁;设备节点被创建在“/dev”,是连接内核与用户层的枢纽,相当于硬盘的inode一样的东西,记录了硬件设备的位置和信息。设备节点使用户可以与内核进行硬件的沟通,读写设备以及其他的操作。

区别:1、open是UNIX系统调用函数,而fopen是ANSIC标准中的C语言库函数;2、open的移植性没fopen好;3、fopen只能操纵普通正规文件,而open可以操作普通文件、网络套接字等;4、open无缓冲,fopen有缓冲。

端口映射又称端口转发,是指将外部主机的IP地址的端口映射到Intranet中的一台计算机,当用户访问外网IP的这个端口时,服务器自动将请求映射到对应局域网内部的机器上;可以通过使用动态或固定的公共网络IP路由ADSL宽带路由器来实现。

在linux中,交叉编译是指在一个平台上生成另一个平台上的可执行代码,即编译源代码的平台和执行源代码编译后程序的平台是两个不同的平台。使用交叉编译的原因:1、目标系统没有能力在其上进行本地编译;2、有能力进行源代码编译的平台与目标平台不同。

在linux中,eof是自定义终止符,是“END Of File”的缩写;因为是自定义的终止符,所以eof就不是固定的,可以随意的设置别名,linux中按“ctrl+d”就代表eof,eof一般会配合cat命令用于多行文本输出,指文件末尾。

linux查询mac地址的方法:1、打开系统,在桌面中点击鼠标右键,选择“打开终端”;2、在终端中,执行“ifconfig”命令,查看输出结果,在输出信息第四行中紧跟“ether”单词后的字符串就是mac地址。

在linux中,可以利用“rpm -qa pcre”命令判断pcre是否安装;rpm命令专门用于管理各项套件,使用该命令后,若结果中出现pcre的版本信息,则表示pcre已经安装,若没有出现版本信息,则表示没有安装pcre。

在linux中,rpc是远程过程调用的意思,是Reomote Procedure Call的缩写,特指一种隐藏了过程调用时实际通信细节的IPC方法;linux中通过RPC可以充分利用非共享内存的多处理器环境,提高系统资源的利用率。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

SublimeText3 Linux new version
SublimeText3 Linux latest version

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

WebStorm Mac version
Useful JavaScript development tools

SublimeText3 English version
Recommended: Win version, supports code prompts!
