Help File Library: RealTek NIC Installation
Written By: Skamm
* you are using Red Hat Linux 6.0 or equivilant
* your Realtek nick is like mine and uses the rtl8139 driver.
Steps:
-AS ROOT: Install module with
insmod rtl8139
-List the modules that are installed with lsmod
if you didn't get any errors during the module install and
it was listed, then the module should work.
-in a Xterminal: run
netcfg
You will need to edit the names
and interfaces tabs.
You will be editing the eth0 information. Use the
settings that you received from your ISP the same ones
that you use in NT.
* If your NT connection "obtains IP information automatically",
then you will want to use DHCP for your "interface configuration
protocol"
* Click "save"
* Click "activate interface" in the interfaces
tab. while you have eth0 highlighted.
* Test the interface. Open up an xterm, and ping something
that you know. (be sure to ping both by IP and by hostname)
ping www.justlinux.com
PING linuxnewbie.org (199.78.176.193): 56 data bytes
64 bytes from 199.78.176.193: icmp_seq=0 ttl=240 time=147.0 ms
64 bytes from 199.78.176.193: icmp_seq=1 ttl=240 time=56.3 ms
ping 199.78.176.193
PING 199.78.176.193 (199.78.176.193): 56 data bytes
64 bytes from 199.78.176.193: icmp_seq=0 ttl=240 time=64.6 ms
64 bytes from 199.78.176.193: icmp_seq=1 ttl=240 time=60.7 ms
If you get responses from both IP and hostname, than you are
all set up.
If you get
network is unreachable, you might need to
add a default route. (See adding route below.)
if you get a response from the IP but not from the hostname,
then you need to check your DNS settings inthe
names[b]
tab in netcfg.
* Last thing that you should have to do, is tell your
machine which module to use when it tries to start eth0.
You will do that by adding the folowing line to your [b]/etc/conf.modules
file.
alias eth0 rtl8139
Adding routes
- If your machine doesn't know wich interface to get to
the network from, you will get a "Network is unreachable"
error. The following command will tell your machine to send
all internet bound packets out through your eth0 interface.
route add default eth0
That should do it.
Now, if you want other machines on this network to be able
to see the internet through the machine that we just set
up, you will need to look at the ip-masquarading NHF.