Odd. Mandrake has always been error-free on installs for me.
When you posted the results of ifconfig, it showed the MAC address for your card, that the card was active and that, really, nothing else had been done to it. No IP address, netmask or broadcast address had been assigned.
As root:
ifconfig eth0 192.168.0.100 netmask 255.255.255.0 up
route add default gw 192.168.0.1
Now, do an ifconfig eth0 again. You should see the IP address (192.168.0.100) assigned, netmask and broadcast (192.168.0.255). These will be on the first or second lines of the output. something like this:
eth0 Link encap:Ethernet HWaddr 00:0C:76:1B:0B:8D
inet addr:192.168.0.104 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4031 errors:0 dropped:0 overruns:0 frame:0
TX packets:4410 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:3031766 (2.8 Mb) TX bytes:686668 (670.5 Kb)
Interrupt:23 Base address:0xb800
Next is the default route.
netstat -rn should show your routing table:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
arp -a shows your arp table. Mine has one entry: the router
? (192.168.0.1) at 00:40:05:BF:C5:1D [ether] on eth0
The destination of 0.0.0.0 is the default route line. If no 0.0.0.0 network appears in the output, re-run the route command:
route add default gw 192.168.0.1
If the default route is there, then something is goofy. In the example above, you can see that it has assigned the 192.168.0 subnet to eth0. Is this the same on your computer? Is eth0 being used. I had a brief problem once where, for some reason, eth0:9 was being used and I have no idea where that came from.
While we are on the subject, does ifconfig -a (show all addresses) show other interfaces? I get eth0 and lo0 (loopback). Are you seeing any others.
Sorry to go on for so long. Just a couple more things to troubleshoot:
- Ping your eth0 card (# ping 192.168.0.100). I’m sure you will get responses, but you have to start somewhere.
- Ping the broadcast address (# ping 192.168.0.255). Again, you should get a response.
- Ping the router (# ping 192.168.0.1). This is where you were failing before.
- If you have another host on the network, ping it.
- Trace the route (# traceroute 192.168.0.1) Is it trying to go somewhere is shouldn’t. It should go directly to your router. Is it trying to go through an intermediate?
From what you described, though, it sounds like a routing issue that should be visible in the output of netstat -rn.
You don’t have two entities using the same IP address do you? That would mess things up.
I’ll stop now.