Unix/Linux Go Back    


IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

Cant ping Linux machine from Windows

IP Networking


Tags
dhcp, solved

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 02-16-2017
videsh77 videsh77 is offline
Registered User
 
Join Date: Aug 2004
Last Activity: 6 March 2017, 10:29 AM EST
Location: Pune
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
RedHat Cant ping Linux machine from Windows

Hi

I have established LAN with the help of D-Link router. I am having 2 desktops ethernet connection managed by this D-Link router.
One PC is with Windows 7 OS
Second PC is with Redhat Linux 6.1

Both the PCs now stands connected to internet via this D-Link router.

I could ping windows PC from Linux machine; but reverse is not working.

Hence on windows I have also ensured hosts file at \Windows\system32\drivers\etc is added with IP address of Linux machine.

Still, no luck.

Is there anything, I am missing ?
Sponsored Links
    #2  
Old Unix and Linux 02-16-2017
RudiC RudiC is offline Forum Staff  
Moderator
 
Join Date: Jul 2012
Last Activity: 24 May 2017, 4:14 PM EDT
Location: Aachen, Germany
Posts: 10,816
Thanks: 272
Thanked 3,323 Times in 3,060 Posts
What are the IP addresses involved (router, win PC, linux host)? What IP version (4 or 6)? Did you try using the numerical IP address?
Sponsored Links
    #3  
Old Unix and Linux 02-17-2017
videsh77 videsh77 is offline
Registered User
 
Join Date: Aug 2004
Last Activity: 6 March 2017, 10:29 AM EST
Location: Pune
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
WinPC - 192.168.0.102
Linux - 192.168.0.101

Router address I believe the one provided by ISP - 192.168.0.100


I am trying to ping with numerical IP address only.
    #4  
Old Unix and Linux 02-17-2017
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 24 May 2017, 3:30 PM EDT
Location: Saskatchewan
Posts: 22,176
Thanks: 1,092
Thanked 4,169 Times in 3,858 Posts
Does the linux PC show up in the arp table after (arp /a) ?
Sponsored Links
    #5  
Old Unix and Linux 02-18-2017
videsh77 videsh77 is offline
Registered User
 
Join Date: Aug 2004
Last Activity: 6 March 2017, 10:29 AM EST
Location: Pune
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
Its not seen in

arp -a

What is its significance ?
Sponsored Links
    #6  
Old Unix and Linux 02-18-2017
RudiC RudiC is offline Forum Staff  
Moderator
 
Join Date: Jul 2012
Last Activity: 24 May 2017, 4:14 PM EDT
Location: Aachen, Germany
Posts: 10,816
Thanks: 272
Thanked 3,323 Times in 3,060 Posts
Does the windows PC ping the router? Does it ping itself? Some routers have a ping function; does it ping the linux host?
Sponsored Links
    #7  
Old Unix and Linux 02-18-2017
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 24 May 2017, 5:04 PM EDT
Location: In the leftmost byte of /dev/kmem
Posts: 5,423
Thanks: 100
Thanked 1,498 Times in 1,114 Posts
Quote:
Originally Posted by videsh77 View Post
Its not seen in

arp -a

What is its significance ?
That means that there isn't even a Layer-2 connection in place.

ARP (address resolution protocol) is working on its own address schema (the "MAC-addresses") and works below IP (=Layer 3).

When a IP-Host wants to contact another IP-Host on the same Ethernet segment this is how the communication is finally resolved: each host maintains a table (the so-called "ARP-cache", which the command arp lists) about which IP-address on the same segment relates to which MAC-address (=identifier for a certain network card) and uses this to contact the right host (more precisely: the correct IP-Interface of a certain host). For communication across segment boundaries there are bridges (or routers, switches, ...., which work the same in this regard), which are used as relays. Say, "hostA" (on segment A) wants to contact "hostB" (on segement B):


Code:
hostA@segmentA: sends packet  "dest-IP=hostB, dest-MAC=MAC of router(interfaceA), sender-IP=hostA, senderMAC=hostA"
router(interfaceA): accepts this packet as it is MAC-addressed to it
router: rewrites this packet to "dest-IP=hostB, dest-MAC=MAC of hostB, sender-IP=hostA, sender-MAC=MAC of router(interfaceB)"
router(interfaceB): sends packet to hostB

I hope this helps.

bakunin
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Steps to connect linux (Ubuntu) machine from windows 7 diehard Ubuntu 1 05-08-2012 01:24 AM
shell script to copy files frm a linux machine to a windows machine using SCP nithin6034 Shell Programming and Scripting 3 07-21-2011 12:56 AM
Not able to connect (ping & http) to windows 2003 (with IIS installed) from Solaris9 Machine(Tomcat) aemunathan Solaris 2 10-22-2009 11:00 PM
SSH into a linux machine from a windows machine lassimanji Shell Programming and Scripting 4 04-29-2009 01:48 PM
how can i copy data in LINUX Machine to windows XP bsandeep_80 UNIX for Advanced & Expert Users 2 03-27-2008 06:25 AM



All times are GMT -4. The time now is 01:02 AM.