Network Administration: Linux Network File

The Network file, which lives in /etc/sysconfig, specifies basic configuration settings for your Linux network. The file shown below as an example that networking is enabled, the computer’s host name is LSERVER, and the default gateway address is 192.168.1.1. Here’s a typical Network file:


NETWORKING=yes
HOSTNAME=LSERVER
GATEWAY=192.168.1.1

The following paragraphs describe all the settings that are valid for this file:



  • NETWORKING: Specifies yes or no to enable or disable networking for the computer.



  • HOSTNAME: Specifies the host name for this computer. You should also specify this name in /etc/hostname, although that file is considered obsolete and is used only by some old programs. Note that this can be a simple host name (like LSERVER) or a fully qualified domain name (like Lserver.LoweWriter.com).



  • FORWARD_IPV4: Specifies YES or NO to enable or disable IP forwarding. Specify FORWARD_IPV4=YES to set up a router.



  • GATEWAY: Specifies the IP address of the computer’s Default Gateway. If the network has a gateway router, specify its address here. If this computer is the network’s gateway router, specify the gateway IP address provided by your ISP.



  • GATEWAYDEV: Specifies the interface (such as eth0) that should be used to reach the gateway.






dummies

Source:http://www.dummies.com/how-to/content/network-administration-linux-network-file.html

No comments:

Post a Comment