LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-05-2010, 11:49 AM   #1
Geert86
Member
 
Registered: Jul 2008
Posts: 46

Rep: Reputation: 15
Connect to PC in home network by name


Hi all,

I am still building my home network, and want it o be able to connect to different computers by:

\\pc-name

We have 2 types of computers:
Computers in the workgroup WORKGROUP (2 debian, 1 vista)
Computers in the domain TUE (required by our university) (3 vista, 2 xp)

Within the workgroup, I can call pc's by their name, but this is not possible by the pc's in the domain.

I can however always do \\ip and the 2 debians have a samba server running, which is available through \\ip (and \\name, for the computers in the workgroup).

Does anybody knows the answer?

Best regards,

Geert
 
Old 01-05-2010, 12:04 PM   #2
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
To confirm...

Do you have static IP addesses (or DHCP reservations) for all the machines?

Do you have a DNS server?

If you don't have (and don't want to set-up) a DNS server you would need to make manual entries into the hosts file of each machine.

on Linux, this is generally /etc/hosts

on Windows XP the hosts file is c:\Windows\System32\drivers\etc\hosts

windows may have relocated this on Vista, I don't know.

Example hosts file:
Code:
###
### Add this to each machine
###
127.0.0.1     localhost   loopback
192.168.0.5   deb1
192.168.0.6   deb2
192.168.0.7   Vista1
192.168.0.8   Vista2
192.168.0.9   XP1

Last edited by Disillusionist; 01-05-2010 at 12:08 PM. Reason: Addition of a sample hosts file
 
Old 01-05-2010, 05:38 PM   #3
Geert86
Member
 
Registered: Jul 2008
Posts: 46

Original Poster
Rep: Reputation: 15
Hi, I am not sure.

I know about the hosts file, but I don't want to edit the hosts file everytime someone comes living into the house (students house).
I don't mind setting up a DNS-server, if it is not too complicated
I don't know if I have static IP adresses. From experience I know that my web server has changed it's IP adress once, when both router and PC where down.

So what is your verdict? What is the best solution for my problem?

Best regards,

Geert
 
Old 01-06-2010, 01:30 AM   #4
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
Your router is almost certainly acting as a DHCP server for the machines on your network, and therefore you probably do not currently have static IP addresses for your machines.

First, I would see if your router configuration allows for DHCP reservations. On my Netgear this is done on the "LAN IP Setup" under "Advanced".

You will need to know the MAC addresses of the network interface that will attach to the LAN, and assign a unique IP address in the network range for each MAC address.

To find out what the MAC address is...

In Vista,
  1. open the Network and Sharing Center from Control Panel
  2. click view status the relevant network interface
  3. click Details
  4. MAC address is shown as Physical Address

In Windows XP,
  1. open the Network and Internet Connections from Control Panel
  2. click Network Connections
  3. right-click on the relevant network interface
  4. click Status
  5. click Details on the Support tab
  6. MAC address is shown as Physical Address

Alternatively type (from the cmd prompt):
Code:
ipconfig /all
In Linux, type (from a console/terminal):
Code:
ifconfig -a
MAC address is shown as HWAddr
 
Old 01-06-2010, 03:18 AM   #5
Geert86
Member
 
Registered: Jul 2008
Posts: 46

Original Poster
Rep: Reputation: 15
I have a wireless-G Broadbans router of Linksys.

This is what I found:

DHCP Server: Enable
Starting IP Address: 192.168.1.100
Maximum Number of DHCP Users: 50
Client Lease Time: 0 minutes (0 means one day)
Static DNS 1: . . .
Static DNS 2: . . .
Static DNS 3: . . .
WINS: . . .

Further I can edit internet access policies and add/remove a list of pc's under "internet access". At the moment all internet access policies are disabled.

I am not sure what to do next...
 
Old 01-06-2010, 01:50 PM   #6
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
If you do not have an option to configure "DHCP Reservations" on your Router, then you cannot guarantee that the machines will be given the same IP address each time they connect.

Your alternative would be to turn off DHCP on the router, and configure a Linux machine as a DHCP server (this would need to be permanently on and have a static IP address).

You could use the same machine to configure DNS, both of these tasks are quite involved but there is plenty of documentation around.

A quick google search returned the following:
http://www.linuxhomenetworking.com/w...he_DHCP_Server

http://www.aboutdebian.com/dns.htm
 
  


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
how should i connect to my wireless network at home in ubuntu 8.10??? learning linux Linux - Newbie 3 08-04-2009 07:30 AM
Why can't I connect to my home wireless network phil7784 Linux - Newbie 2 04-17-2009 02:43 PM
Cannot connect to home network in xubuntu RArocks12 Linux - Newbie 1 09-29-2006 02:36 PM
Driver is set up, but I can't connect to my home network zowey Linux - Wireless Networking 9 01-07-2006 09:30 AM
Setting up a home network - can't connect to router awagner99 Linux - Networking 7 01-30-2005 09:23 PM

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

All times are GMT -5. The time now is 09:25 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