Cant ping Linux machine from Windows


 
Thread Tools Search this Thread
Special Forums IP Networking Cant ping Linux machine from Windows
# 8  
Old 02-20-2017
RedHat

Quote:
Originally Posted by RudiC
Does the windows PC ping the router? Does it ping itself? Some routers have a ping function; does it ping the linux host?
Windows PC could Ping the router - Yes.
Windows PC could ping itself - Yes.
My D-Link router has Ping functionality. But it could not ping Linux machine.

In the router configuration; DHCP Client List is not showing the Linux machine.

Surprisingly, from Linux I still could ping Windows. Ethernet cables from Windows & Linux box are connected to the D-Link router.
# 9  
Old 02-20-2017
No clue why the MAC is not showing up in the ARP table but could you check if there is some firewall rules set up on the Linux box with:
Code:
iptables -L

# 10  
Old 02-20-2017
Resolved

Deal all ... Thanks for your patience & guiding me with this. In the process I learned a lot.


It was not problem with windows nor Linux. It was the way DHCP client been assigned by router to Linux box.

In the router configuration, I have reserved the Linux address as 192.168.0.101. But the way IP address had been allotted to Linux, 'Obtain IP address automatically' assigned Linux box address as -
192.168.0.100 ... This I have found out after close look at output of ifconfig command.

Tried SSH putty connection to this Linux from Windows & it worked.

It was albeit stupid of me assuming Linux will adhere to same IP address which I have assigned it in router configuration.
# 11  
Old 02-20-2017
First off, thanks for the feedback! It is an advance for us too to know how the problem finally was solved.

Quote:
Originally Posted by videsh77
It was albeit stupid of me assuming Linux will adhere to same IP address which I have assigned it in router configuration.
It depends on the Linux system being configured to be a DHCP-client or not. When an IP-host starts it puts an IP-address onto its interface. This is done with the ifconfig command (or some equivalent thereof). DHCP means: you do not configure an IP address on the system but instead, when the IP-host starts, the DHCP-client process takes over and broadcasts a plea "i need an address" upon which a (hopefully there) DHCP-server answers and gives out one, which the client then configures.

So, in fact you need two components: you need the DHCP-server to be configured to give out an address to this specific client. And you need the prospective client to be configured so that it asks for an address.

I hope this helps.

bakunin
# 12  
Old 02-20-2017
I'm surprised there's no collisions with the router being 192.168.0.100 as well as the linux host?
# 13  
Old 02-21-2017
Hi ... Router address is turned out to be -

192.168.0.1
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