桥接模式-xshell连接虚拟机

1、修改文件

/etc/resolv.conf

https://www.cnblogs.com/Harley-Quinn/p/7458373.html

ipv4:10.100.11.56
子网掩码255.255.255.0
默认网关10.100.11.1

-----------------------------------------------------------------------

好像第一步不用操作,直接添加DNS即可

2、添加DNS

DNS1=8.8.8.8

DNS2=8.8.4.4

https://blog.csdn.net/lishuan182/article/details/81383448

https://www.cnblogs.com/Harley-Quinn/p/7458373.html

3、重启网络服务

service network restart

4、ip add 查ip,在本机xshell上使用查出来的连接,连接成功

猜你喜欢

转载自www.cnblogs.com/arrows/p/11268949.html