Send dhcp-users mailing list submissions to
        dhcp-users@lists.isc.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.isc.org/mailman/listinfo/dhcp-users
or, via email, send a message with subject or body 'help' to
        dhcp-users-requ...@lists.isc.org

You can reach the person managing the list at
        dhcp-users-ow...@lists.isc.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of dhcp-users digest..."


Today's Topics:

   1. Re: Strange configuration problem (Petar Kozi?)
   2. Re: Strange configuration problem (Sten Carlsen)


----------------------------------------------------------------------

Message: 1
Date: Wed, 15 Jan 2020 09:30:07 +0100
From: Petar Kozi? <petar.ko...@mint.rs>
To: Users of ISC DHCP <dhcp-users@lists.isc.org>
Subject: Re: Strange configuration problem
Message-ID:
        <caa1-vmfoe3dmadyjg1xa1u1cgqikxjnheffdqxu8tr2ovex...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I tried this, but if I remove range from config, my virtual host can?t get
IP during boot.

When virtual machine boot and I log onto it I can see there is no IP
address assign. If I run dhclient command in virtua machine IP assigned.

Really strange problems with this dhcp server.



Thank you very much, I will try that.

On Tue, Jan 14, 2020, 18:50 Sten Carlsen <st...@s-carlsen.dk> wrote:

>
> On 14-01-2020 16.38, Petar Kozi? wrote:
>
>
> #
> # Subnet declarations
> #
> subnet 116.199.70.96 netmask 255.255.255.240 {
> default-lease-time 3600;
> option routers 116.199.70.97;
> option interface-mtu 1400;
> option subnet-mask 255.255.255.240;
> option broadcast-address 116.199.70.111;
> option domain-name-servers 8.8.8.8, 8.8.4.4;
> *range 116.199.70.98 116.199.70.110;*
> }
>
>
> ## IP reservation from first subnet ##
>
> host myhost1 {
> hardware ethernet FE:4A:DB:C0:BF:AD;
> *fixed-address 116.199.70.98;*
> }
> host myhost2 {
> hardware ethernet AA:6D:47:76:58:58;
> fixed-address 116.199.70.99;
> }
> host myhost3 {
> hardware ethernet 86:CB:59:8B:CD:BA;
> fixed-address 116.199.70.100;
> }
> host myhost4 {
> hardware ethernet D6:9R:79:44:93:AD;
> fixed-address 116.199.70.101;
> }
> host myhost5 {
> hardware ethernet 06:BW:15:DD:09:79;
> fixed-address 116.199.70.102;
> }
>
> These host statements have a fixed address that is in the range, that
> means that the server will hand these addresses out to any other device
> that asks for an address.
>
> Host statements with fixed addresses should normally have addresses
> outside any range, then the server will not be able to hand these addresses
> out to other devices.
>
>
> My problem is in that because the client in IP reservation sometimes gets
> reserved IP sometimes first free IP from range which isn't in the
> reservation list.
> I can't figure how to set this config to permanent stay on the same IP.
>
> For example if myhost1 gets the right IP and that VM works about 10 days
> and I need to reboot for some reason after reboot get another IP, that is
> weird.
> Or on an example I have baremetal server where I have virtualization and
> there is my VM from myhost1 to myhost8, if I reboot baremetal after
> booting, two VM get right IP, other not.
>
> What wrong am I doing?
> Thank you.
>
>
> *?*
>
> *Petar Kozi?*
>
>
> _______________________________________________
> dhcp-users mailing 
> listdhcp-us...@lists.isc.orghttps://lists.isc.org/mailman/listinfo/dhcp-users
>
> --
> Best regards
>
> Sten Carlsen
>
> No improvements come from shouting:
>
> "MALE BOVINE MANURE!!!"
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.isc.org/pipermail/dhcp-users/attachments/20200115/39034904/attachment-0001.htm>

------------------------------

Message: 2
Date: Wed, 15 Jan 2020 11:33:15 +0100
From: Sten Carlsen <st...@s-carlsen.dk>
To: dhcp-users@lists.isc.org
Subject: Re: Strange configuration problem
Message-ID: <7f8755c5-9507-3b0e-56f8-cc47c93ba...@s-carlsen.dk>
Content-Type: text/plain; charset="utf-8"


On 15-01-2020 09.30, Petar Kozi? wrote:
>
> I tried this, but if I remove range from config, my virtual host can?t
> get IP during boot.

The point is not to remove the range but to set the fixed addresses
outside the range. Addresses in the range will be handed out as you
describe, the server will not see those as reserved but as available for
use.

...

range 116.199.70.98 116.199.70.*110*;

...

host myhost1 {
hardware ethernet FE:4A:DB:C0:BF:AD;
fixed-address 116.199.70.*111*;
}

...

There is another method, leases can be marked as reserved for a specific
host. This is done in a different way, using Omapi. Check the man page.


>
> When virtual machine boot and I log onto it I can see there is no IP
> address assign. If I run dhclient command in virtua machine IP assigned.
>
> Really strange problems with this dhcp server.
>
>
>
>> Thank you very much, I will try that.
>>
>> On Tue, Jan 14, 2020, 18:50 Sten Carlsen <st...@s-carlsen.dk
>> <mailto:st...@s-carlsen.dk>> wrote:
>>
>>
>>     On 14-01-2020 16.38, Petar Kozi? wrote:
>>>
>>>     #
>>>     # Subnet declarations
>>>     #
>>>     subnet 116.199.70.96 netmask 255.255.255.240 {
>>>     default-lease-time 3600;
>>>     option routers 116.199.70.97;
>>>     option interface-mtu 1400;
>>>     option subnet-mask 255.255.255.240;
>>>     option broadcast-address 116.199.70.111;
>>>     option domain-name-servers 8.8.8.8, 8.8.4.4;
>>>     *range 116.199.70.98 116.199.70.110;*
>>>     }
>>>
>>>
>>>     ## IP reservation from first subnet ##
>>>
>>>     host myhost1 {
>>>     hardware ethernet FE:4A:DB:C0:BF:AD;
>>>     *fixed-address 116.199.70.98;*
>>>     }
>>>     host myhost2 {
>>>     hardware ethernet AA:6D:47:76:58:58;
>>>     fixed-address 116.199.70.99;
>>>     }
>>>     host myhost3 {
>>>     hardware ethernet 86:CB:59:8B:CD:BA;
>>>     fixed-address 116.199.70.100;
>>>     }
>>>     host myhost4 {
>>>     hardware ethernet D6:9R:79:44:93:AD;
>>>     fixed-address 116.199.70.101;
>>>     }
>>>     host myhost5 {
>>>     hardware ethernet 06:BW:15:DD:09:79;
>>>     fixed-address 116.199.70.102;
>>>     }
>>
>>     These host statements have a fixed address that is in the range,
>>     that means that the server will hand these addresses out to any
>>     other device that asks for an address.
>>
>>     Host statements with fixed addresses should normally have
>>     addresses outside any range, then the server will not be able to
>>     hand these addresses out to other devices.
>>
>>>
>>>     My problem is in that because the client in IP reservation
>>>     sometimes gets reserved IP sometimes first free IP from range
>>>     which isn't in the reservation list.
>>>     I can't figure how to set this config to permanent stay on the
>>>     same IP.
>>>
>>>     For example if myhost1 gets the right IP and that VM works about
>>>     10 days and I need to reboot for some reason after reboot get
>>>     another IP, that is weird.
>>>     Or on an example I have baremetal server where I have
>>>     virtualization and there is my VM from myhost1 to myhost8, if I
>>>     reboot baremetal after booting, two VM get right IP, other not.
>>>
>>>     What wrong am I doing?
>>>     Thank you.
>>>
>>>
>>>     *?*
>>>     *
>>>     *
>>>     *Petar Kozi?*
>>>
>>>
>>>     _______________________________________________
>>>     dhcp-users mailing list
>>>     dhcp-users@lists.isc.org <mailto:dhcp-users@lists.isc.org>
>>>     https://lists.isc.org/mailman/listinfo/dhcp-users
>>
>>     --  
>>     Best regards
>>
>>     Sten Carlsen
>>
>>     No improvements come from shouting:
>>
>>     "MALE BOVINE MANURE!!!" 
>>
>>     _______________________________________________
>>     dhcp-users mailing list
>>     dhcp-users@lists.isc.org <mailto:dhcp-users@lists.isc.org>
>>     https://lists.isc.org/mailman/listinfo/dhcp-users
>>
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users

-- 
Best regards

Sten Carlsen

No improvements come from shouting:

"MALE BOVINE MANURE!!!" 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.isc.org/pipermail/dhcp-users/attachments/20200115/2364ace8/attachment.htm>

------------------------------

Subject: Digest Footer

_______________________________________________
dhcp-users mailing list
dhcp-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users


------------------------------

End of dhcp-users Digest, Vol 135, Issue 7
******************************************

Reply via email to