Welcome to the most active Linux Forum on the web.
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, 07: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, 11:58 AM   #2
LQ Veteran
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,230

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

Rep: Reputation: 101Reputation: 101
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, 10: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 10:57 PM.
Old 09-15-2005, 10: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 05:09 PM
dhclient ip address disagrees length shpung Linux - Wireless Networking 2 02-27-2005 12:12 PM
How to get new ip address w/dhclient pbr Linux - Networking 2 11-10-2004 02:36 PM
Broadcast request for dhclient virendratp Linux - Networking 1 08-05-2004 01:37 AM
dhclient not getting an address ToTLaugher Linux - Networking 6 11-09-2003 05:03 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration