Centos8.2 network card configuration file explanation

Network card configuration file explanation

[root@localhost network-scripts]# cat ifcfg-ens4f1
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
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=ens4f1
UUID=c30e9eed-e3fe-47bd-aba0-95f15a688dc5
DEVICE=ens4f1
ONBOOT=no
[root@localhost network-scripts]# cat ifcfg-ens4f0
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
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=ens4f0
UUID=ba044f36-da09-41aa-b9cd-e66682823209
DEVICE=ens4f0
ONBOOT=yes
IPADDR=10.17.22.153
PREFIX=24
GATEWAY=10.17.22.254

This is a Linux system network configuration file, the meaning of each line is as follows:

  • TYPE=Ethernet: The network interface type is Ethernet.
  • PROXY_METHOD=none: Proxy mode is set to no proxy.
  • BROWSER_ONLY=no: is not limited to browsers.
  • BOOTPROTO=none: Do not use dynamic IP protocol to assign IP address, set IP address manually.
  • DEFROUTE=yes: Set the default route.
  • IPV4_FAILURE_FATAL=no: IPv4 failure is not fatal.
  • IPV6INIT=yes: Enable IPv6 protocol support.
  • IPV6_AUTOCONF=yes: Allow autoconfiguration of addresses using IPv6.
  • IPV6_DEFROUTE=yes: IPv6 default routing is enabled.
  • IPV6_FAILURE_FATAL=no: IPv6 failure is not fatal.
  • IPV6_ADDR_GEN_MODE=stable-privacy: The IPv6 address generation mode is a stable private address.
  • NAME=ens4f0: The network interface name is ens4f0.
  • UUID=ba044f36-da09-41aa-b9cd-e66682823209: A unique identifier for the network interface.
  • DEVICE=ens4f0: The network interface device name is ens4f0.
  • ONBOOT=yes: Activate this network interface at power-on.
  • IPADDR=10.17.22.153: Configure the IPv4 address of the network interface as 10.17.22.153.
  • PREFIX=24: The subnet mask is 255.255.255.0, which is /24 in CIDR notation.
  • GATEWAY=10.17.22.254: Set the IPv4 default gateway of this network interface to 10.17.22.254.

Guess you like

Origin blog.csdn.net/qq_21688871/article/details/130749830