Config file for Ip/netmask/gw/dns properties:/etc/sysconfig/network-scripts/ifcfg-iface
Routing-related configuration files:/etc/sysconfig/network-scripts/route-iface
Description: Fcfg-iface defines interface properties through a number of parameters. Use Vim to edit directly. You can also use (CENTOS6) system-config-network (set up), (CENTOS7): Nmtui command modification.
Ifcfg-iface configuration file Parameters:
Device: The name of the unit that corresponds to the secondary file.
Type: interface types, common with Ethernet,bridge
UUID: A unique representation of this device.
Onboot: Whether this interface is activated during system boot.
Bootproto: Activating this interface is a trial of what protocol to configure interface properties, often with Dhcp,bootnp,statci,none.
Ipv6init: Whether to initialize IPV6
DNS1: The first DNS server.
DNS2: Alternate DNS server.
Domain:dns the search domain.
IPADDR: statically specifies the IP address. When Bootproto is configured for DHCP, the configuration item does not work.
NETMASK: subnet mask; centos7 support trial prefix the subnet mask is named in length.
Gateway: Default gateways.
Userctl: Whether to allow ordinary users to control this device
Peerdns: If the value of Bootproto is DHCP, allow DNCP server to assign a DNS server that overrides the local manually specified DNS server point. The default is Allow.
HWADDR: The MAC address of the device.
Nm_controlled: Whether to try the NetworkManager service to control the interface.
linux--Network configuration file