动态IP格式

DEVICE="eth0"
BOOTPROTO="dhcp"
HWADDR="00:1C:42:0B:52:F1"
IPV6INIT="yes"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"

centos: ifcfg-eth0 ( 标准格式 )

# Generated by parse-kickstart
DEVICE=eth0
IPV6INIT=yes
BOOTPROTO=dhcp
UUID=99975adc-7fe3-4fb5-97dd-219ee64d70b5
ONBOOT=yes
TYPE=Ethernet
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME="System eth0"

redhat: ifcfg-eth0

你可能感兴趣的:(动态IP格式)