LinuxQuestions.org
Visit Jeremy's Blog.
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 12-03-2006, 03:01 AM   #1
gimmee
Member
 
Registered: Jul 2006
Location: New Zealand
Distribution: Fedora 17 64bit (Desktop) Fedora 15 (Laptop)
Posts: 98

Rep: Reputation: 17
Cool Simple homenetwork, hosts, dhcp question


Hi all

I have a desktop with FC5 installed on it as well as WinXP.
A laptop with WinXP and Ubuntu on it wireless.
A linksys wireless router adsl modem.
Broadband still to be hooked on in a couple of days, yah no dial up.
A canon printer.
The Desktop FC5 is hooked to router
The printer is hook to router
The laptop under windows is wirelessly hooked to router with WPA PSK

My question is should I use the DHCP from the router to assign IP address. This is what I do at the moment and I am able to ping each computer and router but for the computers I have to ping the ip address.

They get assigned from 192.168.1.100 by the router.

The laptop has a hostname of evo6 and the desktop has a host name of STI. Both of these show up on the router with the hostname and the ip address that has been assigned.

Why cant i just ping the hostname like, ping STI, from the laptop to desktop, for example? Do you have to have these assigned in the hosts.conf do do this and is that only with static ip's.

Obviously just setting up a simple wired, wireless, router home network so may need to ask some stupid questions in the future.

Look forward to any comments you maybe able to give.

Cheers

Gimmee

Last edited by gimmee; 12-04-2006 at 03:49 AM.
 
Old 12-03-2006, 03:14 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
You'd need to setup your own DNS server to be able to resolve hostnames on your internal network. You might resolve NetBIOS names on Windows or if your linux distro is running a netbios daemon, but otherwise you'll have to use the IP addresses to ping. Using DHCP from your router should be fine. Be aware if your distro automatically tries to obtain an IP via DHCP when it boots up or if you have to manually bring up the interfaces.
 
Old 12-04-2006, 04:02 AM   #3
gimmee
Member
 
Registered: Jul 2006
Location: New Zealand
Distribution: Fedora 17 64bit (Desktop) Fedora 15 (Laptop)
Posts: 98

Original Poster
Rep: Reputation: 17
As far as I can tell the distro FC5 on desktop automatically obtains IP adress from router. But depending on if the laptop is booted first or desktop first, the FC5 desktop could have IP address 192.168.1.100 or 192.168.1.101.

How do I allow access to the drive or partions on desktop FC5 if the IP address keep changing. I thought I was meant to mount the drives or partitions with the IP address in fstab. Or am I meant to use Samba.

I have got redhat 9 bible now, so hopefully that will shed some light on my crawling into simple home network setup.

Thanks for your replies

Gimmee
 
Old 12-04-2006, 06:57 AM   #4
vargadanis
Member
 
Registered: Sep 2006
Posts: 248

Rep: Reputation: 30
you can set up both of your comps to ask for a static IP adress even tho you have got a DHCP server running on you router.
Eg: 192.168.1.100 for your FC5 and 192.168.1.101 for your windows box. Make sure you enter all the necessary data that matches with the data that the router would give you.
A good way to do that is to let the DHCP server assign you a dyn. IP and chk out the setup in CLI: ifconfig
 
  


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
[SOLVED] question about hosts.allow/hosts.deny Wim Sturkenboom Linux - Security 9 05-30-2006 01:33 AM
/etc/hosts and hosts.deny question ilan1 Linux - Networking 4 03-04-2006 05:28 PM
hosts.allow & hosts.deny question... jonc Linux - Security 9 03-05-2005 09:41 PM
IP Address for /etc/hosts when using DHCP jimbo Linux - Networking 5 03-27-2004 06:59 PM
/etc/hosts (or: getting DHCP clients) billlee Linux - Networking 5 06-09-2003 03:42 PM

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

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