LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-06-2010, 02:00 AM   #1
makarand
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Rep: Reputation: 0
Red face dhcp server


hiii,
i have created dhcp server its working well.
problem is that i want to give fixed address to ine one cfflient
i have tried doing by givng entries in dhcp.conf file.
please do help me.
 
Old 11-06-2010, 03:53 AM   #2
amlife
Member
 
Registered: Sep 2007
Location: Canada
Distribution: RHEL, Debian, SUSE
Posts: 34

Rep: Reputation: 1
You should then see something similar to HWaddr 00:C0:9E:05:BD6. The MAC address for that ethernet card would be 00:C0:9E:05:BD6

If you are running Windows XP you can find out the MAC address by clicking on "Start --> Programs --> Accessories --> Command Prompt". At the prompt type:

ipconfig /all

You should then see "Physical Address" and the MAC address listed. Note: Windows might list the MAC address with hyphens (-) instead of colons (, if so, just replace them with colons when entering them into your dhcpd.conf file. (ex: change 00-45-40-10-FE-12 to 00:45:40:10:FE:12)

You will need to obtain the MAC address of the machine you would like to assign static IP address to, once you have you've found the MAC address you can add the following entry to the bottom your dhcpd.conf file:


# Assign a static IP to SERVER NAME
host NAME {
hardware ethernet 00:45:40:10:FE:12;
fixed-address 10.1.1.20;
}

You may obtain the MAC address via Ifconfig on linux or ipconfig /all on windows.


restart dhcp service /etc/init.d/dhcpd restart

Links:
http://www.linuxhelp.net/guides/dhcp/

Last edited by amlife; 11-06-2010 at 03:54 AM. Reason: Added external link for reference
 
1 members found this post helpful.
  


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
Baffling DNS from a DHCP server problem. Appears to be ignoring dhcp.conf royce2020 Linux - Networking 1 02-16-2010 12:40 PM
Problem on acquiring IP addr. on client from dhcp server through dhcp relay server haariseshu Linux - Server 5 08-10-2009 01:20 AM
Instead of Router DHCP Server, Pass DHCP Server control to Slackware orbit Slackware 6 05-11-2009 02:00 AM
How To know if a host configured with DHCP has obtained IP address from DHCP server? Prassanta SUSE / openSUSE 1 06-29-2006 09:48 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:07 AM.

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