Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Custom settings in dhcpd.conf

    Scheduled Pinned Locked Moved DHCP and DNS
    2 Posts 1 Posters 2.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      CAHiTechRedNeck
      last edited by

      I'm looking to find out if anyone has had trouble making custom entries directly in dhcpd.conf…

      here's my situation: I was using ubuntu 12.4LTS as a router/DHCP server... my brother turned me onto pfSense and I've enjoyed it so far... I've got 30 PCs and 30 VOIP phones in my office... on my unbuntu box, I ran the following settings in dhcpd.conf:

      _ddns-update-style none;

      optional definitions common to all supported networks

      default-lease-time 3600;
      max-lease-time 7200;

      official DHCP server for LAN

      authoritative;

      keep a local log, can redirect log from here also

      log-facility local7;

      match the MAC addresses of our VoIP phones

      class “polycom” { match if substring (hardware,1,3) = 00:42:f2; } # polycom
      class “aastra” { match if substring (hardware,1,3) = 00:08:5d; } # aastra

      setup shared network and DHCP ranges for each subnet

      Shared-network pc-phone-net {

      subnet declaration for the VoIP phones

      subnet 192.168.1.0 netmask 255.255.255.0 {
      pool {
      range 192.168.1.20 192.168.1.200;
      allow members of “polycom”;
      allow members of “aastra”;
      }
      option domain-name-servers 8.8.8.8,8.8.4.4;
      option broadcast-address 192.168.1.255;
      option subnet-mask 255.255.255.0;
      }

      subnet declaration for the PCs

      subnet 192.168.5.0 netmask 255.255.255.0 {
      pool {
      range 192.168.5.20 192.168.5.200;
      deny members of “polycom”;
      deny members of “aastra”;
      }
      option domain-name “domain.com”;
      option routers 192.168.5.1;
      option domain-name-servers 8.8.8.8,8.8.4.4,192.168.5.1;
      option broadcast-address 192.168.5.255;
      option subnet-mask 255.255.255.0;
      }
      }_

      so, what this all did was force my VOIP phones to one DHCP/network and allowed my PCs to connect to the other… it was a good option since not all my equipment didn't allow for VLAN IDs...

      can anyone think why I can't put this into the dhcpd.conf in pfSense?

      thanks

      1 Reply Last reply Reply Quote 0
      • C
        CAHiTechRedNeck
        last edited by

        ok, no one has an opinion or experience with this… I guess I'll try it and report if it works or not... :-\

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.