标签:动态获取 mod name gate config The sys method ipad
vi /etc/sysconfig/network-scripts/ifcfg-ens33
ifcfg-ens33为ifconfig显示的网卡名
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="f9c0cf23-68d1-4545-ac0e-129bfa4e53c2"
DEVICE="ens33"
ONBOOT="yes"
IPADDR="192.168.8.40"
GATEWAY="192.168.8.1"
NETMASK="255.255.255.0"
DNS1="8.8.8.8"
BOOTPROTO:dhcp为动态获取 static静态
IPADDR:ip地址
GATEWAY:网关
NETMASK:子网掩码
DNS1:dns
标签:动态获取 mod name gate config The sys method ipad
原文地址:https://www.cnblogs.com/jxd283465/p/11507512.html