Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #264825

Re: dhcpd.conf Q?

From gene heskett <gheskett@shentel.net>
Newsgroups linux.debian.user
Subject Re: dhcpd.conf Q?
Date 2023-12-16 18:20 +0100
Message-ID <HLGuu-e10U-7@gated-at.bofh.it> (permalink)
References <HLF5n-dZZq-11@gated-at.bofh.it> <HLFoK-e0lr-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 12/16/23 11:41, Andy Smith wrote:
> Hello,
> 
> On Sat, Dec 16, 2023 at 10:42:33AM -0500, gene heskett wrote:
>> Persuant to the dhcpd discussion, I have install a local isc-dhpd-server. I
>> setup a $20 wide block, starting at 192.168.71.100
> 
> I'm going to take a guess that you mean your pool is from .100 to
> .119 (or .120?) as I've never in my life heard or seen the phrase "a
> $20 wide block".
> 
Actually I was thinking in hex when I wrote that, what I meant was 20 
addresses in the pool.
>> then setup 3 host entries. I have it working but apparently I need some
>> clarification as a status request gets me a squawk about the host paragraph
>> that is actually working:
>> -------------------
>> Dec 16 09:47:16 coyote dhcpd[1895]: Dynamic and static leases present for
>> 192.168.71.110.
> 
> It just means that you have a declaration for 192.168.71.110 while
> also having a dynamic range that includes 192.168.71.110. dhcpd will
> generally know it has assigned 192.168.71.110 already and not hand
> it out when asked, so this is just a warning, but it is better
> fixed.
> 
I have now changed the printer phrase of the host definition to it 
hostname, mkspi, and moved that fixed-address out of the pool 
declaration. Also declared the domainname at the top and it is happy.
But it does an exit stage w/o logging any reason if I uncomment the next 
host definition, shown as a copy/paste here:
subnet 192.168.71.0 netmask 255.255.255.0 {
         range 192.168.71.100 192.168.71.120;
         option routers 192.168.71.1;
         option domain-name-servers 192.168.71.1;
}
host mkspi {
         hardware ethernet 5a:c1:f0:8b:00:54;
         fixed-address 192.168.71.121;
}
#host e5plus {
#       hardware ethernet 5a:c1:f0:8b:00:55;
#       fixed-address 192.168.71.122;
#}
#host tronxy {
#       hardware ethernet 5a:c1:f0:8b:00:56;
#       fixed-address 192.168.71,123;
#}
------------------
I get the impression I can have an unlimited number of "host" paragraphs 
as long as there is not an actual clash in the addresses or macs? Aha! 
slightly larger font in the paste and I now see a , where a . s/b fixing 
that fixed it. I use nano a lot, but it could use a larger font for 
these ancient eyeballs. So now I know how to add fixed-address use to 
dhcpd.conf.  Problem solve although I may have to do more editing to the 
hosts file eventually.  Thank you for your patience.
>> Q#1:Is this telling me I should move that mac's assignment to .90 or .121,
>> out of that "pool" from $100 to $120? Or move the pool so 110 does clash
>> with it?
> 
> Whichever you prefer. Just don't have static assignments that use
> IPs from a range you hand out dynamically.
> 
>> Q#2: can the current phrase host "printer" be replaced by the alias in the
>> servers /etc/hosts file?
> 
> I don't understand the question, sorry. You can call your hosts
> whatever you like.
> 
> Show us the "host" block you have now and what you would like it
> to be, if you want to ask questions about it, but I don't see what
> issue it will make to call it whatever.
> 
>> is it safe in a closed environment to use the same mac string in a
>> host description by just incrementing the last hex byte of the
>> dummy mac and the last .nnn of the address assigned?
> 
> You already made a choice as to what MAC address to use, so I fail
> to see what relevance DHCP has here. Once you've decided what MAC
> address you're setting, use that and put it in DHCP. Or are you
> asking what MAC addresses are safe for you to use, generally?
> 
> Locally Administered MAC address ranges are any of:
> 
>      X2‑XX-XX-XX-XX-XX
>      X6‑XX-XX-XX-XX-XX
>      XA‑XX-XX-XX-XX-XX
>      XE‑XX-XX-XX-XX-XX
> 
> where X can be any hex value.
> 
> Thanks,
> Andy
> 

Cheers, Gene Heskett.
-- 
"There are four boxes to be used in defense of liberty:
  soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
  - Louis D. Brandeis

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

dhcpd.conf Q? gene heskett <gheskett@shentel.net> - 2023-12-16 16:50 +0100
  Re: dhcpd.conf Q? Andy Smith <andy@strugglers.net> - 2023-12-16 17:10 +0100
    Re: dhcpd.conf Q? gene heskett <gheskett@shentel.net> - 2023-12-16 18:20 +0100
      Re: dhcpd.conf Q? debian-user@howorth.org.uk - 2023-12-16 19:20 +0100
        Re: dhcpd.conf Q? gene heskett <gheskett@shentel.net> - 2023-12-16 20:30 +0100
          Re: dhcpd.conf Q? David Wright <deblis@lionunicorn.co.uk> - 2023-12-17 06:20 +0100
      Re: dhcpd.conf Q? Andy Smith <andy@strugglers.net> - 2023-12-16 19:40 +0100

csiph-web