Sep 13, 2018

The /etc/sysconfig/network file in CentOS / RedHat / Oracle Linux

The /etc/sysconfig/network file

The /etc/sysconfig/network file is used to specify information about the desired network configuration on your server. Following is a example /etc/sysconfig/network file:

The following values may be used:
  • NETWORKING=answer, where answer is yes or no -Configure networking or not to configure networking.
  • FORWARD_IPV4=answer, where answer is yes or no -Perform IP forwarding or not to perform IP forwarding.
  • HOSTNAME=hostname, where hostname is the hostname of your server.
  • GATEWAY=gwip, where gwip is the IP address of the remote network gateway -if available.
  • GATEWAYDEV=gwdev, where gwdev is the device name eth# you use to access the remote gateway.