LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   can't ping (https://www.linuxquestions.org/questions/linux-networking-3/cant-ping-87095/)

masterkiwi 08-29-2003 04:54 PM

can't ping
 
OK this has probably been posted somewhere before if so I would be gratefull if I could be pointed to the solution.

Hi, I have just installed Linux Mandrake 9.1 on my system, duel booting with XP.

I have the linux machine set up as 192.168.0.2

winxp1 as 192.168.0.1
winxp2 as 192.168.0.3

The winxp1 has the internet connection... however for now that is irrelevent.

The two xp machines can ping each other, and if I boot into XP on this machine all three machines can see each other.

However when in linux the other machines can't ping me, and I can not ping the other machines. I can ping myself. (me, myself and I being the lineage box).

I have the ViA Rhine II built into the AT7-MAX2 motherboard, and it appears to have correctly been detected in linux.

Any ideas how to make this work? There is nothing hardware related as I said it works with XP on the same machine.

Thankyou.
Calvin

p.s. I am new to linux, so be easy on me :study: ;)

quest4knowledge 08-29-2003 05:34 PM

use these commands:

# ifconfig eth0
# route -n

to check these values:

IP, netmask, broadcast addresses and if the device is UP or not.
In the route -n command check and make sure the correct gateway is listed.

If all of these are correct it should work. Unless you have a firewall enabled then you will want to check:

# iptables -L

to make sure you are allowing the connection.

masterkiwi 08-30-2003 12:33 PM

ok checked these and realised I couldnt transfer them to cut and paste hehe... so heres a narrowed down result:

#ifconfig eth0

inet: 192.168.0.2 BCast 192.168.0.255 Mask 255.255.255.0

MTU 1500 Metric 1

RX dropped 6?

TX no errors

queuelan 100?

Interupt 16 Base Address 0xc000

#route -n

Destination, Gateway, Genmask, Flag

192.168.0.0, 0.0.0.0, 255.255.255.0, U
127.0.0.1, 0.0.0.0, 255.0.0.0, U
0.0.0.0, 192.168.0.1, 0.0.0.0, UG

#iptables -F

There were no entries after INPUT, FORWARD, OUTPUT.

Hope this sheds some light.

TY Calvin... p.s. there is no firewall on any machine unless one is set up on the mandrake which I am unaware of.

Thankyou.

Mathieu 08-30-2003 02:56 PM

iptables -F will not set the default policies of the chains to ACCEPT.

Type: service iptables stop
Or: iptables -P INPUT ACCEPT

masterkiwi 08-30-2003 03:05 PM

they are all set to accept... still doesnt work... :scratch:

iainr 08-31-2003 02:29 AM

Hi masterkiwi,

No idea if this is the problem, but you could try deleting the last entry in the routing table.

Something like
# route del 192.168.0.1
Just to try tidying things up.

It might be useful if you can show us the contents of the file /etc/sysconfig/network-scripts/ifcfg-eth0.

Also in ifconfig eth0, check that the word UP appears in the output.

Last, can you say what output you get when you try to ping. Does it just hang or do you get something like "Destination network unreachable"?

Iain.


All times are GMT -5. The time now is 08:25 PM.