vmware
1. 主机端:/Library/Preferences/VMware\ Fusion/networking 配置vm联网方式
2. 主机端:/Library/Preferences/VMware\ Fusion/vmnet8/nat.conf 配置转发端口
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --config networking 修改完后,自动生成 dhcp.cnf
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --stop
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --start
https://blog.csdn.net/sfdgsdfbsbg/article/details/104301880
主机端获取网关
cat /Library/Preferences/VMware\ Fusion/vmnet8/nat.conf | grep gateway -A 2
3. 虚拟机端:vim /etc/sysconfig/network-scripts/ifcfg-ens33
BOOTPROTO="static"
ONBOOT="yes"
IPADDR="192.168.59.128"
NETMASK="255.255.255.0"
GATEWAY="192.168.59.2" ---- importent
DNS1="114.114.114.114"
DNS2="8.8.8.8"
注意: 类似json 不能有注释
4. 虚拟机端:nmcli c reload
5. 验证:
vm: ping baidu.com ping 主机IP
主机: ping 主机ip:转发端口
6. 虚拟机端, 另外,可能需要将防火墙关掉,还有seLinux也要设置为失效。具体代码如下:
systemctl stop firewalld set enforce 0
centos7:
centos7 重新启动网络:systemctl start network.service 或者 service network restart
MAC VMWare Fusion虚拟机连接外网(nat模式)
VMware中虚拟机与主机不能ping通解决办法
可能性1:虚拟机防火墙禁ping,请关闭虚拟机防火墙重试;
可能性2:本机上的vmnet8网卡被禁用了,打开禁用即可。
可能性3:一般用service network restart 重新激活网卡,根据报的错进行查看问题所在
centos8设置NetworkManager开机自启动
启动:systemctl start NetworkManger
关闭:systemctl stop NetworkManager
开机启动:systemctl enable NetworkManager
查看是否开机启动:systemctl is-enabled NetworkManager
禁用开机启动:systemctl disable NetworkManager
Linux关闭防火墙命令
https://www.jianshu.com/p/f518442ce997
systemctl status firewalld
systemctl stop firewalld
systemctl disable firewalld
查看linux中某个端口(port)是否被占用
http://www.findme.wang/blog/detail/id/1.html
https://my.oschina.net/u/1538376/blog/2876470
Mac上VMware Fusion的NAT端口映射+静态IP
https://blog.csdn.net/zpf336/article/details/51555269
Mac VMware fusion nat 外网映射
https://blog.csdn.net/zpf336/article/details/51555269
VMware Fusion 端口映射及静态IP
https://learnku.com/articles/46523
MAC VMWare Fusion网络设置方法
https://www.qedev.com/cloud/10924.html
VMware Fusion NAT无法连网解决方案
https://zhuanlan.zhihu.com/p/148937675?from_voters_page=true
mac ping: sendto: Host is down PING不通别人的ip,可以ping通路由器
https://blog.csdn.net/weixin_33897722/article/details/91799186
macbook怎么禁用虚拟网卡,ifconfig vmnet1 down 有用吗
https://zhidao.baidu.com/question/1820693547786232108.html
解决centos7中ens33中不显示IP等问题
https://www.cnblogs.com/jpfss/p/10917852.html
https://www.freesion.com/article/7234561920/
vm:
systemctl stop NetworkManager
systemctl restart NetworkManager命令 重启网络管理
CentOS 8.0网络配置
https://blog.51cto.com/qiuyue/2446096?source=dra
centos8网络配置
https://blog.csdn.net/yeyueyouhun/article/details/103119195
Centos8 重启网卡方法
https://www.cnblogs.com/langyao/p/11725269.html
【解决】Failed to restart network.service: Unit network.service not found.
https://www.cnblogs.com/leozhanggg/p/11772251.html
VMware虚拟机网络连接模式(桥接、NAT以及仅主机模式的详细介绍和区别)
https://www.fengjunzi.com/blog-24897.html
添加共享文件夹
VMWare15、Centos7共享文件夹的自动挂载设置(防止关机重启后共享文件夹为空)
https://blog.csdn.net/qq_21221361/article/details/110176257
1. vmshare 设置中添加 指定主机共享文件夹位置: /**/vmshare
2. 虚拟机安装: sudo apt install open-vm-tools
3. 挂载命令:vmhgfs-fuse .host:/vmshare /mnt/hgfs -o nonempty -o allow_other
4. 编辑 vi /etc/fstab: 在最后添加一行: .host:/vmshare /mnt/hgfs fuse.vmhgfs-fuse allow_other,defaults 0 0
vmware 共享文件夹不显示文件的问题
https://my.oschina.net/zhupengdaniu/blog/3138588
macos 下 vmware fusion 安装 vmware tools
https://www.codenong.com/cs106164372/
MacOS VMwareFusion 安装VMWare Tools
https://www.jianshu.com/p/cf028dde5940
如何在 CentOS 8 上增加 Swap 空间
https://cloud.tencent.com/developer/article/1626785
Linux 下的dd命令使用详解以及dd if=/dev/zero of=的含义
https://blog.csdn.net/demo_deng/article/details/9428491
Linux 问题记录】(2)内存不足
https://blog.csdn.net/u011897411/article/details/89742008
fuse: mountpoint is not empty fuse: if you are sure this is safe, use the 'nonempty' mount option
https://blog.csdn.net/qq_29519041/article/details/89019823