Linux networking, I can ping ANYTHING with a response, what did i do wrong?

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

WarDemon666

Platinum Member
Nov 28, 2000
2,224
0
0
I got the ethernet card to read. Now i need help setting it up properly. The host ip is 192.168.0.1 If someone can tell me what to type in the konsole, i would really apprechaite it. Right now i tried putting in "ifconfig eth0 192.168.0.2 netmask 255.255.255.0 up" and it worked, but now i can ping any ip, and i get a response. For example, i only have one other computer that is 192.168.0.1 and i try to ping 192.168.0.54 and it would get a response. I don't know why, can someone help me?

Thanks a lot
 

mgpaulus

Golden Member
Dec 19, 2000
1,112
0
0
Ok, from your linux box, do an 'ifconfig eth0', and make sure you have the IP & netmask & gateway you are expecting. Then, from your other machine, try doing a ping of 192.xx.54, so see if maybe something is hokey on your little lan. It sounds like your card is somehow getting confused.

You might check to see if you have modconf available. I know it's available under Debian (One reason I REALLY like debian). Anyway, if you have modconf available, it really simplifies setting up your network card. Make sure you have your card configured the way you need it, and then reboot once to make sure your card and system comes up cleanly (no left over misconfiguring data). Then do your ifconfig eth0, and make sure everything is hokey-dokey.

You should be able to check logs in /var/logs/messages, and/or using the dmesg command. You can also get some handy information from /proc/....
One other thing you might need to look at with ISA cards is the isapnp utility. I'm pretty sure there is a ISAPNP howto on linuxdoc.org, and/or a FAQ for it.
 

WarDemon666

Platinum Member
Nov 28, 2000
2,224
0
0
modconf is not available, but i checked the logs this is what i found:

on the ifup:SIOCSIFADDR:File Exists
and the other is ifup:SIOADDRT: Network is unreachable

What does this mean? How could i fix it?
 

WarDemon666

Platinum Member
Nov 28, 2000
2,224
0
0
it says ip addr 192.168.0.2, they gate way, everythign seems okay.... I tried service network restart, and didnt get no errors either...
 

mgpaulus

Golden Member
Dec 19, 2000
1,112
0
0
Ok, I'm a little confused right now. Can we run through a couple of little steps, just to get me on the same page??

Can you ping 127.0.0.1?

Can you ping 192.168.0.2?

Can you ping 192.168.0.1?

From 192.168.0.1, can you ping 192.168.0.2??
 

WarDemon666

Platinum Member
Nov 28, 2000
2,224
0
0
From 192.168.0.2 i can ping:

127.0.0.1
anything from 192.168.0.1-255

from 192.168.0.1 I cannot ping 192.168.0.2
 

mgpaulus

Golden Member
Dec 19, 2000
1,112
0
0
Is the cable plugged into the network card on x.x.x.2?

What can you ping if you unplug the cable?

I'm wondering if you are getting some kind of wierd reflection down the cable. Doesn't seem
likely, but just trying to rule out all wierdnesses........
 

WarDemon666

Platinum Member
Nov 28, 2000
2,224
0
0
The network cable is plugged on both ends, and if i unplug it i can still ping any ip.

Any ideas?
 

mgpaulus

Golden Member
Dec 19, 2000
1,112
0
0
Could you dump to us the EXACT and COMPLETE output from 'ifconfig -a'? I don't know that I've ever heard of something this wierd....... Some configuration option is
whacked, but which one????

(I know, probably a lot of typing, but sometimes seeing the whole thing can trigger an extra brain cell to fire...... I usually only fire 5 cells, and getting that 6th and last cell to fire can be a bit of a challenge at times)....