LINUX network configuration parameters

EVICE=eth0 #Indicate
the device name NM_CONTROLLED=yes #The parameters of the network mamager, take effect in real time, do not need to restart
ONBOOT=yes #Set to yes, automatically enable network connection at boot
IPADDR=192.168.21.129 #IP address BOOTPROTO
=none #Set to none Disable DHCP, set it to static to enable static IP address, set it to dhcp to
enable DHCP
service .21.2 #Set gateway DNS2=8.8.4.4 #Second dns server IPV6INIT=no #Prohibit IPV6 USERCTL=no #Whether non-root users are allowed to control the device, set to no, only root users can change HWADDR=00:0C :29:2C:E1:0F #The Mac address of the network card PREFIX=24 DEFROUTE=yes IPV4_FAILURE_FATAL=yes NAME="System eth0" #Define the device name









Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325332089&siteId=291194637