LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
Thread Tools
Old 11-08-2009, 12:33 AM   #1
blackzero
LQ Newbie
 
Registered: Oct 2009
Distribution: Debian, Redhat
Posts: 8
Thanked: 0
dnsmasq dhcp-host directive doenst


[Log in to get rid of this advertisement]
hello everybody

im using dnsmasq for dns forwarding and dhcp server.
currently, i use the dhcp-host directive to attibute static ip over dhcp to an specified mac address

here's cat /etc/dnsmasq.conf output

Quote:
# dns configurations
#------------------------------------
domain=highfsb.lan
no-hosts
expand-hosts
all-servers
dns-forward-max=9000
cache-size=0

# dhcp configurations
#------------------------------------
dhcp-authoritative
dhcp-range=172.28.4.0,172.28.15.254,255.255.240.0,21d
dhcp-option=44,172.28.0.2
dhcp-option=3,172.28.0.1
dhcp-option=69,172.28.0.8
dhcp-option=4,172.28.0.2
dhcp-option=6,172.28.0.2,172.28.0.1

# static dhcp leases
#------------------------------------
dhcp-host=00:1a:70:14:a2:e6,172.28.0.2
dhcp-host=00:1d:60:95:c8:5f,172.28.0.3
dhcp-host=00:22:b0:62:33:4b,172.28.0.4
dhcp-host=00:24:8c:3d:4a:c5,172.28.0.5
dhcp-host=00:22:48:0e:4e:90,172.28.0.6
i restarted dnsmasq and nothing. all the static leases works,except for mac address 00:22:b0:62:33:4b. i got 172.28.4.178 instead of 172.28.0.4

i rebooted my box, rebooted dnsmasq w/ no the expecting results, but i remember that i used that nic (00:22:b0:62:33:4b) on my linux box a few weeks ago.

any ideas?
thx in advance

blackzero
windows_xp_2003 blackzero is offline     Reply With Quote
Old 11-17-2009, 06:37 AM   #2
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 3,599
Blog Entries: 9
Thanked: 45
1st, in American & British English 'I' indicting yourself is capitalized, please be polite & follow the LQ rules which call for American or British English. Thanks.

Quote:
Originally Posted by blackzero View Post
i restarted dnsmasq and nothing. all the static leases works,except for mac address 00:22:b0:62:33:4b. i got 172.28.4.178 instead of 172.28.0.4
How did you restart dnsmasq?


Quote:
Originally Posted by blackzero View Post
i rebooted my box,
Which one? -- The DHCP (dnsmasq) server, or the target using the the NIC w/ MAC 00:22:b0:62:33:4b?


Quote:
Originally Posted by blackzero View Post
rebooted dnsmasq w/ no the expecting results,
The server running dnsmasq, or did you restart the s/w itself?


Quote:
Originally Posted by blackzero View Post
but i remember that i used that nic (00:22:b0:62:33:4b) on my linux box a few weeks ago.
Why do yo you mention this? Do you remember the IP address assigned to your Linux box at the time?
linuxdebian archtoad6 is online now     Reply With Quote
Old Yesterday, 06:37 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 3,599
Blog Entries: 9
Thanked: 45
Well . . . ?
linuxdebian archtoad6 is online now     Reply With Quote
Unread Today, 05:29 AM   #4
blackzero
LQ Newbie
 
Registered: Oct 2009
Distribution: Debian, Redhat
Posts: 8
Thanked: 0

Original Poster
I'm sorry about the huge delay but my isp was down!! I fixed the problem by myself. Thx anyway
windows_98_nt_2000 blackzero is offline     Reply With Quote
Unread Today, 07:48 AM   #5
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 3,599
Blog Entries: 9
Thanked: 45
Please share the answer w/ those who might have the same problem.
linuxdebian archtoad6 is online now     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Problem with dnsmasq. DHCP not working zhjim Linux - Software 7 02-09-2009 10:26 AM
LXer: Enhance your DNS and DHCP services with dnsmasq LXer Syndicated Linux News 0 10-04-2008 07:50 AM
dnsmasq dhcp not working danwald79 Linux - Networking 1 02-01-2008 10:34 AM
routing with dhcp dnsmasq /y0shi Slackware 12 11-19-2007 03:39 PM
dnsmasq: no dhcp ryerke Slackware 8 06-03-2007 07:29 PM


All times are GMT -5. The time now is 07:51 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration