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 02-02-2006, 10:35 AM   #1
fedora_user
Member
 
Registered: Jan 2006
Posts: 112

Rep: Reputation: 15
How to convert dhcp to a static ip server


DHCP SERVER USING: RHEL 4
DNS: BIND 9



Hello everyone!

I have a problem...
I have been requested by my seniors to change our DHCP-Mac-address-binding server to a static setup so all machines on the network connect with a static ip address. I am not sure how to go about doing this. I am also using Bind 9(i think?) as DNS. All input will be much, much appreciated.

Kind regards
 
Old 02-02-2006, 11:53 AM   #2
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 676
Blog Entries: 7

Rep: Reputation: 32
I might be wrong here...but the solution to your problem "unless you provide more detail" is in the client setups not the server setup...just go to every client and enter static IPs instead of leaving the client to fetch dynamic IPs...you dont even have to turn off DHCP on the server...
 
Old 02-02-2006, 02:17 PM   #3
fedora_user
Member
 
Registered: Jan 2006
Posts: 112

Original Poster
Rep: Reputation: 15
"I might be wrong here...but the solution to your problem "unless you provide more detail" is in the client setups not the server setup...just go to every client and enter static IPs instead of leaving the client to fetch dynamic IPs...you dont even have to turn off DHCP on the server..."

Cheers for that Alinux. I see your point. However I thought the whole point of static IP is control, control from server side. Otherwise it will be easy to connect from client by simply removing the static ip and it will be back to dhcp? I thought by specifying an IP address on the server for every machine connected you know exactly whose doing what.
regards
 
Old 02-02-2006, 02:23 PM   #4
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 676
Blog Entries: 7

Rep: Reputation: 32
Well ...if you give each of the clients a static IP...from the client of course..and lets say after that you would like to know who is consuming the bandwidth and what sites they are visiting......you use jnetop or iftop and you can use which IP is doing what...now that you have set those IPs statically you will know to whom wich IP belongs..furthermore you can bind each IP to a name in /etc/hosts

Note: thx to HappyTux for correcting me ...

Last edited by ALInux; 02-02-2006 at 03:28 PM.
 
Old 02-02-2006, 02:46 PM   #5
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by ALInux
Well ...furthermore you can bind each IP to a name in /etc/resolv.conf
/etc/hosts
 
Old 02-02-2006, 03:26 PM   #6
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
Quote:
Originally Posted by fedora_user
...I thought the whole point of static IP is control, control from server side. Otherwise it will be easy to connect from client by simply removing the static ip and it will be back to dhcp? I thought by specifying an IP address on the server for every machine connected you know exactly whose doing what...
The whole point of DHCP is control from server side. No need to go out to 250 machines and specify an IP address, netmask, gateway, nameservers and then track the used IPs without overlapping them or wasting the 10 that got assigned to PCs that were phased out months back.

It's still easy to connect from a client no matter which setup you have, I can either change to DHCP if you have it, or change to static if you don't and watch ARP requests or guess which IP address is the router that gets me past your local subnet. Adding or removing a DHCP server isn't going to change that.

And actually, your "DHCP-Mac-address-binding server" (if that means it's a DHCP server with a bunch of hard coded, or shall we call them static, MAC address to IP mappings) is as close to static IPs as you will get, without the aformentioned individual configuration of 250 machines.

In summary, unless you described either the current setup or the request wrong, you already have what they asked for: each of the "machines on the network connect with a static ip address" that is based on their network card's MAC address.
 
Old 02-02-2006, 05:30 PM   #7
fedora_user
Member
 
Registered: Jan 2006
Posts: 112

Original Poster
Rep: Reputation: 15
thanks for all the info. Its beginning to make more sense to me as well as understanding my current setup at work. My final question is once I have changed over to static ip setup, does the DNS need to be updated as well to reflect the host name of each computer and their corresponding IP address? If so how do I go about doing so.

Kind regards
 
Old 02-09-2006, 04:44 AM   #8
fedora_user
Member
 
Registered: Jan 2006
Posts: 112

Original Poster
Rep: Reputation: 15
futher info required

Hello

I have a dhcp linux server which users authenticate via dynamically allocated.I am trying to change this so users logon via Mac address bind ip addressing. Apart from making changes to the dhcpd.conf files, is there any other file that requires changing.
Any help will be much appreciated.
Kind regards
 
Old 02-09-2006, 08:30 AM   #9
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 676
Blog Entries: 7

Rep: Reputation: 32
Well the best way to know if it works is to test it...If you did the configuration of the dhcpd.conf right then it should work ...Try it...if you have probs tell us and we can help you out
 
Old 02-09-2006, 09:58 AM   #10
fedora_user
Member
 
Registered: Jan 2006
Posts: 112

Original Poster
Rep: Reputation: 15
thanks for that Alinux.
On another note, I remember you previously suggesting using jnettop as a network monitoring tool. Can yo tell me if I can use this on a dedicated server or does it have to be on the server running dhcp and dns?
Kind regards
 
Old 02-09-2006, 11:19 AM   #11
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 676
Blog Entries: 7

Rep: Reputation: 32
You can use either jnetop or iftop.... both are similar but I personally prefer jnetop . They can help you to determine which IP is consuming how much bandwidth and accessing which hosts. After installing either one of the programs. Just open a shell...
1- su
2- jnetop -i eth0 "where eth0 is the interface you want to monitor"
iftop uses a similar syntax

If you want to measure overall traffic consumption over a period and want a webinterface for it use darkstat
 
Old 02-10-2006, 01:03 AM   #12
bbtron
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
newbie here...pls help!!

having problem on fc4.. i can't print in winxp using fc4..network is ok file sharing is ok..but theres no icon of printer when i browse the winxp, its just shared folder


tnx in advance
 
Old 02-10-2006, 02:23 AM   #13
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 676
Blog Entries: 7

Rep: Reputation: 32
google for cups
 
Old 02-10-2006, 09:17 AM   #14
soulestream
Member
 
Registered: Nov 2005
Posts: 183

Rep: Reputation: 30
Quote:
And actually, your "DHCP-Mac-address-binding server" (if that means it's a DHCP server with a bunch of hard coded, or shall we call them static, MAC address to IP mappings)

I think the term you are looking for is persistent dhcp.

That way the dhcp server always gives the same IP address to the same MAC address.

Quote:
newbie here...pls help!!

having problem on fc4.. i can't print in winxp using fc4..network is ok file sharing is ok..but theres no icon of printer when i browse the winxp, its just shared folder


tnx in advance
bbtron, you will probably get better help by starting a new thread with your problem, that trying to hijack someone elses

soule

Last edited by soulestream; 02-10-2006 at 09:19 AM.
 
  


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
From DHCP to static IP. dave`2005 Slackware 3 08-22-2005 09:12 AM
Static IP Address with DHCP server control taylortbb Linux - Networking 1 06-28-2005 01:43 PM
Using DHCP with a static IP ninmonkeys Linux - Networking 9 11-30-2004 07:32 AM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 11:13 AM
DHCP to static IP ?? davepal Linux - Networking 1 04-21-2004 09:34 AM

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

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