Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-13-2005, 08:34 PM   #1
Registered: Oct 2003
Location: USA Fresno Callifornia
Distribution: Gentoo (workstation), ArchLinux (file/mail server), Freebsd (web server), Ubuntu (laptop)
Posts: 115

Rep: Reputation: 16
how to request a specific ip address with dhclient

I would like dhcpcd to assign me a specific ip address. Right now it gives me the ip address that the box last had issued to it and I can not figure out how to request an ip address. I am also not able to use a fixed ip address becasue I have to use DHCP for the project I am working on.
Any help is much appreciated!
Old 09-14-2005, 12:58 PM   #2
LQ Veteran
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2, current, slackware-arm-currnet
Posts: 5,679

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
My router has an option for called Fixed IP table within the DHCP configuration. I can set them there.
Old 09-14-2005, 01:29 PM   #3
Senior Member
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 153Reputation: 153
Your dhcp client can not request a specific IP, however the dhcp server can issue a specific IP based on the mac address of the client's NIC
Old 09-14-2005, 11:55 PM   #4
Registered: Apr 2001
Location: India
Distribution: CentOS 4.1
Posts: 35

Rep: Reputation: 15

In your dhcpd.conf file, add these 4 lines under your subnet:

host yourname {
hardware ethernet xx:xx:xx:xx:xx:xx;
fixed-address 192.168.x.x;

Put your mac address in the 2nd line. Put the fixed IP you want in the third line.

Last edited by gurusmaran; 09-14-2005 at 11:57 PM.
Old 09-15-2005, 11:07 PM   #5
Registered: Oct 2003
Location: USA Fresno Callifornia
Distribution: Gentoo (workstation), ArchLinux (file/mail server), Freebsd (web server), Ubuntu (laptop)
Posts: 115

Original Poster
Rep: Reputation: 16


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
specific distro advice request daveoily Linux - Distributions 2 09-04-2005 06:09 PM
dhclient ip address disagrees length shpung Linux - Wireless Networking 2 02-27-2005 01:12 PM
How to get new ip address w/dhclient pbr Linux - Networking 2 11-10-2004 03:36 PM
Broadcast request for dhclient virendratp Linux - Networking 1 08-05-2004 02:37 AM
dhclient not getting an address ToTLaugher Linux - Networking 6 11-09-2003 06:03 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:50 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration