/etc/hostsDHCP setup:
/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/resolv.conf
/etc/sysconfig/networkThe RedHat setup command
/etc/sysconfig/network-scripts/ifcfg-eth0

% ls -lt | headYou will also find that /etc/sysconfig/network and /etc/sysconfig/network-scripts/ifcfg-eth0 were modified.
To bring up the network, specifying IP, netmask, and broadcast using the ifconfig command:
# ifconfig eth0 10.2.135.201 netmask 255.255.255.0 broadcast 10.1.255.255 upThen you will need to set the default router:
# route add default gw 10.2.135.1
# netstat -nr
Kernel IP routing table
Destination Gateway
Genmask Flags MSS Window
irtt Iface
192.168.1.0 0.0.0.0
255.255.255.0 U 40 0
0 eth0
127.0.0.0 0.0.0.0
255.0.0.0 U
40 0 0 lo
0.0.0.0 192.168.1.1
0.0.0.0 UG
40 0 0 eth0
Netstat Flags
$ netstat -i
Kernel Interface table
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR
TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0 1500 0 944869
0 0 0 1399218
0 0 0 BMRU
lo 16436 0 25770
0 0 0
25770 0 0
0 LRU
# netstat -ta
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address
Foreign Address State
tcp 0
0 *:32768
*:*
LISTEN
tcp 0
0 *:sunrpc
*:*
LISTEN
tcp 0
0 *:x11
*:*
LISTEN
tcp 0
0 ns:domain
*:*
LISTEN
tcp 0
0 oaxaca:domain
*:*
LISTEN
tcp 0
0 *:ssh
*:*
LISTEN
tcp 0
0 oaxaca:rndc
*:*
LISTEN
tcp 0
0 oaxaca:x11-ssh-offset *:*
LISTEN
tcp 0
0 oaxaca:ssh
ponto:34429 ESTABLISHED
Connectivity tests:
# ping 10.2.135.201
# ping 10.2.135.1
# ping 172.20.2.15How does your system restart the network services?
How do these services start at boot time? Which run-levels support networking?
# service network restartIs DNS Resolving hostnames?
or
# /etc/init.d/network restart
# nslookup google.comCheck your nameserver config file:
Non-authoritative answer:
Name: google.com
Address: 216.239.35.100
Name: google.com
Address: 216.239.51.100
# cat /etc/resolv.confLoading kernel modules
search miracosta.edu
nameserver 172.20.2.15
nameserver 172.20.2.10
# depmod -alsmod to list loaded kernel modules
# lsmodrmmod to remove (unload) kernel modules
# rmmod <module-name>The /etc/modules.conf file
$ cat /etc/modules.conf
alias parport_lowlevel parport_pc
alias eth0 3c59x
alias scsi_hostadapter sym53c8xx
alias eth1 tlan
alias usb-controller usb-ohci
alias char-major-188 visor
alias sound-slot-0 sb
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L
>/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S
>/dev/null 2>&1 || :
alias eth0 3c503
optoins 3c503 irq=5 io=0x300