内容简介:VMware Workstation ---> VM ---> Reinstall VMware Tools(1)查看虚拟机网关与IP地址范围(2)修改虚拟机网关或IP
1、安装VM-Tools
VMware Workstation ---> VM ---> Reinstall VMware Tools
tar -zxvf ~/tools/VMwareTools-10.3.2-9925305.tar.gz -C /root/ ~/vmware-tools-distrib/vmware-install.pl
2、 Linux 不休眠
vim /etc/systemd/logind.conf HandleLidSwitch=lock
3、修改IP地址(静态)与DNS
vim /etc/sysconfig/network-scripts/ifcfg-ethXXXX DNS1=114.114.114.114 BOOTPROTO=static IPADDR=192.168.156.120 GATEWAY=192.168.156.2 NETMASK=255.255.255.0 NM_CONTROLLED=no ONBOOT=yes
4、重启网络服务
service network restart
5、永久关闭防火墙和Selinux
systemctl stop firewalld.service systemctl disable firewalld.service chkconfig iptables off
setenforce 0 vi /etc/selinux/config SELINUX=disabled
6、重启Linux
reboot
7、注意事项
(1)查看虚拟机网关与IP地址范围
VMware Workstation--->Edit--->Vitual Network Editor--->NAT VMnet8--->NAT Settings--->Gateway IP VMware Workstation--->Edit--->Vitual Network Editor--->NAT VMnet8--->DHCP Settings --->Starting/Ending IP address
(2)修改虚拟机网关或IP
VMware Workstation--->Edit--->Vitual Network Editor--->Change Settings--->授权--->进入对应位置修改
(3)Linux的ip地址、网关的设置与虚拟机的网卡设置要相匹配
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
The Art of Computer Programming, Volumes 1-3 Boxed Set
Donald E. Knuth / Addison-Wesley Professional / 1998-10-15 / USD 199.99
This multivolume work is widely recognized as the definitive description of classical computer science. The first three volumes have for decades been an invaluable resource in programming theory and p......一起来看看 《The Art of Computer Programming, Volumes 1-3 Boxed Set》 这本书的介绍吧!
RGB转16进制工具
RGB HEX 互转工具
RGB HSV 转换
RGB HSV 互转工具