Is there any way to have a built in alias (per interface) of all DHCP IPs?



  • Is there any way to have an alias made per interface for every IP registered in the DHCP server?
    Including anything that was static or dynamically assigned that would update as leases are created or expire?

    I was thinking along the lines of something like DHCP_LAN being an autogenerated alias.



  • Would an alias matching the DHCP scope be enough? Or is that too much or too little for what you are trying to achieve?


  • Netgate

    If you create your DHCP pools on subnet boundaries you can do the same thing with simple network aliases.

    No, there's nothing like this currently nor in any future versions, as far as I know.



  • @jonesr:

    Would an alias matching the DHCP scope be enough? Or is that too much or too little for what you are trying to achieve?

    No, the idea I was thinking was to put a block rule against anything not that alias, such that machines that were connected with a static IP that wasn't registered to DHCP wouldn't be able to get out of the LAN.


  • Netgate

    So put a block rule for anything not that alias.



  • @Derelict:

    So put a block rule for anything not that alias.

    Yes.
    But I was asking if there was any way to automatically create and maintain that alias, not about the rule I intend to use it in.

    If it's not, then oh well.  Was just a thought.