LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 08-02-2007, 02:29 PM   #1
gfem
Member
 
Registered: Apr 2003
Distribution: Fedora
Posts: 126

Rep: Reputation: 15
DHCP Assign ip to specific MAC address


Can someone point me in the right direction on how to configure dhcp to assign a predefined ip address to a certain MAC address. I ask because the device I have does not allow me to assign a static ip manually. I am using openwrt for the dhcp server.

Thanks.
 
Old 08-02-2007, 02:38 PM   #2
mackdav
Member
 
Registered: Feb 2005
Distribution: RHEL, CentOS
Posts: 113

Rep: Reputation: 16
For the dhcpd that comes with most linux systems, the syntax is to do something like this:

Code:
host system001 # @3c43t1-01-01
{
    hardware ethernet 00:07:E9:25:05:42;
    fixed-address 172.30.0.101;
    option host-name "system001";
}
...in the scope that reflects the IP subnet that you want the system to appear in. So a longer example might look like

Code:
subnet 172.30.0.0 netmask 255.255.255.0
{
    range  172.30.0.150 172.30.0.199;
        option subnet-mask 255.255.255.0;
        option broadcast-address 172.30.0.255;
        option routers 172.30.0.254;
        host system001 # @3c43t1-01-01
        {
            hardware ethernet 00:07:E9:25:05:42;
            fixed-address 172.30.0.101;
            option host-name "system001";
        }
}
 
Old 08-02-2007, 02:58 PM   #3
gfem
Member
 
Registered: Apr 2003
Distribution: Fedora
Posts: 126

Original Poster
Rep: Reputation: 15
Thanks. I do not believe that will work. openwrt uses udhcp.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Single DHCP server ,to provide the ip address to a MAC address in two different subne alix123 Linux - Software 5 05-08-2007 11:16 PM
Cannot assign a MAC address hicksy Linux - Networking 5 02-19-2007 01:37 PM
how to assign dhcp address? hank43 Linux - Networking 1 09-10-2006 02:46 AM
Configure DHCP server to assign IP using mac addr mayaLinux Linux - Networking 4 12-07-2005 05:00 PM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 AM


All times are GMT -5. The time now is 12:15 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration