<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 19 Feb 2019, at 15:18, Rogelio Guerra Riverón wrote:</p>

<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px">
<p dir="auto">How can I assign more than one fixed ip to my dhcp server?</p>
</blockquote>

<p dir="auto">I'm not sure that what you're asking is what you mean.<br>
The DHCP server itself should probably not have its address<br>
assigned using DHCP, as that might involve a circular<br>
dependency.</p>

<p dir="auto">If what you mean is to ask how to configure your DHCP<br>
server so that multiple fixed addresses are assigned to<br>
one or more individual DHCP clients, then please read on.</p>

<p dir="auto">Otherwise, I don't understand what you need.</p>

<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px">
<p dir="auto">I have tried twice with the assignment, but it gives me an error</p>

<p dir="auto">host userExample.azumat.azcuba.cu {<br>
ethernet hardware 12: 12: 12: 12: 12: 12;<br>
fixed-address </p>

<p dir="auto">172.16.10.30</p>

<p dir="auto"> ;<br>
fixed-address </p>

<p dir="auto">192.168.0.30</p>

<p dir="auto"> ;<br>
}</p>
</blockquote>

<p dir="auto">I don't have a current need to do this, so I can't<br>
offer you a known working example.  Whenever I have <br>
had to do this in the past, I seem to remember <br>
using the trick shown below.</p>

<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">host frogbert {
    option host-name "frogbert.example.com";
    fixed-address 10.0.0.2;
    hardware ethernet 00:50:da:1f:42:1c;
}

host frogbert-bis {
    option host-name "frogbert.example.com";
    fixed-address 193.168.0.2;
    hardware ethernet 00:50:da:1f:42:1c;
}
</code></pre>

<p dir="auto">What may be a surprise is that the name which follows<br>
the 'host' keyword simply has to be unique within the<br>
configuration, and need not be related to the host-name<br>
by which the client is to be known on the network.<br><br>
The desired host-name can always be configured using <br>
the 'host-name' option.</p>

<p dir="auto">I hope this helps.</p>

<p dir="auto">Niall O'Reilly</p>
</div>
</div>
</body>
</html>