Networking Forums

Networking Forums > Computer Networking > Linux Networking > Why can't I ping outside the Linux box?

Reply
Thread Tools Display Modes

Why can't I ping outside the Linux box?

 
 
JSM
Guest
Posts: n/a

 
      06-26-2004, 02:41 AM
Hi,

I've finally given up. I have just installed SuSe 9.0 server on a system
which dual boots with Windows XP Pro. I have second PC which runs only XP.
When I boot the dual boot system into Windows I can ping the other XP
machine without a problem however when I boot into Linux I can't ping
anything.

The IP address of the XP pc is 192.168.0.1 / 255.255.255.0.

I have configured the Linux pc using YaST. I have assigned an IP address of
192.168.0.2 / 255.255.255.0 to my ethernet card and left everything else as
default. When I try to ping 192.168.0.1 I get "Destination Host is
unreachable". I can see the Linux box attempting to ping on the switch so at
least I know it is looking.

Each PC can ping themselves but not each other so I know networking is up
and running. The results of running ifconfig and route are as follows.


eth0 Link encap:Ethernet HWaddr 00:80:C8:F7:36:BC

inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0

inet6 addr: fe80::280:c8ff:fef7:36bc/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:0 errors:1 dropped:0 overruns:0 frame:0

TX packets:4 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:100

RX bytes:0 (0.0 b) TX bytes:288 (288.0 b)

Interrupt:10 Base address:0xd800



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:50 errors:0 dropped:0 overruns:0 frame:0

TX packets:50 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:3260 (3.1 Kb) TX bytes:3260 (3.1 Kb)





Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use
Iface

192.168.0.0 * 255.255.255.0 U 0 0 0 eth0





The frustrating thing about this is when I first set up the Linux box the
networking was running. I switched off the PC overnight then in the morning
it wasn't working. I have configured the firewall on the XP box to allow the
Linux box's IP - I have even turned the firewall off without success. What I
really want to do at the end of the day is share the internet connection on
the XP box - I could do this initially - but at the moment I just want to
get the two talking to each other, Can anyone help me with this? I thought
it would have been very simple to set this up but I was obviously wrong.

Cheers,

John


 
Reply With Quote
 
 
 
 
repo
Guest
Posts: n/a

 
      06-26-2004, 05:20 AM
On Sat, 26 Jun 2004 12:41:12 +1000, JSM wrote:

> Hi,
>
> I've finally given up. I have just installed SuSe 9.0 server on a system
> which dual boots with Windows XP Pro. I have second PC which runs only XP.
> When I boot the dual boot system into Windows I can ping the other XP
> machine without a problem however when I boot into Linux I can't ping
> anything.
>
> The IP address of the XP pc is 192.168.0.1 / 255.255.255.0.
>
> I have configured the Linux pc using YaST. I have assigned an IP address of
> 192.168.0.2 / 255.255.255.0 to my ethernet card and left everything else as
> default. When I try to ping 192.168.0.1 I get "Destination Host is
> unreachable". I can see the Linux box attempting to ping on the switch so at
> least I know it is looking.
>
> Each PC can ping themselves but not each other so I know networking is up
> and running. The results of running ifconfig and route are as follows.
>
>
> eth0 Link encap:Ethernet HWaddr 00:80:C8:F7:36:BC
>
> inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
>
> inet6 addr: fe80::280:c8ff:fef7:36bc/64 Scope:Link
>
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
> RX packets:0 errors:1 dropped:0 overruns:0 frame:0
>
> TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
>
> collisions:0 txqueuelen:100
>
> RX bytes:0 (0.0 b) TX bytes:288 (288.0 b)
>
> Interrupt:10 Base address:0xd800
>
>
>
> 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:50 errors:0 dropped:0 overruns:0 frame:0
>
> TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
>
> collisions:0 txqueuelen:0
>
> RX bytes:3260 (3.1 Kb) TX bytes:3260 (3.1 Kb)
>
>
>
>
>
> Kernel IP routing table
>
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
>
> 192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
>
>
>
>
>
> The frustrating thing about this is when I first set up the Linux box the
> networking was running. I switched off the PC overnight then in the morning
> it wasn't working. I have configured the firewall on the XP box to allow the
> Linux box's IP - I have even turned the firewall off without success. What I
> really want to do at the end of the day is share the internet connection on
> the XP box - I could do this initially - but at the moment I just want to
> get the two talking to each other, Can anyone help me with this? I thought
> it would have been very simple to set this up but I was obviously wrong.
>
> Cheers,
>
> John


What is your default GW ?
route add default gw 192.168.0.1
--
Chaos, panic & disorder - my work here is done

http://beginnerslinux.org
http://repo.mine.nu

 
Reply With Quote
 
JSM
Guest
Posts: n/a

 
      06-26-2004, 10:03 AM
Thanks for your reply however still no luck. Is there anything special I
need to set on the XP box?


"repo" <(E-Mail Removed)> wrote in message
newsan.2004.06.26.05.20.23.786756@beginnerslinux .DOT.org...
> On Sat, 26 Jun 2004 12:41:12 +1000, JSM wrote:
>
> > Hi,
> >
> > I've finally given up. I have just installed SuSe 9.0 server on a system
> > which dual boots with Windows XP Pro. I have second PC which runs only

XP.
> > When I boot the dual boot system into Windows I can ping the other XP
> > machine without a problem however when I boot into Linux I can't ping
> > anything.
> >
> > The IP address of the XP pc is 192.168.0.1 / 255.255.255.0.
> >
> > I have configured the Linux pc using YaST. I have assigned an IP

address of
> > 192.168.0.2 / 255.255.255.0 to my ethernet card and left everything else

as
> > default. When I try to ping 192.168.0.1 I get "Destination Host is
> > unreachable". I can see the Linux box attempting to ping on the switch

so at
> > least I know it is looking.
> >
> > Each PC can ping themselves but not each other so I know networking is

up
> > and running. The results of running ifconfig and route are as follows.
> >
> >
> > eth0 Link encap:Ethernet HWaddr 00:80:C8:F7:36:BC
> >
> > inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
> >
> > inet6 addr: fe80::280:c8ff:fef7:36bc/64 Scope:Link
> >
> > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> >
> > RX packets:0 errors:1 dropped:0 overruns:0 frame:0
> >
> > TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
> >
> > collisions:0 txqueuelen:100
> >
> > RX bytes:0 (0.0 b) TX bytes:288 (288.0 b)
> >
> > Interrupt:10 Base address:0xd800
> >
> >
> >
> > 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:50 errors:0 dropped:0 overruns:0 frame:0
> >
> > TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
> >
> > collisions:0 txqueuelen:0
> >
> > RX bytes:3260 (3.1 Kb) TX bytes:3260 (3.1 Kb)
> >
> >
> >
> >
> >
> > Kernel IP routing table
> >
> > Destination Gateway Genmask Flags Metric Ref Use
> > Iface
> >
> > 192.168.0.0 * 255.255.255.0 U 0 0 0

eth0
> >
> >
> >
> >
> >
> > The frustrating thing about this is when I first set up the Linux box

the
> > networking was running. I switched off the PC overnight then in the

morning
> > it wasn't working. I have configured the firewall on the XP box to allow

the
> > Linux box's IP - I have even turned the firewall off without success.

What I
> > really want to do at the end of the day is share the internet connection

on
> > the XP box - I could do this initially - but at the moment I just want

to
> > get the two talking to each other, Can anyone help me with this? I

thought
> > it would have been very simple to set this up but I was obviously wrong.
> >
> > Cheers,
> >
> > John

>
> What is your default GW ?
> route add default gw 192.168.0.1
> --
> Chaos, panic & disorder - my work here is done
>
> http://beginnerslinux.org
> http://repo.mine.nu
>



 
Reply With Quote
 
Bill Unruh
Guest
Posts: n/a

 
      06-26-2004, 05:10 PM
repo <(E-Mail Removed)> writes:

]On Sat, 26 Jun 2004 12:41:12 +1000, JSM wrote:

]> Hi,
]>
]> I've finally given up. I have just installed SuSe 9.0 server on a system
]> which dual boots with Windows XP Pro. I have second PC which runs only XP.
]> When I boot the dual boot system into Windows I can ping the other XP
]> machine without a problem however when I boot into Linux I can't ping
]> anything.
]>
]> The IP address of the XP pc is 192.168.0.1 / 255.255.255.0.

What does your routing table say?
route -n

The routing table determines where packets are sent. The computer looks
through the routing table for the most specific entry (most number of bits
in the netmask) whcih matches the addresses and uses that route.

You should have something like
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Or
192.168.0.1 0.0.0.0 255.255.255.255 H 0 0 0 eth0
assuming your win computer has an ip of 192.168.0.2


]>
]> I have configured the Linux pc using YaST. I have assigned an IP address of
]> 192.168.0.2 / 255.255.255.0 to my ethernet card and left everything else as
]> default. When I try to ping 192.168.0.1 I get "Destination Host is
]> unreachable". I can see the Linux box attempting to ping on the switch so at
]> least I know it is looking.

That is a bad routing table (or a bad firewall)

]>
]> Each PC can ping themselves but not each other so I know networking is up
]> and running. The results of running ifconfig and route are as follows.

They do not ping themselves through the network.

I thought you said the XP could ping the Linux? If neither can, the cable
may be bad. (is it a straightthrough connection-- a wire directly from
computer to computer? If so you MUST use a null ethernet cable - pins 1 3
reversed and 2 6 reversed)

]>
]>
]> eth0 Link encap:Ethernet HWaddr 00:80:C8:F7:36:BC
]>
]> inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
]>
]> inet6 addr: fe80::280:c8ff:fef7:36bc/64 Scope:Link
]>
]> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
]>
]> RX packets:0 errors:1 dropped:0 overruns:0 frame:0
]>
]> TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
]>
]> collisions:0 txqueuelen:100
]>
]> RX bytes:0 (0.0 b) TX bytes:288 (288.0 b)
]>
]> Interrupt:10 Base address:0xd800
]>
]>
]>
]> 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:50 errors:0 dropped:0 overruns:0 frame:0
]>
]> TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
]>
]> collisions:0 txqueuelen:0
]>
]> RX bytes:3260 (3.1 Kb) TX bytes:3260 (3.1 Kb)
]>
]>
]>
]>
]>
]> Kernel IP routing table
]>
]> Destination Gateway Genmask Flags Metric Ref Use
]> Iface
]>
]> 192.168.0.0 * 255.255.255.0 U 0 0 0 eth0

OK that looks OK.

I suspect cable or network card.

]>
]>
]>
]>
]>
]> The frustrating thing about this is when I first set up the Linux box the
]> networking was running. I switched off the PC overnight then in the morning
]> it wasn't working. I have configured the firewall on the XP box to allow the
]> Linux box's IP - I have even turned the firewall off without success. What I
]> really want to do at the end of the day is share the internet connection on
]> the XP box - I could do this initially - but at the moment I just want to
]> get the two talking to each other, Can anyone help me with this? I thought
]> it would have been very simple to set this up but I was obviously wrong.

It is. There is some other problem. maybe bad cable, maybe the ethernet
card got fried.


]>
]> Cheers,
]>
]> John

]What is your default GW ?
]route add default gw 192.168.0.1

He does not need one. the other machine is on the same subnet as he is.

 
Reply With Quote
 
Juhan Leemet
Guest
Posts: n/a

 
      06-26-2004, 07:52 PM
On Sat, 26 Jun 2004 20:03:46 +1000, JSM wrote:
> Thanks for your reply however still no luck. Is there anything special I
> need to set on the XP box?


Dunno about XP. Personally, I would put up some kind of IP traffic
analyzer/monitor on the Linux side. It puts the ethernet interface into
"promiscuous mode" where it accepts every packet, so the tool can report
on it. I've used ethereal. Others have mentioned ntop. The netstat program
can also give (bewildering?) info and stats on your network connection.

Then try pinging from XP->Linux and see if anything is happening? The
monitoring program(s) in Linux should report packets going by, and list IP
addresses and/or headers, or whatever.

Are you sure you're getting to the hub/switch? You haven't connected one
of the computers into a hub upload (null-modem like ethernet) port? Both
computers should be plugged into "normal" ports on the hub/switch.

Oh, yeah, do you see eth0 in the display from /sbin/ifconfig? If you only
see lo (the local loopback interface) then you're not connected to the LAN.

BTW, gateway does not matter for pinging LAN hosts. It becomes important
if you're trying to go outside your own LAN to get to other networks (e.g.
the internet). It tells which gateway connects the networks together.


> "repo" <(E-Mail Removed)> wrote in message
> newsan.2004.06.26.05.20.23.786756@beginnerslinux .DOT.org...
>> On Sat, 26 Jun 2004 12:41:12 +1000, JSM wrote:
>> > I've finally given up. I have just installed SuSe 9.0 server...


Don't give up! It's just starting to get interesting?!?

>> What is your default GW ?
>> route add default gw 192.168.0.1


Doesn't matter for your own LAN pings.

--
Juhan Leemet
Logicognosis, Inc.

 
Reply With Quote
 
Don Taylor
Guest
Posts: n/a

 
      06-26-2004, 08:42 PM
"JSM" <(E-Mail Removed)> writes:
>Thanks for your reply however still no luck. Is there anything special I
>need to set on the XP box?


>"repo" <(E-Mail Removed)> wrote in message
>newsan.2004.06.26.05.20.23.786756@beginnerslinu x.DOT.org...
>> On Sat, 26 Jun 2004 12:41:12 +1000, JSM wrote:
>> > I've finally given up. I have just installed SuSe 9.0 server on a system
>> > which dual boots with Windows XP Pro. I have second PC which runs only XP.
>> > When I boot the dual boot system into Windows I can ping the other XP
>> > machine without a problem however when I boot into Linux I can't ping
>> > anything.


You can try running ethereal on the linux box to log all the packets.
That might give you some helpful information. There is an XP version
that could watch from the other end to see what it thinks is happening.

You can try ping -n xx.xx.xx.xx to skip any name lookup and thus tell
if perhaps it is the name resolution that is hanging things up.

And, throw me an email, address is valid, maybe we can find something.
thanks
 
Reply With Quote
 
JSM
Guest
Posts: n/a

 
      06-27-2004, 04:25 AM
Thanks for your reply.

I know the network card / cable is fine because when I boot the Linux box
into XP (it is set up for dual boot) the two XP machines talk to each other
fine, it's only when I boot Linux on the dual boot system that the PCs can't
see each other.. When I am in Linux I keep an eye on the lights on the
switch to see what's happening and I can see activity on the Linux
connection, the only problem is it doesn't reach the XP box so I think it's
safe to say that the problem is with the configuration on Linux (or XP).
I've turned off the firewall on both systems so it can't be that. Any other
places to look?

Cheers,
John



"Bill Unruh" <(E-Mail Removed)> wrote in message
news:cbkamu$o7a$(E-Mail Removed)...
> repo <(E-Mail Removed)> writes:
>
> ]On Sat, 26 Jun 2004 12:41:12 +1000, JSM wrote:
>
> ]> Hi,
> ]>
> ]> I've finally given up. I have just installed SuSe 9.0 server on a

system
> ]> which dual boots with Windows XP Pro. I have second PC which runs only

XP.
> ]> When I boot the dual boot system into Windows I can ping the other XP
> ]> machine without a problem however when I boot into Linux I can't ping
> ]> anything.
> ]>
> ]> The IP address of the XP pc is 192.168.0.1 / 255.255.255.0.
>
> What does your routing table say?
> route -n
>
> The routing table determines where packets are sent. The computer looks
> through the routing table for the most specific entry (most number of bits
> in the netmask) whcih matches the addresses and uses that route.
>
> You should have something like
> 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> Or
> 192.168.0.1 0.0.0.0 255.255.255.255 H 0 0 0 eth0
> assuming your win computer has an ip of 192.168.0.2
>
>
> ]>
> ]> I have configured the Linux pc using YaST. I have assigned an IP

address of
> ]> 192.168.0.2 / 255.255.255.0 to my ethernet card and left everything

else as
> ]> default. When I try to ping 192.168.0.1 I get "Destination Host is
> ]> unreachable". I can see the Linux box attempting to ping on the switch

so at
> ]> least I know it is looking.
>
> That is a bad routing table (or a bad firewall)
>
> ]>
> ]> Each PC can ping themselves but not each other so I know networking is

up
> ]> and running. The results of running ifconfig and route are as follows.
>
> They do not ping themselves through the network.
>
> I thought you said the XP could ping the Linux? If neither can, the cable
> may be bad. (is it a straightthrough connection-- a wire directly from
> computer to computer? If so you MUST use a null ethernet cable - pins 1 3
> reversed and 2 6 reversed)
>
> ]>
> ]>
> ]> eth0 Link encap:Ethernet HWaddr 00:80:C8:F7:36:BC
> ]>
> ]> inet addr:192.168.0.2 Bcast:192.168.0.255

Mask:255.255.255.0
> ]>
> ]> inet6 addr: fe80::280:c8ff:fef7:36bc/64 Scope:Link
> ]>
> ]> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> ]>
> ]> RX packets:0 errors:1 dropped:0 overruns:0 frame:0
> ]>
> ]> TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
> ]>
> ]> collisions:0 txqueuelen:100
> ]>
> ]> RX bytes:0 (0.0 b) TX bytes:288 (288.0 b)
> ]>
> ]> Interrupt:10 Base address:0xd800
> ]>
> ]>
> ]>
> ]> 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:50 errors:0 dropped:0 overruns:0 frame:0
> ]>
> ]> TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
> ]>
> ]> collisions:0 txqueuelen:0
> ]>
> ]> RX bytes:3260 (3.1 Kb) TX bytes:3260 (3.1 Kb)
> ]>
> ]>
> ]>
> ]>
> ]>
> ]> Kernel IP routing table
> ]>
> ]> Destination Gateway Genmask Flags Metric Ref Use
> ]> Iface
> ]>
> ]> 192.168.0.0 * 255.255.255.0 U 0 0 0

eth0
>
> OK that looks OK.
>
> I suspect cable or network card.
>
> ]>
> ]>
> ]>
> ]>
> ]>
> ]> The frustrating thing about this is when I first set up the Linux box

the
> ]> networking was running. I switched off the PC overnight then in the

morning
> ]> it wasn't working. I have configured the firewall on the XP box to

allow the
> ]> Linux box's IP - I have even turned the firewall off without success.

What I
> ]> really want to do at the end of the day is share the internet

connection on
> ]> the XP box - I could do this initially - but at the moment I just want

to
> ]> get the two talking to each other, Can anyone help me with this? I

thought
> ]> it would have been very simple to set this up but I was obviously

wrong.
>
> It is. There is some other problem. maybe bad cable, maybe the ethernet
> card got fried.
>
>
> ]>
> ]> Cheers,
> ]>
> ]> John
>
> ]What is your default GW ?
> ]route add default gw 192.168.0.1
>
> He does not need one. the other machine is on the same subnet as he is.
>



 
Reply With Quote
 
Jerry Smiley
Guest
Posts: n/a

 
      06-27-2004, 11:11 AM
John...
Try running on the Linux box an utility called 'tcpdump'. It will allow you
to see tcp packets that are being sent and received to the Nic card. The
ping packets will be identified as icmp packets. You see your Linux box
sending 'icmp: echo request' amd receive from the xp box an 'icmp: echo
reply'...




JSM wrote:

> Thanks for your reply.
>
> I know the network card / cable is fine because when I boot the Linux box
> into XP (it is set up for dual boot) the two XP machines talk to each
> other fine, it's only when I boot Linux on the dual boot system that the
> PCs can't see each other.. When I am in Linux I keep an eye on the lights
> on the switch to see what's happening and I can see activity on the Linux
> connection, the only problem is it doesn't reach the XP box so I think
> it's safe to say that the problem is with the configuration on Linux (or
> XP). I've turned off the firewall on both systems so it can't be that. Any
> other places to look?
>
> Cheers,
> John
>
>
>
> "Bill Unruh" <(E-Mail Removed)> wrote in message
> news:cbkamu$o7a$(E-Mail Removed)...
>> repo <(E-Mail Removed)> writes:
>>
>> ]On Sat, 26 Jun 2004 12:41:12 +1000, JSM wrote:
>>
>> ]> Hi,
>> ]>
>> ]> I've finally given up. I have just installed SuSe 9.0 server on a

> system
>> ]> which dual boots with Windows XP Pro. I have second PC which runs only

> XP.
>> ]> When I boot the dual boot system into Windows I can ping the other XP
>> ]> machine without a problem however when I boot into Linux I can't ping
>> ]> anything.
>> ]>
>> ]> The IP address of the XP pc is 192.168.0.1 / 255.255.255.0.
>>
>> What does your routing table say?
>> route -n
>>
>> The routing table determines where packets are sent. The computer looks
>> through the routing table for the most specific entry (most number of
>> bits in the netmask) whcih matches the addresses and uses that route.
>>
>> You should have something like
>> 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
>> Or
>> 192.168.0.1 0.0.0.0 255.255.255.255 H 0 0 0 eth0
>> assuming your win computer has an ip of 192.168.0.2
>>
>>
>> ]>
>> ]> I have configured the Linux pc using YaST. I have assigned an IP

> address of
>> ]> 192.168.0.2 / 255.255.255.0 to my ethernet card and left everything

> else as
>> ]> default. When I try to ping 192.168.0.1 I get "Destination Host is
>> ]> unreachable". I can see the Linux box attempting to ping on the switch

> so at
>> ]> least I know it is looking.
>>
>> That is a bad routing table (or a bad firewall)
>>
>> ]>
>> ]> Each PC can ping themselves but not each other so I know networking is

> up
>> ]> and running. The results of running ifconfig and route are as follows.
>>
>> They do not ping themselves through the network.
>>
>> I thought you said the XP could ping the Linux? If neither can, the cable
>> may be bad. (is it a straightthrough connection-- a wire directly from
>> computer to computer? If so you MUST use a null ethernet cable - pins 1 3
>> reversed and 2 6 reversed)
>>
>> ]>
>> ]>
>> ]> eth0 Link encap:Ethernet HWaddr 00:80:C8:F7:36:BC
>> ]>
>> ]> inet addr:192.168.0.2 Bcast:192.168.0.255

> Mask:255.255.255.0
>> ]>
>> ]> inet6 addr: fe80::280:c8ff:fef7:36bc/64 Scope:Link
>> ]>
>> ]> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>> ]>
>> ]> RX packets:0 errors:1 dropped:0 overruns:0 frame:0
>> ]>
>> ]> TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
>> ]>
>> ]> collisions:0 txqueuelen:100
>> ]>
>> ]> RX bytes:0 (0.0 b) TX bytes:288 (288.0 b)
>> ]>
>> ]> Interrupt:10 Base address:0xd800
>> ]>
>> ]>
>> ]>
>> ]> 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:50 errors:0 dropped:0 overruns:0 frame:0
>> ]>
>> ]> TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
>> ]>
>> ]> collisions:0 txqueuelen:0
>> ]>
>> ]> RX bytes:3260 (3.1 Kb) TX bytes:3260 (3.1 Kb)
>> ]>
>> ]>
>> ]>
>> ]>
>> ]>
>> ]> Kernel IP routing table
>> ]>
>> ]> Destination Gateway Genmask Flags Metric Ref
>> Use ]> Iface
>> ]>
>> ]> 192.168.0.0 * 255.255.255.0 U 0 0
>> 0

> eth0
>>
>> OK that looks OK.
>>
>> I suspect cable or network card.
>>
>> ]>
>> ]>
>> ]>
>> ]>
>> ]>
>> ]> The frustrating thing about this is when I first set up the Linux box

> the
>> ]> networking was running. I switched off the PC overnight then in the

> morning
>> ]> it wasn't working. I have configured the firewall on the XP box to

> allow the
>> ]> Linux box's IP - I have even turned the firewall off without success.

> What I
>> ]> really want to do at the end of the day is share the internet

> connection on
>> ]> the XP box - I could do this initially - but at the moment I just want

> to
>> ]> get the two talking to each other, Can anyone help me with this? I

> thought
>> ]> it would have been very simple to set this up but I was obviously

> wrong.
>>
>> It is. There is some other problem. maybe bad cable, maybe the ethernet
>> card got fried.
>>
>>
>> ]>
>> ]> Cheers,
>> ]>
>> ]> John
>>
>> ]What is your default GW ?
>> ]route add default gw 192.168.0.1
>>
>> He does not need one. the other machine is on the same subnet as he is.
>>


 
Reply With Quote
 
Timothy Murphy
Guest
Posts: n/a

 
      06-27-2004, 11:19 AM
JSM wrote:

> I know the network card / cable is fine because when I boot the Linux box
> into XP (it is set up for dual boot) the two XP machines talk to each
> other fine, it's only when I boot Linux on the dual boot system that the
> PCs can't see each other.. When I am in Linux I keep an eye on the lights
> on the switch to see what's happening and I can see activity on the Linux
> connection, the only problem is it doesn't reach the XP box so I think
> it's safe to say that the problem is with the configuration on Linux (or
> XP). I've turned off the firewall on both systems so it can't be that. Any
> other places to look?


(1) Are you sure you give the same IP addresses to the boxes
under Linux and XP?

(2) Can you ping your Linux box from the other box?

(3) Try running "tcpdump -i eth0" on your Linux box
while you ping (hopefully in each direction).

(4) What does your /etc/sysconfig/network-scripts/ifcfg-eth0 look like?
It might be worth adding a "GATEWAY=192.168..." to this file.

Ps I'm no networking guru!


--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
 
Reply With Quote
 
Max
Guest
Posts: n/a

 
      06-27-2004, 02:26 PM
"JSM" <(E-Mail Removed)> wrote in message news:<S%rDc.16100$%(E-Mail Removed)>. ..
> Thanks for your reply.
>
> I know the network card / cable is fine because when I boot the Linux box
> into XP (it is set up for dual boot) the two XP machines talk to each other
> fine, it's only when I boot Linux on the dual boot system that the PCs can't
> see each other.. When I am in Linux I keep an eye on the lights on the
> switch to see what's happening and I can see activity on the Linux
> connection, the only problem is it doesn't reach the XP box so I think it's
> safe to say that the problem is with the configuration on Linux (or XP).
> I've turned off the firewall on both systems so it can't be that. Any other
> places to look?
>
> Cheers,
> John
>
>
>
> "Bill Unruh" <(E-Mail Removed)> wrote in message
> news:cbkamu$o7a$(E-Mail Removed)...
> > repo <(E-Mail Removed)> writes:
> >
> > ]On Sat, 26 Jun 2004 12:41:12 +1000, JSM wrote:
> >
> > ]> Hi,
> > ]>
> > ]> I've finally given up. I have just installed SuSe 9.0 server on a

> system
> > ]> which dual boots with Windows XP Pro. I have second PC which runs only

> XP.
> > ]> When I boot the dual boot system into Windows I can ping the other XP
> > ]> machine without a problem however when I boot into Linux I can't ping
> > ]> anything.
> > ]>
> > ]> The IP address of the XP pc is 192.168.0.1 / 255.255.255.0.
> >
> > What does your routing table say?
> > route -n
> >
> > The routing table determines where packets are sent. The computer looks
> > through the routing table for the most specific entry (most number of bits
> > in the netmask) whcih matches the addresses and uses that route.
> >
> > You should have something like
> > 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> > Or
> > 192.168.0.1 0.0.0.0 255.255.255.255 H 0 0 0 eth0
> > assuming your win computer has an ip of 192.168.0.2
> >
> >
> > ]>
> > ]> I have configured the Linux pc using YaST. I have assigned an IP

> address of
> > ]> 192.168.0.2 / 255.255.255.0 to my ethernet card and left everything

> else as
> > ]> default. When I try to ping 192.168.0.1 I get "Destination Host is
> > ]> unreachable". I can see the Linux box attempting to ping on the switch

> so at
> > ]> least I know it is looking.
> >
> > That is a bad routing table (or a bad firewall)
> >
> > ]>
> > ]> Each PC can ping themselves but not each other so I know networking is

> up
> > ]> and running. The results of running ifconfig and route are as follows.
> >
> > They do not ping themselves through the network.
> >
> > I thought you said the XP could ping the Linux? If neither can, the cable
> > may be bad. (is it a straightthrough connection-- a wire directly from
> > computer to computer? If so you MUST use a null ethernet cable - pins 1 3
> > reversed and 2 6 reversed)
> >
> > ]>
> > ]>
> > ]> eth0 Link encap:Ethernet HWaddr 00:80:C8:F7:36:BC
> > ]>
> > ]> inet addr:192.168.0.2 Bcast:192.168.0.255

> Mask:255.255.255.0
> > ]>
> > ]> inet6 addr: fe80::280:c8ff:fef7:36bc/64 Scope:Link
> > ]>
> > ]> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> > ]>
> > ]> RX packets:0 errors:1 dropped:0 overruns:0 frame:0
> > ]>
> > ]> TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
> > ]>
> > ]> collisions:0 txqueuelen:100
> > ]>
> > ]> RX bytes:0 (0.0 b) TX bytes:288 (288.0 b)
> > ]>
> > ]> Interrupt:10 Base address:0xd800
> > ]>
> > ]>
> > ]>
> > ]> 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:50 errors:0 dropped:0 overruns:0 frame:0
> > ]>
> > ]> TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
> > ]>
> > ]> collisions:0 txqueuelen:0
> > ]>
> > ]> RX bytes:3260 (3.1 Kb) TX bytes:3260 (3.1 Kb)
> > ]>
> > ]>
> > ]>
> > ]>
> > ]>
> > ]> Kernel IP routing table
> > ]>
> > ]> Destination Gateway Genmask Flags Metric Ref Use
> > ]> Iface
> > ]>
> > ]> 192.168.0.0 * 255.255.255.0 U 0 0 0

> eth0
> >
> > OK that looks OK.
> >
> > I suspect cable or network card.
> >
> > ]>
> > ]>
> > ]>
> > ]>
> > ]>
> > ]> The frustrating thing about this is when I first set up the Linux box

> the
> > ]> networking was running. I switched off the PC overnight then in the

> morning
> > ]> it wasn't working. I have configured the firewall on the XP box to

> allow the
> > ]> Linux box's IP - I have even turned the firewall off without success.

> What I
> > ]> really want to do at the end of the day is share the internet

> connection on
> > ]> the XP box - I could do this initially - but at the moment I just want

> to
> > ]> get the two talking to each other, Can anyone help me with this? I

> thought
> > ]> it would have been very simple to set this up but I was obviously

> wrong.
> >
> > It is. There is some other problem. maybe bad cable, maybe the ethernet
> > card got fried.
> >
> >
> > ]>
> > ]> Cheers,
> > ]>
> > ]> John
> >
> > ]What is your default GW ?
> > ]route add default gw 192.168.0.1
> >
> > He does not need one. the other machine is on the same subnet as he is.
> >


You might try run tcpdump on linux, and ping from XP if you don't have
ethereal. On linux, you shoudl at least see arp request from XP coming
in. Otherwise you shoudl check the XP's configuration. Does XP have
two network cards?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
no ping from linux to xp Markus Laux Linux Networking 6 02-05-2006 04:48 PM
Still can't ping my Linux box Iain Miller Linux Networking 10 04-21-2004 02:36 PM
Windows ping and Linux ping command? tom Linux Networking 5 11-10-2003 08:52 PM
Cannot access Linux Web Page or ping linux server from different subnet. Paul Graves Linux Networking 2 07-20-2003 08:39 AM
Cannot ping linux from different subnet. Paul Graves Linux Networking 0 07-19-2003 07:24 PM



1 2 3 4 5 6 7 8 9 10 11