Cant ping Linux machine from Windows


 
Thread Tools Search this Thread
Special Forums IP Networking Cant ping Linux machine from Windows
# 1  
Old 02-16-2017
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 ?
# 2  
Old 02-16-2017
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?
# 3  
Old 02-17-2017
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 02-17-2017
Does the linux PC show up in the arp table after (arp /a) ?
# 5  
Old 02-18-2017
Its not seen in

arp -a

What is its significance ?
# 6  
Old 02-18-2017
Does the windows PC ping the router? Does it ping itself? Some routers have a ping function; does it ping the linux host?
# 7  
Old 02-18-2017
Quote:
Originally Posted by videsh77
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Copy files from Linux server local windows machine using a shell script

Hello, I need to create a shell script which will copy files - which are created on particular date and starting with particular name - to local windows XP machine. Is this possible.? Currently it is being done manually using winscp (1 Reply)
Discussion started by: NarayanaPrakash
1 Replies

2. Ubuntu

Steps to connect linux (Ubuntu) machine from windows 7

Hi, Can anyone give me the steps to connect ubuntu from windows7? Thanks (1 Reply)
Discussion started by: diehard
1 Replies

3. Shell Programming and Scripting

File transfer from Windows machine to Linux server

Hi guys, I need to send a txt file from a windows machine to Linux server. Any help is appreciated.... Thanks... (3 Replies)
Discussion started by: gowrishankar05
3 Replies

4. Shell Programming and Scripting

shell script to copy files frm a linux machine to a windows machine using SCP

I need a shell script to copy files frm a linux machine to a windows machine using SCP. The files keeps changing day-to-day. I have to copy the latest file to the windows machine frm the linux machine. for example :In Linux, On July 20, the file name will be 20.txt and it should be copied to... (3 Replies)
Discussion started by: nithin6034
3 Replies

5. UNIX for Dummies Questions & Answers

Cross complie linux make files onto a windows 7 machine using PGI Cygwin

Hello, I am very unfamiliar with linux/unix (don't even know the difference), but am trying to get some linux software to run on my Windows machine for my research. I have the makefiles for the software, and it is designed to be compiled in the PGI complier, which I also have. When i... (6 Replies)
Discussion started by: roba87
6 Replies

6. Solaris

Not able to connect (ping & http) to windows 2003 (with IIS installed) from Solaris9 Machine(Tomcat)

hi Am trying to connect from Solaris 9 installed Sun server and having Tomcat 5.5.9 installed on top of it to Windows 2003 server with IIS installed for web application. Scenarios am facing are 1. From Sun system am able to ping and telnet ip with port 80 of windows 2000 system which is... (2 Replies)
Discussion started by: aemunathan
2 Replies

7. Shell Programming and Scripting

SSH into a linux machine from a windows machine

I basically want to login into different linux machines( on the same network) from a windows machine. I know i can use ssh <machine name>. But i want to automate this process. I dont want to enter the username and password. Is there any way to do it. Can i make some sort of a batch script for it. (4 Replies)
Discussion started by: lassimanji
4 Replies

8. UNIX Desktop Questions & Answers

wt is the exact procedure to share windows printer on linux machine to print from it

hi, what is the exact procedure to to set up printer on linux machine?The printer is a network hp 3050 printer configured on windows xp machine and i want to setup it on linux fc9 machine to print from it.is samba is compulsory for that? please give the exact procedure to do the same? (1 Reply)
Discussion started by: pankajd
1 Replies

9. UNIX for Advanced & Expert Users

how can i copy data in LINUX Machine to windows XP

Can anyone tell me how can i copy data in LINUX Machine to windows XP Thanks, Sandeep (2 Replies)
Discussion started by: bsandeep_80
2 Replies

10. UNIX for Advanced & Expert Users

view remote linux desktop on my windows machine

Hi, is there anyway i can view a remote linux desktop on my windows desktop? i am aware that X11 can see 'certain screens'. For eg if i type 'xclock &' and i have a client running on my windows, i can see the clock. If i am interested to see the entire desktop of my linux, how can i do it? (4 Replies)
Discussion started by: new2ss
4 Replies
Login or Register to Ask a Question