Jump to content

ethernet hw recognized but can't connect


jordanthompson
 Share

Recommended Posts

I have looked at other threads relating to this issue and have tried their suggestions there, but to no avail :wall:

 

I am trying to configure the on-board NIC with a static IP address. I can ping myself, but not my Linksys router.

 

The Mandrake box is 192.168.1.2

The Router is 192.168.1.1

 

ifconfig returns:

eth0 Link encap:Ethernet HWaddr 00:50:2C:A4:E9:C3 
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::250:2cff:fea4:e9c3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:118 overruns:0 frame:0
TX packets:0 errors:11 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000 
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:11 Base address:0xdc00 

lo Link encap:Local Loopback 
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:181 errors:0 dropped:0 overruns:0 frame:0
TX packets:181 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0 
RX bytes:14350 (14.0 Kb) TX bytes:14350 (14.0 Kb)

 

lsmod returns:

Module Size Used by
nls_iso8859-1 3904 1 
nls_cp850 4736 1 
vfat 13760 1 
fat 45120 1 vfat
parport_pc 32832 1 
lp 12200 0 
parport 38952 2 parport_pc,lp
snd-seq-oss 31232 0 
snd-seq-midi-event 7552 1 snd-seq-oss
snd-seq 51024 4 snd-seq-oss,snd-seq-midi-event
snd-pcm-oss 51812 0 
snd-mixer-oss 17952 2 snd-pcm-oss
snd-via82xx 24128 1 
snd-pcm 93156 2 snd-pcm-oss,snd-via82xx
snd-timer 24484 2 snd-seq,snd-pcm
snd-ac97-codec 58148 1 snd-via82xx
gameport 4480 1 snd-via82xx
snd-page-alloc 11972 2 snd-via82xx,snd-pcm
snd-mpu401-uart 7072 1 snd-via82xx
snd-rawmidi 23616 1 snd-mpu401-uart
snd-seq-device 8008 3 snd-seq-oss,snd-seq,snd-rawmidi
snd 52484 12 snd-seq-oss,snd-seq-midi-event,snd-seq,snd-pcm-oss,snd-mixer-oss,snd-via82xx,snd-pcm,snd-timer,
snd-ac97-codec,snd-mpu401-uart,snd-rawmidi,snd-seq-device
soundcore 9248 2 snd
af_packet 20520 0 
hid 53312 0 
ide-floppy 18752 0 
ide-tape 34864 0 
ide-cd 40548 0 
cdrom 37184 1 ide-cd
floppy 59444 1 
via-rhine 20520 0 
mii 4992 1 via-rhine
md5 3872 1 
ipv6 232352 6 
supermount 37876 1 
via-agp 7360 1 
agpgart 31016 1 via-agp
usblp 12288 0 
ehci-hcd 24196 0 
uhci-hcd 29104 0 
usbcore 99132 6 hid,usblp,ehci-hcd,uhci-hcd
rtc 11576 0 
ext3 111048 12 
jbd 54680 1 ext3

 

resolve.conf contains:

search thompco.com
nameserver 192.168.1.2
nameserver 192.168.1.1

# ppp temp entry

 

route returns:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

 

 

I cannot even ping my router (192.168.1.1.)

 

I have the same computer as a DNS because I want it to provide DNS service for the local machines on my 192.168.1.x network.

 

I am pretty sure that the router provdes DNS (I can't remember right now) - if not, I can add Road Runner's DNS servers.

 

An interesting note, as Mandrake starts/restarts eth0, (and I have configured it to use DHCP) I can see it's MAC address appear in my router's list of clients. After it is up, the MAC address dissapears from the list :wall: This tells me that it is at least recognizing and attempting to use the NIC.

 

[moved from Hardware by spinynorman]

Link to comment
Share on other sites

Could it be that your route shows 192.168.1.0 as your router?  You have it listed in your resolv.conf as 192.168.1.1.  You may want to check that out.  It seems as though everything else is in order, although I'm not a networking guru.

 

My router's IP address is 192.168.1.1. I think the domain(??) mask(??) is 192.168.1.0. Not sure of the terminology here...

Link to comment
Share on other sites

The Mandrake box is 192.168.1.2

The Router is 192.168.1.1

...

Mandrake starts/restarts eth0, (and I have configured it to use DHCP)

 

Maybe I'm so dull my posting priviledges should be revoked, but unless I'm missing something, looks to me like you've given the router a static IP. Yet you say you've configured Mandrake to look for a dynamic one provided by DHCP. If so. trash DHCP (what you need it for?), tell Mandrake to look for the router's static 192.168.1.1 address and things should go...

Link to comment
Share on other sites

Maybe I'm so dull my posting priviledges should be revoked, but unless I'm missing something, looks to me like you've given the router a static IP.  Yet you say you've configured Mandrake to look for a dynamic one provided by DHCP.  If so. trash DHCP (what you need it for?), tell Mandrake to look for the router's static 192.168.1.1 address and things should go...

 

 

LOL - I am sure you don't need your posting privileges revoked!! I am probably not explaining my network properly :P

 

I have assigned 192.168.1.2 (static) to mandrake

The router is assigned 192.168.1.1 (static)

 

I mentioned DHCP as I tried it at one time in my frustration(!) and that is when I saw it appear in my router's MAC list. I really want to use a static address for mandrake. The files and outputs I listed are all (or should be!) with static IP addresses.

 

thanks!

Edited by jordanthompson
Link to comment
Share on other sites

I just ran

iptables -nvL -t nat

and got:

Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination         

Chain POSTROUTING (policy ACCEPT 2 packets, 168 bytes)
pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 2 packets, 168 bytes)
pkts bytes target     prot opt in     out     source               destination        

 

I sure hope this helps!

 

I had a motherboard fail on an old (4 years) version of Mandrake and am trying to get install a new version on a new motherboard. Unfortunately all of my family's data is on the disks and I need to get the system up and running before my kids kill me and mywife leaves me!!! :jester:

 

Thank you all for your help!

Edited by jordanthompson
Link to comment
Share on other sites

eth0 Link encap:Ethernet HWaddr 00:50:2C:A4:E9:C3

inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0

The Mandrake box is 192.168.1.2

The Router is 192.168.1.1

errrm... it looks to me that your eth0 is trying to ping your comp, not the router.... or am i wrong?

Link to comment
Share on other sites

Thanks for your help :thanks:

 

This is a real pain :furious3:

The first thing I tried to do was to ping the computer (192.168.1.2) from itself. That works fine. I then tried pinging the router (192.168.1.1) from the computer and got no reply.

 

I have also tried pinging the computer from a windoze box with no reply.

 

I only have one ethernet adapter (eth0 built into the motherboard) on this machine. I have tried disabling this and installing a known adapter board and got exactly the same results - Mandrake discovered the board correctly, but could only ping itself.

Link to comment
Share on other sites

do you have an inbuilt firewall in the router? if yes, disable it for now. maybe the firewall blocks the signals and it could be that you have to manually open some ports when you put the firewall back into place. but first, try to ping the different machines without any firewalls enabled. if this works, you know that the routers firewall is the troublemaker.

i am far from being an expert at this. just my two cents. i hope i can help nonetheless. :)

Link to comment
Share on other sites

is your router using a web based setup (= login as root and add all relevant data into it?) if yes, there should be a firewall section in your router menu (in case your router is equipped with one. most are anyway;)).

in order to check your firewall on your linux-box, type as root in a console:

iptables -t nat -D PREROUTING -i eth0 -j loc_dnat and give the output. if this doesn't work, also type

iptables -nvL

and

iptables -nvL -t nat

and give the output. maybe we find the mean stuff somewhere in there.

 

good luck.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...