LINUX networking configuration - TechRepublic
General discussion
March 2, 2001 at 03:22 PM
hoayfern

LINUX networking configuration

by hoayfern . Updated 25 years, 3 months ago

Hi,

currently we have a dns server 203.126.241.50 and now I configure another PC for my practice use.

I edit 3 files for another PC such as
1)vi /etc/hosts
2)vi /etc/sysconfig
3)vi /etc/sysconfig/network-scripts/ifcofg-eth0

the hostname that I configure is dns3.duraco.com.sg
IP address: 203.126.241.155
gateway:203.126.241.49

I can ping to my gateway but I can’t ping to 203.126.241.50

I try to put the nameserver as 203.126.241.50, when I try to use the
nslookup command, it said that no domain server found.
may I know normally what we put in the nameserver ??

here is the contents of what i have configure
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=etho
IPADD=”203.126.241.55″
NETMASK=”255.255.255.0″
NETWORK=203.126.241.0
BROADCAST=203.126.241.255
ONBOOT=yes
BOOTPROTO=none

the contents of the /etc/sysconfig/network
NETWORK=yes
FORWARD_IPV=’no”
HOSTNAME=”dns3.duraco.com.sg”
DOMAINNAME=”duraco.com.sg”
GATEWAY=”203.126.241.49″
GATEWAYDEV=”eth0″
contents of /etc/hosts
127.0.0.1 host localhost.localdomain
203.126.241.155 duraco.com.sg dns3.duraco.com.sg

contents of /etc/resolv.conf
serach duraco.com.sg
nameserver 203.126.241.50

my routing table informations:
destination gateway genmask UH
203.126.241.55 0.0.0.0 255.255.255.255 U
203.126.241.0 0.0.0.0 255.255.255.0 U
127.0.0.0 0.0.0.0 255.0.0.0 U
0.0.0.0 203.126.241.49 0.0.0.0 UG

is there any problems with myrouting table and configurations

i really hope can ping out so that i can configure it as our mail server and web server

please assits

hoay fern
please assist

hoay fern

This discussion is locked

All Comments