LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-14-2007, 07:05 AM   #1
Syathon
LQ Newbie
 
Registered: Mar 2007
Location: UK, Norfolk
Distribution: Fedora, opensuse
Posts: 14

Rep: Reputation: 0
Pinging Windows from Linux


Hi,

I recently just got a new broadband router which has enabled me to start using dynamic IP's.

Basically I want to be able to ping a Windows Machine from Linux without having to know what its IP is.

Much like pinging a Windows machine from Windows using the machines host name instead of it's IP address.

Is this possible? If so how would I do this? I am using opensuse 10.2

Thanks in advance.
 
Old 06-14-2007, 08:45 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,246

Rep: Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861
In order for a ping, or any other tcp/ip communication to work, IP address have to be resolved, somewhere. If you have a DNS server, then teh DNS server can resolve addresses.

There are some work arounds. On some routers, using DHCP, you can set the router up to issue an IP based on MAC address. Every card has a MAC ( media access control ) address. Enter the MAC to IP addresses you want, and you always know the IP for a particular machine.

You can then enter the IP addresses in your /etc/hosts file, and then 'ping hostname' will work.

Of course, the other way is to set up static IP addresses, and edit your /etc/hosts file.

On my home network I use both. I set up a small range of addresses for DHCP, teh rest of the addresses of the 254 on my sub-net I sue static addresses. Fir the boxes that are fixed, they get a static IP. The laptops use DHCP.

Hope this helps.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble pinging a linux box - resolves outside ip! TomalakBORG Linux - Networking 3 07-19-2006 11:10 AM
Pinging?? Sherpa Linux - General 3 05-13-2004 07:23 AM
Problems networking Linux and Windows. Pinging does not work. ElijahLofgren Linux - Networking 29 02-11-2004 11:10 PM
Linux Redhat 9 pinging problem adsl vova Linux - Networking 2 09-19-2003 06:42 AM
pinging linux from win98 rhstudent Linux - Networking 3 03-06-2002 09:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration