标签:failure tar nbsp 固定 uid rest pts ati mamicode
Centos7
网络连接模式:NAT模式
ip addr
vim /etc/sysconfig/network-scripts/ifcfg-ens33
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="59b0c36d-322c-4532-b252-af3ab01bb13d" DEVICE="ens33" ONBOOT="yes" IPADDR="192.168.6.142" #需要和虚拟网卡设置的IP段一致 NETMASK="255.255.255.0" GATEWAY="192.168.6.2" #需要和虚拟网卡设置的网关一致 DNS1="8.8.8.8"
systemctl restart network.service
ip addr
标签:failure tar nbsp 固定 uid rest pts ati mamicode
原文地址:https://www.cnblogs.com/Canyon/p/12021628.html