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

    [SOLVED] Need to ignore DHCP offered default gateway

    Scheduled Pinned Locked Moved DHCP and DNS
    2 Posts 1 Posters 608 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.
    • awebsterA
      awebster
      last edited by awebster

      Scenario: pfSense is acting as a proxy between two networks, and for initial deployment, I need both LAN and WAN to be DHCP clients, but I only want to use the default gateway from the WAN side.

      Is there any way to tell the DHCP agent on LAN i/f to ignore the default gateway (and DNS servers) offered by the DHCP server?

      –A.

      1 Reply Last reply Reply Quote 0
      • awebsterA
        awebster
        last edited by

        Replying to myself so that others can benefit...

        Check Advanced Configuration under DHCP Client Configuration
        In the Lease Requirements and Requests section, set the following Request options
        subnet-mask, broadcast-address, time-offset, domain-name, domain-name-servers, interface-mtu
        I specifically left out the Request option routers so the Lease request will not contain that information, and therefore no default gateway will be received and used.

        –A.

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