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
    #8  
Old Unix and Linux 02-20-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

Quote:
Originally Posted by RudiC View Post
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.
Sponsored Links
    #9  
Old Unix and Linux 02-20-2017
zaxxon's Unix or Linux Image
zaxxon zaxxon is offline Forum Staff  
code tag tagger
 
Join Date: Sep 2007
Last Activity: 27 April 2017, 7:53 AM EDT
Location: St. Gallen, Switzerland
Posts: 6,552
Thanks: 171
Thanked 553 Times in 476 Posts
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

Sponsored Links
    #10  
Old Unix and Linux 02-20-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
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 Unix and Linux 02-20-2017
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 29 April 2017, 2:24 PM EDT
Location: In the leftmost byte of /dev/kmem
Posts: 5,407
Thanks: 99
Thanked 1,491 Times in 1,108 Posts
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 View Post
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
Sponsored Links
    #12  
Old Unix and Linux 02-20-2017
RudiC RudiC is offline Forum Staff  
Moderator
 
Join Date: Jul 2012
Last Activity: 29 April 2017, 11:25 AM EDT
Location: Aachen, Germany
Posts: 10,705
Thanks: 264
Thanked 3,285 Times in 3,026 Posts
I'm surprised there's no collisions with the router being 192.168.0.100 as well as the linux host?
Sponsored Links
    #13  
Old Unix and Linux 02-21-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
Hi ... Router address is turned out to be -

192.168.0.1
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 03:16 AM.