Cannot Network AT ALL On Mandrake 9.1
I am a first-time user of Linux, running Mandrake 9.1 on my PC(dual-booting with Windows). I have outlined my troubles in this thread. Nothing works at all, and I am seriously considering installing a different distro; however, I do not want to waste the money I spent buying the CDs, and I really hope somebody can help me resolve this. Thank you.
|
|
I read the previous thread and I saw what hardware you've got.
I'll see if I can help you... I was curious what ip address you have in Windows. Also what the output of the route command in windows (I thought it was route -rn in 2k - it looks like it's route print in XP) And from the sound of it, you can browse the network in windows without any issue. I'll go back to the previous thread and grab as much info as I can from there and we'll see if we can figure this one out. |
My IP address in Windows is 192.168.1.150(assigned by DHCP).
route -print outputs: Code:
C:\>route print |
Ah, I downloaded it, and apparently, my card and the Davicom 9102 cards use the same driver on Linux. False lead. :(
|
Can anyone else help me? I'm soooo desperate! :(
|
*sighs*
|
Ok, so to recap what's happened so far (sorry for delay in getting back to you - lots of work) you've disabled the firewall successfully. You've used DHCP and set the ip address (hardcoded it) yourself.
The fact that you CAN get an ip address via DHCP sounds like you can communicate with the router. You say you can't ping the router. What about traceroute? Have you tried a packet sniffer and seeing what happens there? Type tcpdump -i <eth-interface> and see what happens. Try to ping the router in another console. Ping that machine from another one on your network. BTW to use tcpdump you need root access. Also try pinging the router forcing the interface. ping <router-ip> -I <eth-interface> Note the difference in the -i and -I for each one. With tcpdump you should be able to see something happening. Let me know what you see. |
Actually, no, "ifconfig eth0" when using DHCP doesn't output any IP address at all.
How would one go about tracing routes(I know it's tracert in Windows)? I don't know of any packet sniffers for Linux. Even when logged in as root using su, I am told tcpdump is an invalid command. I still get destination unreachable when pinging the router in that manner. I haven't tried it under DHCP, though. |
Don't feel alone, John. I've got very similar problems. Dual-booting 98/nix, nix doesn't wanna talk to my XP machine. Everything else works ok. My ifconfig looks just like yours, except my machines are .100 and .101, using a wired Linksys router. HOW-TO's are kinda useless for that setup. If we used a PC as a router, we might have better luck, but I'm not getting rid of my router.
If I find out anything, or get it working....I'll let you know. |
type:
traceroute <ip> tcpdump might not be installed. Install it from the Mandrake CDs. It'll be great help. tcpdump is a packet sniffer. You can also try ethereal or lots of others, but tcpdump is the simplest and it'll be good enough to debug this. What's the ifconfig -a output when you use DHCP? Do you get an error saying that it failed to get the lease? Try pinging it when you have DHCP enabled. You might even try using a different dhcp client since sometimes one works but not another one. pump and dhclient are the two that come to mind. other things we know is that there isn't a hardware problem because it works in windows without changing anything. I must admit it's hard to debug with this type of delay.. trying thing one day later. =) Now lets go back to hardware. Do you see the leds on the back of the card light up when you try to ping? From the picture I can't see if it has more than one led, one to tell you you're connected and another to tell you if there's activity. Can you see if anything flashes while you try to ping? Try relisting the route in linux type "route" or "netstat -rn". I find the entry 169.254.0.0 to be a problem, but it's what it gets when it cannot get an IP address. BTW, try doing ifdown eth0 and then ifup eth0. Also, check the /var/log/messages file for any error messages that it might be spitting out that you don't see. I'll check back later. |
Could you post these files:
/etc/sysconfig/network /etc/sysconfig/network-scripts/ifcfg-eth0 They should probably look something like this: cat /etc/sysconfig/network HOSTNAME=spongebob NETWORKING=yes GATEWAY=192.168.1.1 GATEWAYDEV=eth0 cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=dhcp NETWORK=192.168.1.0 BROADCAST=192.168.1.255 ONBOOT=yes If you change something in those scripts you can test it out by doing this: service network restart |
I'll try to do those things, guys.
The router uses the same LEDs to indicated activity; they are lit when a connection is detected, but isn't active; blank when there is no connection; and flash when there is activity. |
When I do traceroute, it just outputs my static IP(192.168.1.4) three times, since I did that before setting my computer to use DCHP.
The following is the output of tcpdump -i when using a static IP and then pinging the router: Code:
tcpdump -i eth0 Code:
tcpdump -i eth0 The following was route's output after switching to DHCP: Code:
route Code:
netstat -rn Code:
HOSTNAME=John Code:
DEVICE=eth0 |
Since dhcp works in windows why don't you change BOOTPROTO=dhcp and try a service network restart.
What is the hostname in windows? I don't think it matters but possibly the router has been setup to use that hostname. Can you ping localhost? On my router if I set my browser to http://192.168.0.1 I get a login. From there I can configure the router/firewall. Does your router have anything you can do to check the configuration? Try running the below script. It logs everything comming in and going out of your computer. Then try pinging the router and see what shows in the log. CAUTION: This could fill your /var partition quickly if your network is working so flush iptables when you are done using the script. To monitor do this in an xterm: tail -f /var/log/messages Code:
#!/bin/bash Here's the iptables flush script. Code:
#!/bin/sh |
All times are GMT -5. The time now is 12:27 PM. |