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

    HOWTO: DHCP with bridged connections (1.2.1-RC1 and later)

    Scheduled Pinned Locked Moved DHCP and DNS
    29 Posts 15 Posters 37.1k 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.
    • D
      DiliaK
      last edited by

      Hello,

      I am using ALIX 2D3 board.

      I have:

      WAN (vr0) DHCP 192.168.0.128
      LAN (vr1) fixed 192.168.1.1
      LAN2 (vr2 bridged on vr1) no ip
      ath0 not activated yet, i want to solve vr1/vr2 before.

      WAN is receiving DHCP from my other router and it work.

      Integrated DHCP is working well with LAN.
      I have added the "famous" firewall rule in vr2 and no problem in log. If i suppress the rule, the firewall block: ok.
      I have added a rule for all traffic pass in vr2. Also tested without it.
      Here is an exemple of my config :

      http://diliak.pastebin.com/m6af426e9

      You can see that i had'nt anything connected to vr1 and vr2. This explain the "no carrier".

      I think, but i can be wrong, that when i connect my laptop on vr2, DHCP server send DHCP response on vr1.

      I have tested 1.2.3RC1 embedded, 1.2.2 embedded and now i am with snapshot august 25 of nanoBSD 1.2.3RC2.

      No success.

      With fixed IP, vr2(LAN2) work well.

      Thank's

      1 Reply Last reply Reply Quote 0
      • W
        wallabybob
        last edited by

        @DiliaK:

        I think, but i can be wrong, that when i connect my laptop on vr2, DHCP server send DHCP response on vr1.

        Why do you think that? Have you done any traces?

        I can't see anything obviously wrong with your configuration.

        Long shot: When you had the laptop connected to vr2 was the link status active? Its possible you MIGHT need a crossover cable to connect the laptop to vr2 (or vr1 or vr0)!

        1 Reply Last reply Reply Quote 0
        • D
          DiliaK
          last edited by

          @wallabybob:

          @DiliaK:

          I think, but i can be wrong, that when i connect my laptop on vr2, DHCP server send DHCP response on vr1.

          Why do you think that? Have you done any traces?

          It's because when y tested with my wlan (atho) bridged to lan(vr1), my laptop didn't have any DHCP reply. BUT, and it's funny, when i connected the cable LAN (vr1) on my laptop, it obtained DHCP reply from LAN AND FOR WLAN at the same time.

          I can't see anything obviously wrong with your configuration.

          Long shot: When you had the laptop connected to vr2 was the link status active? Its possible you MIGHT need a crossover cable to connect the laptop to vr2 (or vr1 or vr0)!

          Yes it come active. And for cable, i dont think so because when i put fixed IP on laptop, it work well.

          1 Reply Last reply Reply Quote 0
          • T
            tjousk
            last edited by

            @DiliaK:

            It's because when y tested with my wlan (atho) bridged to lan(vr1), my laptop didn't have any DHCP reply. BUT, and it's funny, when i connected the cable LAN (vr1) on my laptop, it obtained DHCP reply from LAN AND FOR WLAN at the same time.

            I am having this exact issue, as soon as I plug the ethernet cable in, both it and the wifi get an IP.
            Was any way around this found?
            (new install of pfSense 1.2.3)

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

              If a member of a bridge is down, the whole bridge is down.

              The old workaround to assign the wireless interface as LAN and bridge the wired interface as an OPT to it is still valid.

              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
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                Or plug LAN into a switch. An Ethernet loopback plug used to work but didn't the last time I tried it (but my plug may have been bad).

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  @GruensFroeschli:

                  If a member of a bridge is down, the whole bridge is down.

                  Hmm, really? This is very bad for me.  ???
                  I have 10 interfaces on my pfsense box (firebox x-peak) 3 gig, 6 10/100 and 1 wireless.
                  Now I was planning to have 1 as wan 1 as DMZ, wifi isolated and the remaining interfaces bridged with lan. However if you're telling me that unless all 7 interfaces are up then it won't work I may have to rethink!  ::)
                  I'm running 1.2.3 release embedded and have been struggling to get dhcp working across two bridged interfaces hence reading this thread.

                  Steve

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

                    @GruensFroeschli:

                    If a member of a bridge is down, the whole bridge is down.

                    That's not true as it's stated. What he's referring to is if the interface of the bridge that has the IP is down, then the bridge is still up and fine, but the gateway IP on the bridge will be inaccessible. i.e. if you bridge 5 interfaces to LAN, and LAN has the gateway IP for the subnet, if you unplug LAN you won't be able to get out to the Internet but the remaining functions of the bridge are fine. You have to ensure the interface of the bridge that has the IP is always up, the other interfaces are irrelevant.

                    In 2.0 you can assign the bridge itself and give it the IP so that isn't an issue.

                    1 Reply Last reply Reply Quote 0
                    • stephenw10S
                      stephenw10 Netgate Administrator
                      last edited by

                      Ah! Thanks.  :)
                      That should be no problem then.

                      Steve

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