October 4th, 2005, 02:46 PM
connecting internet in redhat 9
I have really really gone nuts. Last year I did connect one redhat box on my LAN server. One machine has redhat 9 and I want to connect to the internet on my LAN. server is win2k sever.
Please guide me from the begenning. I will be very much thankful for your precious help.
October 4th, 2005, 04:37 PM
It depends on what you've doen so far, and what condition
the system is in by default. Sometimes all you need to do is plug it in.
Assuming you are connecting through an ethernet connection.
At a command prompt, type the command ifconfig
It should have several lines of info about the eth0 interface,
as well as the lo interface. You can't proceed without eth0
If that is good, type the command ping localhost There's no sense
going further if you can't ping localhost, also known as 127.0.0.1
Now ping another host on your local network (if you have a local network)
If you can ping other hosts, you are live, and so are the hosts that respond.
There are several files that contain critical configuration info for your connection.
The /etc/hosts file contains a list of numerical ip addresses, and the
names that correspond to them. If you are not running a name server
on your local network, it might be a good idea to add the names and addresses
of other hosts to this file so you can reference them by name.
By default, only localhost is listed.
The file /etc/resolv.conf has a list of nameservers.
127.0.0.1 localhost.localdomain localhost
192.168.1.1 router gateway
The line nameserver 127.0.0.1 will not be there unless you are
running a name server like named on the local machine
The others should ne the name servers of your own internet service provider
I'm scatterbrained and can't remember everything.
If you go to the directory /etc/sysconfig/network-scripts, you will find
more files pertaining to your connection. In the file ifcfg-eth0
pay attention to the line that says GATEWAY This will be the
host that connects you to the net. If you connect through a router,
its address will go here. If you connect directly to a cable modem
or dialup, it will be the address of your Internet Service Provider.
Don't copy these values. They are just examples.
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
There is a place in your graphical menus where you can configure your
connection. Mine (fedora) is Applications-->System tools-->Internet configuration Wizard
If the wizard doesn't get it right, go back and look into the config files for problems.
I came in to the world with nothing. I still have most of it.