Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

9.5. 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:

           NETWORKING=yes
           FORWARD_IPV4=yes
           HOSTNAME=deep. openna.com
           GATEWAY=0.0.0.0
           GATEWAYDEV=
           

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.

Important: For compatibility with older software, the /etc/HOSTNAME file should contain the same value as HOSTNAME= hostname above. With the new version of Red Hat Linux 6.2 the FORWARD_IPV4= parameter is now specified in the /etc/sysctl.conf file instead of the /etc/sysconfig/network file.

 
 
  Published under the terms of the Open Publication License Design by Interspire