Navigation

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

    DHCP doesn't work on Lan2

    DHCP and DNS
    3
    8
    323
    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.
    • A
      Airone 0 last edited by

      Helllo all,
      I recently bought a Netgate 4100 and I still don't know pfSense well. I created a bridge between LAN and LAN2 to use them both equally, I created a firewall rule for LAN2 to allow IPv4 and IPv6 to any rule, but I can't get DHCP to work for LAN2 as well as for LAN. This is probably something simple that I forgot to do, but as a newbie to this system I hope you'll excuse my question.
      Thank you

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @Airone 0 last edited by

        @airone-0 said in DHCP doesn't work on Lan2:

        I created a bridge between LAN and LAN2 to use them both equally,

        Did you assign an IP to the bridge or did you leave the IP on LAN?

        If the IP is still on LAN you need to allow DHCP protocol to pass the bridge. Consider that the devices have not a LAN2 IP at the time of the DHCP request. Hence it doesn't work with a pass rule that has LAN2 net as source.

        1 Reply Last reply Reply Quote 0
        • A
          Airone 0 last edited by

          Hello @viragomann , thank you for reply.

          The bridge I made is elementary and I didn't assign any IP to it. I left the LAN settings as they were by default while I set the LAN2 IPv4 and IPv6 configuration types to none. Thank you for the clarifications, but I would be grateful if you could explain me step by step how to set the parameters with the GUI (I'm not familiar with all these menus yet). Thank you

          V 1 Reply Last reply Reply Quote 0
          • V
            viragomann @Airone 0 last edited by

            @airone-0
            Having no IP on the bridge is not recommended at all. Imagine you disconnect the LAN cable, so LAN goes down and hence the LAN DHCP doesn't hand out any IPs anymore.

            You can takeover the LAN IP to the bridge this way:
            change the LAN IP to something else
            assign the origin LAN IP to the bridge
            ensure it is accessible
            disable the LAN DHCP
            enable the DHCP on the bridge
            remove the LAN IP

            Consider that you still need to add the rules to the both interfaces to pass traffic.

            A 1 Reply Last reply Reply Quote 0
            • A
              Airone 0 @viragomann last edited by

              @viragomann, I figured out what to do, but I can't find in the GUI where to apply the changes

              You can takeover the LAN IP to the bridge this way:
              change the LAN IP to something else

              Actually I have Interfaces>LAN (igc0) set to 192.168.2.1/24 then change it to 192.168.3.1/24: correct?

              assign the origin LAN IP to the bridge

              Where to do it? In Interfaces>Assignments>Bridges>BRIDGE0 (my bridge) I can't find any field where to set an IP

              ensure it is accessible

              How? Do I connect a client to LAN2 and check if DHCP assign an IP to it?

              disable the LAN DHCP

              I assume it is here: Services>DHCP Server>LAN

              enable the DHCP on the bridge

              Where?

              remove the LAN IP

              Consider that you still need to add the rules to the both interfaces to pass traffic.

              I assume by both interfaces you mean LAN and LAN2, correct?

              Thank you.

              H 1 Reply Last reply Reply Quote 0
              • H
                heper @Airone 0 last edited by

                https://docs.netgate.com/pfsense/en/latest/bridges/interfaces.html#bridging-and-interfaces

                1 Reply Last reply Reply Quote 0
                • A
                  Airone 0 last edited by

                  It was very helpful, thanks.

                  1 Reply Last reply Reply Quote 0
                  • A
                    Airone 0 last edited by

                    I'm sorry, but I still have a problem. I created the bridge between LAN and LAN2, I assigned an IP range to the bridge and I created the Firewall rules. All clients work outward, but I don't understand why LAN connected clients don't see LAN2 connected clients: what did I forget? What should I do to make them visible to each other?

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post