Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I am running Redhat Linux 7.2 (Seawolf)
with kernel 2.4.2-2.When I try to install the drivers as for SMC USB to Ethernet 2208 as per the vendors instruction following thing takes place.
step 1: compile:gcc -DMODULE -D__KERNEL__ -c rtl8150.c -I/usr/src/linux-2.4.2/include/creates rtl8150.o. without any errors.
step 2: insert the driver as module:
nsmod rtl8150.o
inserts the modulesif I do lsmod it shows me
Module Size Used Byrtl8150 13648 1
everything is ok till this point....step 3: bind your card to an IP address:
/sbin/ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
It gives me the following error.broadcast: Host name lookup failure...
now if I do the ifconfig it shows me
eth0 Link encap:Ethernet HWaddr 00:xx:xx:xx:xx:xx (Erasing it for Security reasons)
inet addr:12.247.251.4 Bcast:255.255.255.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:319 errors:0 dropped:0 overruns:0 frame:0 TX packets:183 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:171 errors:0 dropped:0 overruns:0 frame:0 TX packets:171 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
The IP address shown is actually assigned by the DHCP server of the ISP(I veryfied it on windows).but when I try to ping the default gateway it gives me an error saying12.247.251.4 Destination host unreachable...
Although I am getting the DNS servers & IP address assignments from the DHCP server...?????
So where the problem lies??? Any Hints????Any help will be appericiated..Thanks very much..
Jigan Shah...

In the ifconfig line, you're supposed to insert the correct values for ip, netmask and broadcast address. For example:
ifconfig eth0 1.2.3.4 netmask 255.255.255.0 broadcast 1.2.3.255
But as you've got dhcp up and running, you probably don't need that. Btw, for best operation, the dhcp client should be started _after_ the eth interface has been brought up (i.e. after the module has been loaded). So you may try simply restart your dhcp client and see if that fixes the remaining issues.
The next things to do after that is to set up your routes. Type "route -n" to list them all. If you don't have a route for the local eth interface (in my example a route to 1.2.3.0), you must add it:
route add -net 1.2.3.0 netmask 255.255.255.0 dev eth0
As for the default route, it may be added by the dhcp client, but if it isn't you can manually add it, for example:
route add -net 0.0.0.0 netmask 0.0.0.0 gw 4.5.6.7
As last step, you should probably set up your dns resolver: edit /etc/resolv.conf and put your dns server ip(s) in.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |