时间:2023-06-27 11:12:01 | 来源:网站运营
时间:2023-06-27 11:12:01 来源:网站运营
虚拟机网络配置:VMware网卡配置模式TYPE="Ethernet"PROXY_METHOD="none"BROWSER_ONLY="no"BOOTPROTO="static"DEFROUTE="yes"IPV4_FAILURE_FATAL="no"IPV6INIT="yes"IPV6_AUTOCONF="yes"IPV6_DEFROUTE="yes"IPV6_FAILURE_FATAL="no"IPV6_ADDR_GEN_MODE="stable-privacy"NAME="ens33"UUID="dfd8991d-799e-46b2-aaf0-ed2c95098d58"DEVICE="ens33"ONBOOT="yes"IPADDR="192.168.88.161"GATEWAY="192.168.88.2"NETMASK="255.255.255.0"DNS1="8.8.8.8"DNS2="114.114.114.114"IPV6_PRIVACY="no"
文件配置如下: systemctl restart network
4)测试是否联网: ping www.baidu.com[root@localhost ~]# ping www.baidu.comPING www.a.shifen.com (112.80.248.76) 56(84) bytes of data.64 bytes from 112.80.248.76 (112.80.248.76): icmp_seq=1 ttl=128 time=14.1 ms64 bytes from 112.80.248.76 (112.80.248.76): icmp_seq=2 ttl=128 time=14.0 ms64 bytes from 112.80.248.76 (112.80.248.76): icmp_seq=3 ttl=128 time=13.7 ms64 bytes from 112.80.248.76 (112.80.248.76): icmp_seq=4 ttl=128 time=13.5 ms64 bytes from 112.80.248.76 (112.80.248.76): icmp_seq=5 ttl=128 time=14.6 ms64 bytes from 112.80.248.76 (112.80.248.76): icmp_seq=6 ttl=128 time=14.3 ms
修改完之后使用CRT重新连接虚拟机关键词:配置,网络,虚拟