1. automatically allocate ip addresses:
2. manually set ip addresses
TYPE = Ethernet
UUID = ac67feab-9d6c-48e9-abb6-c40b9b5c8de9
NM_CONTROLLED = yes
BOOTPROTO = static # Set the way for the NIC to obtain the IP address. The possible options are static, dhcp, or bootp, which respectively correspond to the IP address specified by the static state and the IP address obtained through the dhcp protocol, IP addresses obtained through the bootp protocol
BROADCAST = 192.168.0.255 // # corresponding subnet BROADCAST address
NETMASK = 255.255.255.0 # network mask corresponding to the network adapter
ONBOOT = yes # whether to set this network interface when the system starts. If it is set to yes, the device is activated when the system starts.
NAME = "System eth0 ″
IPADDR = 192.168.1.100 # If you set the method for obtaining the IP address from the NIC to static, this field specifies the IP address corresponding to the NIC.
GATEWAY = 192.168.1.1
HWADDR = 6C: 62: 6D: E5: E2: D6 # physical address of the corresponding Nic
HOSTNAME = localhost. localdomain # (set the Host Name of the local machine. The host name set here must correspond to the host name set in/etc/hosts)
GATEWAY = 192.168.1.1 # (set the IP address of the GATEWAY connected to the local machine .)