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

    LAN +opt DHCP, always get ip from opt

    Scheduled Pinned Locked Moved DHCP and DNS
    3 Posts 2 Posters 1.6k 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.
    • J
      josey
      last edited by

      i have
      DHCP on LAN with checked "deny unknown clients"
      and list of computers with mac addresses, ip, host names  …

      OPT with enabled DHCP unchecked "deny unknown clients"

      the idea was that computers listed into LAN dhcp always get same IP, and all other computers that are not listed in LAN dhcp, got ip from opt interface, but, no matter what, computer that is listed into LAN dhcp (mac, ip, hostname) dont pick up ip from lan, it pick it up from OPT.
      when turn of dhcp on opt or disable opt, than works perfect.

      do you know where is the catch ?

      1 Reply Last reply Reply Quote 0
      • GruensFroeschliG
        GruensFroeschli
        last edited by

        I assume you connected two interfaces to the same switch?
        This will never work.
        Traffic to a mac which is reachable over two interface, will only leave via one interface and always over this interface.
        ->Whichever interface has more priority within the system itself.
        It probably pure chance that your OPT has priority over the LAN. (or whatever mechanics decides that in FreeBSD).

        We do what we must, because we can.

        Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

        1 Reply Last reply Reply Quote 0
        • J
          josey
          last edited by

          yes, that is correct, both nic to same switch …

          is it possible to rise priority of LAN, and if there is no mac address in list of hosts, than (client, printer ...) computer gets ip from opt ?

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