|
-
October 4th, 2005, 02:46 PM
#1
Member
connecting internet in redhat 9
Hello mates,
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
#2
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.
Code:
127.0.0.1 localhost.localdomain localhost
192.168.1.1 router gateway
192.168.1.2 coffee
192.168.1.3 genius
192.168.1.4 moron
The file /etc/resolv.conf has a list of nameservers.
Code:
nameserver 127.0.0.1
nameserver 24.51.159.130
nameserver 24.51.159.133
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.
Code:
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
IPV6INIT=no
ONBOOT=yes
USERCTL=no
PEERDNS=yes
GATEWAY=192.168.1.1
TYPE=Ethernet
DEVICE=eth0
BOOTPROTO=none
NETMASK=255.255.255.0
IPADDR=192.168.1.3
HWADDR=00:a0:24:e4:31:79
Don't copy these values. They are just examples.
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.
https://www.redhat.com/docs/manuals/...de/ch-ppp.html
http://www.centos.org/docs/4/html/rh...h-connect.html
I came in to the world with nothing. I still have most of it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|