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 02-03-2005, 11:14 AM   #1
Genjix
Member
 
Registered: Oct 2003
Location: Pico
Distribution: SUSE 9.1
Posts: 83

Rep: Reputation: 15
SUSE 9.1 DHCP using hostnames


i have 2 computers connected via a router, and both are using dhcp (funnily enough), the problem is that they both continually change their ip adresses. Thus I am unable to setup nfs servers .etc, I am having problems setting up hostnames for the computers (no clue).
lye@laptop:~> ping shop.jy
ping: unknown host shop.jy
lye@laptop:~> ping laptop.jy
PING laptop.jy (192.168.1.2) 56(84) bytes of data.

--- laptop.jy ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms
[hangs]
lye@laptop:~> ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.

--- 192.168.1.2 ping statistics ---
8 packets transmitted, 0 received, 100% packet loss, time 6999ms
[hangs]
lye@laptop:~>

Do I need a computer to be hostname server (storing all the hostnames)? Would that mean it would always be on .etc

Thanks
 
Old 02-03-2005, 11:19 AM   #2
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
i'm starting to dislike dhcp servers...

is there a reason you can't assign a static address? isn't that what you really want?
 
Old 02-03-2005, 11:31 AM   #3
Genjix
Member
 
Registered: Oct 2003
Location: Pico
Distribution: SUSE 9.1
Posts: 83

Original Poster
Rep: Reputation: 15
adsl requires me to use dhcp.
 
Old 02-03-2005, 01:02 PM   #4
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
not internally, no it doesn't. for your modem, sure... but your internal network can be administrated in a different manner.

hop onto your modem's / router's / whatever's config page, and you should see a dhcp client range. then you pick addresses outside that range but still under the network mask to set static IPs
 
Old 02-04-2005, 07:43 AM   #5
Genjix
Member
 
Registered: Oct 2003
Location: Pico
Distribution: SUSE 9.1
Posts: 83

Original Poster
Rep: Reputation: 15
wait, im not clear on this. Say I have 2 computers connected all by a router. What do I do then?
 
Old 02-04-2005, 08:33 AM   #6
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
let's back up a step...
--and notice i am generalizing heavily... your exact setup depends upon your HW.

say you have:
Code:
Internet ---> DSL EndPoint  ---> Router ---|
                                           |
                                PC1 <-----------> PC2
now your endpoint ("modem") has external IP. it has the option of hanging onto that, or passing it to your router. your router then has either an internal ip in adress space x, or an external ip (on the "Internet" side), and an internal ip in address space y (on your personal network side)

your personal network can be assigned either statically or dynamically. dynamic addresses are usually given a slice of the namespace by the dhcp server -- so say your dhcp server is configured to use 192.168.0.0/255.255.255.0 they usally also allow for you to say something like: "start dynamic IPs at 100"

meaning: 192.168.0.100 - 192.168.0.255 are possible dynamic addresses, and <192.168.0.100 are possible static addresses.

see where i'm going?

given the above constraints, and knowing that you want static addresses, you would then just configure your PCs to use static IPs within the address space <192.168.0.100/255.255.255.0

Last edited by secesh; 02-04-2005 at 08:37 AM.
 
Old 02-04-2005, 06:01 PM   #7
Genjix
Member
 
Registered: Oct 2003
Location: Pico
Distribution: SUSE 9.1
Posts: 83

Original Poster
Rep: Reputation: 15
ok i see, thanks.
 
  


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
Problems Resolving Hostnames On Suse? wandering Linux - Networking 1 07-28-2005 10:37 AM
DHCP on SuSE 9.1 LUB997 Linux - Networking 3 07-23-2005 08:15 AM
Apache DNS hostnames lookup; SuSE 9.2 Carlee SUSE / openSUSE 0 01-29-2005 03:04 PM
Internal DHCP and Hostnames jeffxor Linux - Networking 2 11-26-2004 01:18 AM
Allowing DHCP server access only to certain hostnames TVH Linux - Networking 3 11-23-2004 12:50 AM

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

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