LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2009, 06:52 PM   #1
MajorDill
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Rep: Reputation: 0
Home network, hostnames, IP addresses, dynamic dchp


I have two computers, Windows XP and a newly installed Slackware machine which I already like much better.

Both machines can ping each other with IP address
Only the XP can ping the Slackware machine using the hostname

Pinging from Linux to XP results in a message about unresolved hostname and IP Address

From what I have read, I need to set the hostname to point to the IP address in the /etc/hosts file??? I don't see how I can do this if the dchp is allocating addresses dynamically?

The machines are connected via a linksys ethernet 10/100 hub and internet access does not (will not) exist.

Also, I setup samba and can view the files on the Slackware machine from XP, so I know I am close to getting this to work.

Thanks in advance for any help.
 
Old 10-15-2009, 07:03 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
If you've only got a few systems, using static IP/Name combos is perfectly reasonable.
You can either

1. disable dhcp entirely and use static entries in /etc/hosts (or equiv on XP)
2. have a dhcp server, but use the option to set static ips according to MAC addresses
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Linux box on home network with dynamic IP :( natv Linux - Networking 5 01-30-2007 03:07 PM
Two Separate Hostnames and IP Addresses on two NIC cards kaplan71 SUSE / openSUSE 3 04-21-2006 06:24 PM
cannot browse websites with thier hostnames but can with ip addresses shams Linux - Networking 1 10-20-2004 06:40 AM
iptables - allowing hostnames from ip addresses chrisfirestar Linux - Security 13 01-20-2004 10:42 PM
Dynamic Hostnames jnoller Linux - Networking 0 08-06-2003 09:39 AM


All times are GMT -5. The time now is 06:42 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration