LinuxQuestions.org
Help answer threads with 0 replies.
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 04-09-2010, 02:22 PM   #1
newk
LQ Newbie
 
Registered: Sep 2009
Posts: 20

Rep: Reputation: 0
DHCP doesn't provide fixed addresses


Please, help solve the following trouble:

Ubuntu LTS 8.04 + DHCP. Works fine except for fixed addresses. I mean all devices which need to get fixed IP according to their MACs don't get them and keep to receive random IPs from the range (although almost everytime all machines receive the same IP they got from DHCP for the first time). The following config was created by Webmin interface.

ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
subnet 10.0.0.0 netmask 255.255.255.0 {
authoritative;
default-lease-time 259200;
max-lease-time 259200;
option netbios-name-servers 10.0.0.2;
option domain-name-servers 10.0.0.2;
option broadcast-address 10.0.0.255;
option subnet-mask 255.255.255.0;
option routers 10.0.0.1;
range 10.0.0.100 10.0.0.199;

# myacer
host acer {
hardware ethernet 00:163:E0:89:46;
fixed-address 10.0.0.77;
}
}

At the one of the ubuntu forums i was advised to carry host description out of the subnet description. I tried but it didn't help.

Thank you very much in advance
 
Old 04-09-2010, 02:43 PM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , Solaris 10, RHEL
Posts: 1,935
Blog Entries: 1

Rep: Reputation: 188Reputation: 188
Quote:
Originally Posted by newk View Post
Please, help solve the following trouble:

Ubuntu LTS 8.04 + DHCP. Works fine except for fixed addresses. I mean all devices which need to get fixed IP according to their MACs don't get them and keep to receive random IPs from the range (although almost everytime all machines receive the same IP they got from DHCP for the first time). The following config was created by Webmin interface.

ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
subnet 10.0.0.0 netmask 255.255.255.0 {
authoritative;
default-lease-time 259200;
max-lease-time 259200;
option netbios-name-servers 10.0.0.2;
option domain-name-servers 10.0.0.2;
option broadcast-address 10.0.0.255;
option subnet-mask 255.255.255.0;
option routers 10.0.0.1;
range 10.0.0.100 10.0.0.199;

# myacer
host acer {
hardware ethernet 00:163:E0:89:46;
fixed-address 10.0.0.77;
}
}

At the one of the ubuntu forums i was advised to carry host description out of the subnet description. I tried but it didn't help.

Thank you very much in advance
First off...code tags would be helpful

Maybe try adding "pool"...

Code:
subnet 10.0.0.0 netmask 255.255.255.0 
pool {
authoritative;
default-lease-time 259200;
max-lease-time 259200;
option netbios-name-servers 10.0.0.2;
option domain-name-servers 10.0.0.2;
option broadcast-address 10.0.0.255;
option subnet-mask 255.255.255.0;
option routers 10.0.0.1;
range 10.0.0.100 10.0.0.199;
}
}
Or something like that...
 
  


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
dhcp wants to provide two different NIC cards sajina Linux - Networking 1 04-02-2009 09:35 AM
Network Manager and Fixed IP addresses Russ Linux - Wireless Networking 1 02-03-2008 12:17 AM
Fixed IP Address with DHCP dgreenbean Linux - Networking 9 09-19-2004 01:12 PM
why linux DHCP provide reverse ip address to itd node? arpit Linux - Networking 0 05-30-2004 02:51 AM
Changing dhcp ip -> fixed ip Lakani Linux - Networking 0 05-05-2004 05:32 AM


All times are GMT -5. The time now is 07:04 PM.

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