linux 自动或IP笔记

TYPE="Ethernet"
BOOTPROTO="dhcp"
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="eno1"
UUID="4b3ad16e-cad0-458a-80d9-9b0d2534f688"
DEVICE="eno1"
ONBOOT="yes"
#IPADDR="192.168.32.21"
#PREFIX="24"
#GATEWAY="192.168.32.1"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_PRIVACY="no"

重启网卡:service network start

相关文章
相关标签/搜索