Monday, February 2, 2009

Some Linux Network Configurations and Files

I just wanted to list some of the common files or configurations in Linux for networking.

NETWORK Stuff

1.) /etc/sysconfig/network
-this one contains the hostname configuration of the machine so if you want to change the machine hostname do it here
- Sometimes the GATEWAY is configured here

2.) /etc/sysconfig/network-scripts/ifcfg-eth#

Ex. ifcfg-eth0 means eth0 , ifcfg-eth1 means eth1 or ethernet 1 or NIC 1
- the Network / LAN configuration of the machine where its IP is configured
- ifcfg-eth0:0 when there is a colon it means it is a virtual ethernet

3.) /etc/hosts
-local base bind or name service to resolve hostname

4.) /etc/resolv.conf
- DNS settings of the local machine

No comments: