当前位置:网站首页>VMware Workstation 配置net模式
VMware Workstation 配置net模式
2022-07-28 05:28:00 【【异度空间】】
VMware Workstation 配置net模式
VMware Workstation 网络配置
说明: 通过VMware Workstation 编辑–>虚拟网络编辑器 打开网络配置界面。
网络配置界面

1.选中NAT模式选项
如上图所示,选择VMnet8 NAT模式网络。
2.进行子网和子网掩码配置
如上图所示,我配置的网络段是202.207.240.0, 子网掩码是255.255.255.0
3.DHCP设置
这里我配置的网络段的起始IP地址为202.207.240.10,结束地址是202.207.240.254
4.NAT设置
在该选项卡中,只需要设置网关即可,如下图所示。
本地主机虚拟网卡配置
从主机上的网络适配器中找到虚拟机虚出的用于配置NAT模式的VMnet8网卡

打卡网卡的网络配置栏,进行如下配置:
虚拟机网卡配置
找到自己虚拟机的网卡配置文件,进行如下配置
vi /etc/sysconfig/network-script/ifcfg-ens33

保存退出后重启网卡,发现IP地址发生变化,ping命令测试以下是否可以上网。
systemctl restart network
ifconfig
ping www.baidu.com
最后发现可以上网,NAT模式配置成功
[[email protected] ~]# ping www.baidu.com
PING www.a.shifen.com (14.215.177.38) 56(84) bytes of data.
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=1 ttl=53 time=33.7 ms
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=2 ttl=53 time=33.6 ms
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=3 ttl=53 time=33.6 ms
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=4 ttl=53 time=34.2 ms
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=5 ttl=53 time=33.6 ms
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=6 ttl=53 time=34.0 ms
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=7 ttl=53 time=33.6 ms
^C
--- www.a.shifen.com ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6011ms
rtt min/avg/max/mdev = 33.658/33.823/34.275/0.270 ms
边栏推荐
- Question brushing record - linked list
- Battle plague Cup -- my account book
- 从普通查询商品到高并发查询商品的优化思路
- 单项链表的创建、遍历以及按要求查找结点
- Everything you don't know about time complexity is here
- 浅谈Cookie和Session
- redis实现分布式锁思路及redission分布式锁主流程分析
- 单元测试框架Jest搭配TypeScript的安装与配置
- [queue, simple application of stack ---- packaging machine]
- InitializingBean接口及示例
猜你喜欢

How about air conduction Bluetooth headset? It's the most worthwhile air conduction headset to start with

设计测试用例的方法
![[dynamic planning -- the best period for buying and selling stocks Series 2]](/img/6c/887a026d3c1bcbd278bb7f3e0afd05.png)
[dynamic planning -- the best period for buying and selling stocks Series 2]

Leetcode brush question diary sword finger offer II 055. binary search tree iterator

What kind of air conduction Bluetooth headset with good configuration is recommended

Leetcode brush question diary sword finger offer II 048. serialization and deserialization binary tree

技术分享 | 如何模拟真实使用场景?mock 技术来帮你

iptables防火墙

Redis implementation of distributed lock and analysis of the main process of redismission distributed lock

JS reverse question 100 - question 1
随机推荐
Redis implementation of distributed lock and analysis of the main process of redismission distributed lock
Code neatness (2)
Analysis of the semaphore source code of AQS
HDU-5806-NanoApeLovesSequenceⅡ(尺取法)
Compilation and preprocessing of C language
RayMarching realizes volume light rendering
[pta---- output full arrangement]
TCP/IP五层模型
What kind of air conduction Bluetooth headset with good configuration is recommended
Water drop effect on umbrella
单元测试框架Jest搭配TypeScript的安装与配置
yapi漏洞挂马程序chongfu.sh处理
feignclient @RequestMapping参数设置及请求头简易方式设置
项目编译NoSuch***Error问题
mongoDB快速入门
搭建PHP7私有仓库
[untitled]
File operation in C language
How about air conduction Bluetooth headset? It's the most worthwhile air conduction headset to start with
How to simulate the implementation of strcpy library functions