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 3 Days Ago
videsh77 videsh77 is offline
Registered User
 
Join Date: Aug 2004
Last Activity: 21 February 2017, 3:39 AM EST
Location: Pune
Posts: 157
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 3 Days Ago
zaxxon's Unix or Linux Image
zaxxon zaxxon is online now Forum Staff  
code tag tagger
 
Join Date: Sep 2007
Last Activity: 23 February 2017, 6:44 AM EST
Location: St. Gallen, Switzerland
Posts: 6,544
Thanks: 168
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 2 Days Ago
videsh77 videsh77 is offline
Registered User
 
Join Date: Aug 2004
Last Activity: 21 February 2017, 3:39 AM EST
Location: Pune
Posts: 157
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 2 Days Ago
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 23 February 2017, 5:46 AM EST
Location: In the leftmost byte of /dev/kmem
Posts: 5,345
Thanks: 98
Thanked 1,457 Times in 1,085 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 2 Days Ago
RudiC RudiC is online now Forum Staff  
Moderator
 
Join Date: Jul 2012
Last Activity: 23 February 2017, 6:28 AM EST
Location: Aachen, Germany
Posts: 10,319
Thanks: 242
Thanked 3,148 Times in 2,913 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 2 Days Ago
videsh77 videsh77 is offline
Registered User
 
Join Date: Aug 2004
Last Activity: 21 February 2017, 3:39 AM EST
Location: Pune
Posts: 157
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 02: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 01:56 AM
Not able to connect (ping & http) to windows 2003 (with IIS installed) from Solaris9 Machine(Tomcat) aemunathan Solaris 2 10-23-2009 12:00 AM
SSH into a linux machine from a windows machine lassimanji Shell Programming and Scripting 4 04-29-2009 02:48 PM
how can i copy data in LINUX Machine to windows XP bsandeep_80 UNIX for Advanced & Expert Users 2 03-27-2008 07:25 AM



All times are GMT -4. The time now is 07:47 AM.