Using Class to have ip address on unknown network segments

Teva A-T tevaat at gmail.com
Fri Feb 20 02:39:39 UTC 2015


Greetings,

I'm trying to use class to provide ip address to LTE customers which is on
a network segment unknown by the dhcpd server.

Here below what i can see when my LTE customers is sending its DHCP
Discover :

dhcpd: DHCPDISCOVER from 50:00:00:00:00:04 via 10.9.0.4: unknown network
segment

So indeed, 10.9.0.0 is not a network segment known by the dhcpd. 10.9.0.4
is just a relay agent, and what i want is to provide to my LTE cust an ip
in subnet 172.16.192.0/19. For that, i thought that i could use class, and
then allow members of this class to get an ip, even if the network segment
is unknown.

Here below my dhcpd.conf:


class "lte" {
#       match if packet(24,4) = 10:09:00:04;
#       match if (substring(hardware,0,1) = 01:50);
#       match if (binary-to-ascii(16,8,":",substring(hardware, 0, 4)) =
"1:5:0:0");
#       match if (option dhcp-client-identifier =
"(521020000000004:test1.mnc002.mcc521.gprs");
#       match if (option dhcp-client-identifier =
3d:28:35:34:37:30:35:30:30:30:30:30:30:30:30:30:34:3a:74:65:73:74:31:2e:6d:6e:63:30:30:35:2e:6d:63:63:35:34:37:2e:67:70:72:73);
#        match if (option
agent.circuit-id="521020000000004:test1.mnc002.mcc521.gprs");
            }



shared-network lte-cust {

    option domain-name-servers  1.1.1.1,2.2.2.2;
    default-lease-time 360;
    max-lease-time 360;

         subnet 172.16.192.0 netmask 255.255.224.0 {
                option routers                  172.16.192.254;
                option subnet-mask              255.255.224.0;
                option broadcast-address        172.16.255.255;
                }



         pool {
                allow members of "lte";
                range 172.16.192.1 172.16.192.255;

             }

}

So i tried all match mentioned in the class "lte" in the comment (i've
tried it one by one, uncommented one, restart service, test to get an ip,
etc...).

I tried all option tested below, but so far none of its worked.

Can someone could tell me what's wrong in my class definition ? I'm still
investigating about options i can use...


thanks in advance all for your support :)

Cheers,

Teva
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20150219/f80b27d5/attachment.html>


More information about the dhcp-users mailing list