Routing

Expand all | Collapse all

Adding additional networks to a dhcp pool

Jump to Best Answer
  • 1.  Adding additional networks to a dhcp pool

    Posted 12-09-2020 10:35
    I have successfully built a DHCP pool in an ACX 2200 router using vlan 1100 and using the 10.10.57.1/24 subnet. We have now reached the client capacity and I want to add additional subnets. It appears if I change the network from 10.10.57.1/24 to 10.10.57.1/23 and then change the low and high values in the range to match that would solve my problem but what if I wanted to use a different subnet like 10.10.99.1/24 on the same vlan? I set up a second network on a different vlan successfully but I would like to use the same vlan interface. I have searched documentation but I can't find an example configuration with two networks under one pool. I tried setting up 2 pools under the vlan interface but it did not work. Any suggestions would be appreciated. Thank you. the first config is the working set up and the second is the attempt to set up 2 pools under one vlan interface.

    One pool :

    description V1100-LSAN-FTTX-DHCP;
    vlan-id 1100;
    family inet {
    sampling {
    input;
    }
    address 10.10.57.1/24;

    pool V1100-CGNAT-LSAN-FTTD {
    family inet {
    network 10.10.57.0/24;
    range V1100-DHCP-Pool1 {
    low 10.10.57.2;
    high 10.10.57.253;
    }
    dhcp-attributes {
    maximum-lease-time 86400;
    server-identifier 10.10.57.1;
    name-server {
    8.8.8.8;
    }
    router {
    10.10.27.1;
    }
    }
    }
    }


    Attempt at adding a second pool:

    description V1100-LSAN-FTTX-DHCP;
    vlan-id 1100;
    family inet {
    sampling {
    input;
    }
    address 10.10.57.1/24;
    address 10.10.99.1/24;


    pool V1100-CGNAT-LSAN-FTTD {
    family inet {
    network 10.10.57.0/24;
    range V1100-DHCP-Pool1 {
    low 10.10.57.2;
    high 10.10.57.253;
    }
    dhcp-attributes {
    maximum-lease-time 86400;
    server-identifier 10.10.57.1;
    name-server {
    8.8.8.8;
    }
    router {
    10.10.27.1;
    }
    }
    }
    }


    pool V1100-CGNAT-LSAN-FTTD2 {
    family inet {
    network 10.10.99.0/24;
    range V1100-DHCP-Pool2 {
    low 10.10.99.2;
    high 10.10.99.253;
    }
    dhcp-attributes {
    maximum-lease-time 86400;
    server-identifier 10.10.99.1;
    name-server {
    8.8.8.8;
    }
    router {
    10.10.99.1;
    }
    }
    }
    }


  • 2.  RE: Adding additional networks to a dhcp pool
    Best Answer

    Posted 12-10-2020 08:40
    You can use the "link" configuration statement to chain different address pools whether the IPs are contiguous or not.  For your scenario, you'd want to add:

    set access address-assignment pool V1100-CGNAT-LSAN-FTTD link V1100-CGNAT-LSAN-FTTD2


    Were you ever to configure another pool (i.e. FTTD3), you can continue the chain by linking FTTD3 it to FTTD2 and so on.



    ------------------------------
    Jordan Head
    Resident Engineer - Sr. Staff
    JNCIEx3 (SP|DC|ENT)
    ------------------------------



  • 3.  RE: Adding additional networks to a dhcp pool

    Posted 12-10-2020 10:27
    Thank you for the information I implemented the change and it solved my problem.