make dhcpd assign two addresses

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

make dhcpd assign two addresses

Eugene M. Zheganin
Hi,

I need to assign two IPv6 addresses in my network - one
private/local-unique and one public to each requesting client. So far
I'm successful in assigning only one. There's a message from 2010 under
the subject "
How to config dhcpv6 server to assign multiple subnet address", and the
reply mentions that the 'shared network {}' clause should be used, and
two prefix-separated pool should be configured. I did that, but still my
clients (at least my FreeBSD with dhcp6c) receives only one address. So
I want to ask - who's opinion is valued the most, and who makes the
decision about multiple IPv6 addresses ? The client or the assigning
server ?

I'm using the isc-dhcpd 4.3.4 server and main part of my config looks like:

shared-network foobar {
     limit-addrs-per-ia 2;
     subnet6 fd00::500/120 {
         range6 fd00::500/120;
         option dhcp6.name-servers fd00::1;
     }
     subnet6 2a02:XXXX:40::500/120 {
         range6 2a02:XXXX:40::500/120;
         option dhcp6.name-servers fd00::1;
     }
}

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

Re: make dhcpd assign two addresses

Bob Harold

On Tue, Feb 14, 2017 at 11:26 AM, Eugene M. Zheganin <[hidden email]> wrote:
Hi,

I need to assign two IPv6 addresses in my network - one private/local-unique and one public to each requesting client. So far I'm successful in assigning only one. There's a message from 2010 under the subject "
How to config dhcpv6 server to assign multiple subnet address", and the reply mentions that the 'shared network {}' clause should be used, and two prefix-separated pool should be configured. I did that, but still my clients (at least my FreeBSD with dhcp6c) receives only one address. So I want to ask - who's opinion is valued the most, and who makes the decision about multiple IPv6 addresses ? The client or the assigning server ?

I'm using the isc-dhcpd 4.3.4 server and main part of my config looks like:

shared-network foobar {
    limit-addrs-per-ia 2;
    subnet6 fd00::500/120 {
        range6 fd00::500/120;
        option dhcp6.name-servers fd00::1;
    }
    subnet6 2a02:XXXX:40::500/120 {
        range6 2a02:XXXX:40::500/120;
        option dhcp6.name-servers fd00::1;
    }
}

Thanks.
Eugene.

 The article is probably showing how to use two different subnets in the same VLAN.  The DHCP server will assign an IP from either range.

I do not think there is any way to tell a DHCP server to hand out more than one IP to a client, or to tell the client to ask for more than one IP on a given interface.
I think you might need to re-design your network.

-- 
Bob Harold


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

Re: make dhcpd assign two addresses

Henri Wahl
> I do not think there is any way to tell a DHCP server to hand out more
> than one IP to a client, or to tell the client to ask for more than one
> IP on a given interface.
> I think you might need to re-design your network.
>

DHCPv6 allows that a server gives several addresses to clients. Problem
is on the client side where all OS treat this differently. Windows since
Vista takes them, macOS doesn't until today and Linux (or dhclient)
should take them all too meanwhile. I do not know about FreeBSD in this
field.

For us problem was the server side so we wrote our own DHCPv6 server.
See https://dhcpy6d.ifw-dresden.de - dhcpy6d serves multiple addresses
to clients for years now in exactly such an ULA/GUA setup.

Regards

--
Henri Wahl

IT Department
Leibniz-Institut fuer Festkoerper- u.
Werkstoffforschung Dresden

tel: +49 (3 51) 46 59 - 797
email: [hidden email]
https://www.ifw-dresden.de

Nagios status monitor Nagstamon: https://nagstamon.ifw-dresden.de

DHCPv6 server dhcpy6d: https://dhcpy6d.ifw-dresden.de

S/MIME: https://nagstamon.ifw-dresden.de/pubkeys/smime.pem
PGP: https://nagstamon.ifw-dresden.de/pubkeys/pgp.asc

IFW Dresden e.V., Helmholtzstrasse 20, D-01069 Dresden
VR Dresden Nr. 1369
Vorstand: Prof. Dr. Burkard Hillebrands, Dr. Doreen Kirmse

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

0x83E6CEC2.asc (3K) Download Attachment
signature.asc (836 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: make dhcpd assign two addresses

Bob Harold

On Thu, Feb 23, 2017 at 11:53 AM, Henri Wahl <[hidden email]> wrote:
> I do not think there is any way to tell a DHCP server to hand out more
> than one IP to a client, or to tell the client to ask for more than one
> IP on a given interface.
> I think you might need to re-design your network.
>

DHCPv6 allows that a server gives several addresses to clients. Problem
is on the client side where all OS treat this differently. Windows since
Vista takes them, macOS doesn't until today and Linux (or dhclient)
should take them all too meanwhile. I do not know about FreeBSD in this
field.

For us problem was the server side so we wrote our own DHCPv6 server.
See https://dhcpy6d.ifw-dresden.de - dhcpy6d serves multiple addresses
to clients for years now in exactly such an ULA/GUA setup.

Regards

--
Henri Wahl

IT Department
Leibniz-Institut fuer Festkoerper- u.
Werkstoffforschung Dresden

tel: <a href="tel:%2B49%20%283%2051%29%2046%2059%20-%20797" value="+493514659797">+49 (3 51) 46 59 - 797
email: [hidden email]
https://www.ifw-dresden.de

Nagios status monitor Nagstamon: https://nagstamon.ifw-dresden.de

DHCPv6 server dhcpy6d: https://dhcpy6d.ifw-dresden.de

S/MIME: https://nagstamon.ifw-dresden.de/pubkeys/smime.pem
PGP: https://nagstamon.ifw-dresden.de/pubkeys/pgp.asc

IFW Dresden e.V., Helmholtzstrasse 20, D-01069 Dresden
VR Dresden Nr. 1369
Vorstand: Prof. Dr. Burkard Hillebrands, Dr. Doreen Kirmse



Thanks for explaining that.  I have not used DHCPv6 yet, so I was assuming it acted like DHCPv4.  My mistake.

-- 
Bob Harold



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