LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 02-27-2005, 11:25 PM   #1
LancerNZ
Member
 
Registered: Oct 2004
Location: New Zealand
Distribution: Fedora Core 2
Posts: 40

Rep: Reputation: 15
Beginner LAN - computer name instead of IP


This has to be a doddle of an easy question for setting up a simple classroom network.

I've been reading through http://www.linuxquestions.org/questi...ticle&artid=26 but am confused as it seems to be geared at external access and I'm wanting to make nameserver for an internal LAN.

Basically, I have set up several computers on ethernet via DHCP which normally take IP addresses from the 192.168.1.128-192.168.1.138 range.

However, IP addresses are inhuman to remember and the nature of DHCP means that any of the computers could be any of the IP addresses available. If I see Tom (a student) playing games on say, "computer 3" when he should be working, and I wish to telnet (or ssh) into his machine in order to kill the task, it's no good if I don't immediately know the IP address of the computer he's on.

Somone told me that I can name the computers and use the names instead of IP addresses. How do I go about setting this up and using it?
 
Old 02-27-2005, 11:31 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
You'll need to use ddns updates from dhcp. Or, what would probably be a much more convenient manner, is to use a program called "dnsmasq" both to provide the functionality of a nameserver and dhcp server.
 
Old 02-27-2005, 11:34 PM   #3
charon79m
Member
 
Registered: Oct 2003
Distribution: Just about anything... so long as it is Debain based.
Posts: 297

Rep: Reputation: 30
You can have your DNS server, are you running one internally, update automatically when systems get a DHCP address. I've not set this up, though I know it can be done. Check for something called ad-hock updating.

You could also statically address these machines... how many of there are there? You could even make the IPs be meaningful... computer 3 could be 10.1.1.3 (or whatever your internal IP scheme is).

Another misconception of DHCP is that your machines will be changing IP addresses all the time. This is not the case. Your machines will most often, if not always, get the same IP address. The only time you should get addresses that change is if you have more machines than are in your pool.

Hope this helps!

MrKnisely
 
Old 02-27-2005, 11:44 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
You could, to insure static ip addresses, assign IPs by MAC address. DHCP can still do this.
 
Old 02-28-2005, 01:10 AM   #5
LancerNZ
Member
 
Registered: Oct 2004
Location: New Zealand
Distribution: Fedora Core 2
Posts: 40

Original Poster
Rep: Reputation: 15
Yes, I know I can also assign IP's to whichever computer I want. My friend said that I can also assign something like a hostname to each computer so that "computer3" would be called "computer3" instead of "192.168.1.3"
However, he only knows Windows and I'm totally ignorant of networks. Anyone know what he's talking about?
 
Old 02-28-2005, 01:40 AM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
If you have only a few systems, just share a common /etc/hosts file between all the systems (see "man hosts" for how to use /etc/hosts). If you have more than a couple dozen systems, or your network changes a lot, it might be worth it to set up an internal DNS server.
 
Old 02-28-2005, 11:04 PM   #7
LancerNZ
Member
 
Registered: Oct 2004
Location: New Zealand
Distribution: Fedora Core 2
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks

Thank you. The /etc/hosts file seems to do the trick quite nicely.
 
  


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
connecting to a computer in a Lan from outside Tinku Linux - Networking 7 06-03-2005 02:51 PM
How to set up LAN between two computer vanhelsing Linux - Networking 14 07-16-2004 11:47 AM
I can't share my computer on LAN thuongkiet82 Linux - Networking 2 05-20-2004 08:06 AM
Wake up computer on LAN Linh Linux - Networking 2 06-15-2003 06:33 PM
How can I get access to a computer on my LAN? teeno Linux - Networking 5 07-17-2001 08:44 AM

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

All times are GMT -5. The time now is 08:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration