About two ip address on client

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

About two ip address on client

Rogelio Guerra Riverón
Hi all

How can I assign more than one fixed ip to my dhcp server?

I have tried twice with the assignment, but it gives me an error

host userExample.azumat.azcuba.cu {
ethernet hardware 12: 12: 12: 12: 12: 12;
fixed-address
172.16.10.30
;
fixed-address
192.168.0.30
;
}

Feb 19 10:13:19 debDHCP dhcpd [4275]: /etc/dhcp/dhcpd.conf line 331: Only one fixed address declaration per host.
Feb 19 10:13:19 debDHCP dhcpd [4275]: fixed-address
192.168.0.130
;
 
Rogelio

______________________________

Empresa de Logistica Azumat
Garantía de la Producción Azucarera
______________________________

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

RE: About two ip address on client

Patrick Trapp

In my admittedly older installation of DHCP, I can make two host declarations for the same MAC, but the second address is the one that appears to be used. The first address is apparently ignored.

 

You might need to confirm in the documentation that what you seek is allowed.

 

From: dhcp-users <[hidden email]> On Behalf Of Rogelio Guerra Riverón
Sent: Tuesday, February 19, 2019 9:19 AM
To: [hidden email]
Subject: About two ip address on client

 

Hi all

How can I assign more than one fixed ip to my dhcp server?

I have tried twice with the assignment, but it gives me an error

host userExample.azumat.azcuba.cu {
ethernet hardware 12: 12: 12: 12: 12: 12;
fixed-address

172.16.10.30

;
fixed-address

192.168.0.30

;
}

Feb 19 10:13:19 debDHCP dhcpd [4275]: /etc/dhcp/dhcpd.conf line 331: Only one fixed address declaration per host.
Feb 19 10:13:19 debDHCP dhcpd [4275]: fixed-address

192.168.0.130

;

 

Rogelio


______________________________

Empresa de Logistica Azumat
Garantía de la Producción Azucarera
______________________________


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

RE: About two ip address on client

Friesen, Don MTIC:EX

 

   Are the two address on the same broadcast network?  You would need to assign them different dhcp-client-identifiers and have two host records for the same hardware using the two different identifiers to assign the two addresses to the sub-interfaces.  I haven’t done this for some time, so my info is also old.

 

 

Don Friesen

 

From: dhcp-users <[hidden email]> On Behalf Of Patrick Trapp
Sent: February 19, 2019 7:30 AM
To: Users of ISC DHCP <[hidden email]>
Subject: RE: About two ip address on client

 

In my admittedly older installation of DHCP, I can make two host declarations for the same MAC, but the second address is the one that appears to be used. The first address is apparently ignored.

 

You might need to confirm in the documentation that what you seek is allowed.

 

From: dhcp-users <[hidden email]> On Behalf Of Rogelio Guerra Riverón
Sent: Tuesday, February 19, 2019 9:19 AM
To: [hidden email]
Subject: About two ip address on client

 

Hi all

How can I assign more than one fixed ip to my dhcp server?

I have tried twice with the assignment, but it gives me an error

host userExample.azumat.azcuba.cu {
ethernet hardware 12: 12: 12: 12: 12: 12;
fixed-address

172.16.10.30

;
fixed-address

192.168.0.30

;
}

Feb 19 10:13:19 debDHCP dhcpd [4275]: /etc/dhcp/dhcpd.conf line 331: Only one fixed address declaration per host.
Feb 19 10:13:19 debDHCP dhcpd [4275]: fixed-address

192.168.0.130

;

 

Rogelio


______________________________

Empresa de Logistica Azumat
Garantía de la Producción Azucarera
______________________________


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: About two ip address on client

Niall O'Reilly
In reply to this post by Rogelio Guerra Riverón

On 19 Feb 2019, at 15:18, Rogelio Guerra Riverón wrote:

How can I assign more than one fixed ip to my dhcp server?

I'm not sure that what you're asking is what you mean.
The DHCP server itself should probably not have its address
assigned using DHCP, as that might involve a circular
dependency.

If what you mean is to ask how to configure your DHCP
server so that multiple fixed addresses are assigned to
one or more individual DHCP clients, then please read on.

Otherwise, I don't understand what you need.

I have tried twice with the assignment, but it gives me an error

host userExample.azumat.azcuba.cu {
ethernet hardware 12: 12: 12: 12: 12: 12;
fixed-address 

172.16.10.30

 ;
fixed-address 

192.168.0.30

 ;
}

I don't have a current need to do this, so I can't
offer you a known working example. Whenever I have
had to do this in the past, I seem to remember
using the trick shown below.

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;
}

What may be a surprise is that the name which follows
the 'host' keyword simply has to be unique within the
configuration, and need not be related to the host-name
by which the client is to be known on the network.

The desired host-name can always be configured using
the 'host-name' option.

I hope this helps.

Niall O'Reilly


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: About two ip address on client

Bill Shirley-2
In reply to this post by Patrick Trapp
What you want to use is:
host bert        { hardware ethernet 00:A0:C5:B6:7D:C9;    fixed-address 192.168.4.7, 192.168.6.7;    ddns-hostname "bert"; }

Bill

On 2/19/2019 10:29 AM, Patrick Trapp wrote:

In my admittedly older installation of DHCP, I can make two host declarations for the same MAC, but the second address is the one that appears to be used. The first address is apparently ignored.

 

You might need to confirm in the documentation that what you seek is allowed.

 

From: dhcp-users [hidden email] On Behalf Of Rogelio Guerra Riverón
Sent: Tuesday, February 19, 2019 9:19 AM
To: [hidden email]
Subject: About two ip address on client

 

Hi all

How can I assign more than one fixed ip to my dhcp server?

I have tried twice with the assignment, but it gives me an error

host userExample.azumat.azcuba.cu {
ethernet hardware 12: 12: 12: 12: 12: 12;
fixed-address

172.16.10.30

;
fixed-address

192.168.0.30

;
}

Feb 19 10:13:19 debDHCP dhcpd [4275]: /etc/dhcp/dhcpd.conf line 331: Only one fixed address declaration per host.
Feb 19 10:13:19 debDHCP dhcpd [4275]: fixed-address

192.168.0.130

;

 

Rogelio


______________________________

Empresa de Logistica Azumat
Garantía de la Producción Azucarera
______________________________


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users