ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Need to better understand IP Helper for accessing Windows DHCP Server from VLAN.

    IT Discussion
    dhcp ip helper iphelper vlan
    7
    46
    3.9k
    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
      JasGot
      last edited by JasGot

      I have an existing environment with an untagged LAN and two VLANs. I have no control over one of the VLANS. With the exception of constant DHCP issues which I believe are a result of an inadequate DHCP server on an Sonicwall NSA 220, it is all working fine.

      I have two issues and I think solving the DHCP server will resolve the second.

      So you know what I am battling, I will outline the problems here:

      1. I often see IP conflicts in the NSA220 logs.
      2. I often do not get IP addresses served up for any devices even though there may be hundreds of available IPs in the pool.
      3. I have some Iphones that absolutely refuse to get an IP address if they are connecting to the network through a VLAN.

      Problems 1 and 2 are always resolved by rebooting the SW NSA220.

      If problem 3 is related to the SW NSA220 and VLAN, it may be resolved when I move the DHCP server to the Windows Server.

      I have been studying the mostly incomplete or too complex or cisco based IP Helper information I can find and I thought I was doing great until it just doesn't work as I expect.

      Here's what I have done so far:

      Sonicwall -
      Create new Virtual Interface on the LAN port called VLAN 10.
      Turn On IP Helper
      Turn On DHCP in IP Helper
      Add a policy to send DHCP Requests to the Windows DHCP Server
      f0ddcad1-e673-4a56-960d-4421c287cbea-image.png
      87a48403-6622-43f0-9cb1-bedfc397562e-image.png

      In the Windows Server -
      I have created a new scope
      7f3031f4-50cd-48d2-8323-7fa65b279948-image.png

      As I understand it, there is nothing special about the DHCP scope in the Windows DHCP Server because when the DHCP request arrives at the DHCP server, it will look at the gateway used inside the request and use that subnet to determine which DHCP pool to assign from.

      It all seems so easy until it doesn't work! 🙂

      1 Reply Last reply Reply Quote 0
      • DashrenderD
        Dashrender
        last edited by Dashrender

        First things first - did this ever work? or is this a new setup?

        Is the sonicwall what is routing packets between VLANs?

        If the sonicwall is routing packets between the VLANs, then it will need an interface in all the VLANs.

        When you created the VLAN 10 interface on the X0 interface, did you also assign tagged VLAN 10 traffic to that port on the Cisco switch side?

        J 1 Reply Last reply Reply Quote 0
        • DashrenderD
          Dashrender
          last edited by

          Why are you moving DHCP to Windows from your SonicWall?

          FYI - DHCP/DNS usage requires Windows CALs - i.e. if you are putting this on a guest network, technically you'll need licenses for every device that gets a DHCP address (company users should be covered by their user CAL, but guests would need one). This is why you should leave DHCP for any guest networks on something that doesn't costs licenses - like the Sonicwall.

          J 1 Reply Last reply Reply Quote 2
          • J
            JasGot @Dashrender
            last edited by

            @Dashrender said in Need to better understand IP Helper for accessing Windows DHCP Server from VLAN.:

            First things first - did this ever work? or is this a new setup?

            It's been problematic since we moved the Guest WiFi to a VLAN. The more visitors, the more serious and aggressive the problem.

            Is the sonicwall what is routing packets between VLANs?

            Yes.

            If the sonicwall is routing packets between the VLANs, then it will need an interface in all the VLANs.

            There is only the non VLAN LAN (X0) and the VLAN (X0:10)

            When you created the VLAN 10 interface on the X0 interface, did you also assign tagged VLAN 10 traffic to that port on the Cisco switch side?

            When I mentioned Cisco above, it was only in reference of the documentation I found online. This environment is a Sonicwall acting as the router/firewall and all UniFi switches.

            The sonicwall is plugged into port 48 on one of the switches and that port is set to the All profile.

            Appreciate your time on this.

            J DashrenderD 2 Replies Last reply Reply Quote 0
            • J
              JasGot @Dashrender
              last edited by

              @Dashrender said in Need to better understand IP Helper for accessing Windows DHCP Server from VLAN.:

              FYI - DHCP/DNS usage requires Windows CALs - i.e. if you are putting this on a guest network, technically you'll need licenses for every device that gets a DHCP address

              And I really appreciate this reminder! What a catastrophe that would have been!

              1 Reply Last reply Reply Quote 0
              • J
                JasGot @JasGot
                last edited by

                @JasGot said in Need to better understand IP Helper for accessing Windows DHCP Server from VLAN.:

                There is only the non VLAN LAN (X0) and the VLAN (X0:10)

                I should rephrase this. There is a VLAN 100 that is mostly isolated from the LAN and it is for the phones. They have their own dhcp server and PBX managed by someone else. (For now!)

                DashrenderD 1 Reply Last reply Reply Quote 0
                • DashrenderD
                  Dashrender @JasGot
                  last edited by Dashrender

                  @JasGot said in Need to better understand IP Helper for accessing Windows DHCP Server from VLAN.:

                  The sonicwall is plugged into port 48 on one of the switches and that port is set to the All profile.

                  OK, so this is how the SonicWall can get access to the third VLAN physically, though since you don't have a second virtual port created on that connection on the SonicWall side, I don't see how the SonicWall is talking to that network.

                  Can you give us a bit more detail?

                  i.e. something like this
                  SonicWall
                  Internal
                  X0 - LAN (192.168.100.x/24) (DHCP - AD)
                  X0:10 - Guest (192.168.10.x/24) (DHCP - SonicWall)

                  VLAN 3 - phones/VOIP (10.10.10.x/24) (DHCP - PBX)

                  *edit - After seeing your last post, I think the above is what you have.

                  J 2 Replies Last reply Reply Quote 0
                  • DashrenderD
                    Dashrender @JasGot
                    last edited by

                    @JasGot said in Need to better understand IP Helper for accessing Windows DHCP Server from VLAN.:

                    @JasGot said in Need to better understand IP Helper for accessing Windows DHCP Server from VLAN.:

                    There is only the non VLAN LAN (X0) and the VLAN (X0:10)

                    I should rephrase this. There is a VLAN 100 that is mostly isolated from the LAN and it is for the phones. They have their own dhcp server and PBX managed by someone else. (For now!)

                    Awww, so this network has not internet access at this time?

                    J 1 Reply Last reply Reply Quote 0
                    • J
                      JasGot @Dashrender
                      last edited by

                      @Dashrender said in Need to better understand IP Helper for accessing Windows DHCP Server from VLAN.:

                      OK, so this is how the SonicWall can get access to the third VLAN physically, though since you don't have a second virtual port created on that connection on the SonicWall side, I don't see how the SonicWall is talking to that network.

                      The Sonicwall has no interaction with that third VLAN (which is the phones). The phone talk to their own PBX, the PBX has two NICs, one for the phones, one on my LAN.

                      DashrenderD 1 Reply Last reply Reply Quote 0
                      • J
                        JasGot @Dashrender
                        last edited by

                        @Dashrender said in Need to better understand IP Helper for accessing Windows DHCP Server from VLAN.:

                        Awww, so this network has not internet access at this time?

                        Correct, and should never have it.

                        @JasGot said in Need to better understand IP Helper for accessing Windows DHCP Server from VLAN.:

                        The Sonicwall has no interaction with that third VLAN (which is the phones). The phone talk to their own PBX, the PBX has two NICs, one for the phones, one on my LAN.

                        1 Reply Last reply Reply Quote 0
                        • J
                          JasGot @Dashrender
                          last edited by

                          @Dashrender said in Need to better understand IP Helper for accessing Windows DHCP Server from VLAN.:

                          Can you give us a bit more detail?
                          i.e. something like this
                          SonicWall
                          Internal
                          X0 - LAN (192.168.100.x/24) (DHCP - AD)
                          X0:10 - Guest (192.168.10.x/24) (DHCP - SonicWall)
                          VLAN 3 - phones/VOIP (10.10.10.x/24) (DHCP - PBX)

                          You are spot on.
                          I just mocked this up, does it help?
                          a0356842-ea23-4074-92d0-36b73c80d0c9-image.png

                          1 Reply Last reply Reply Quote 0
                          • DashrenderD
                            Dashrender @JasGot
                            last edited by

                            @JasGot said in Need to better understand IP Helper for accessing Windows DHCP Server from VLAN.:

                            @Dashrender said in Need to better understand IP Helper for accessing Windows DHCP Server from VLAN.:

                            OK, so this is how the SonicWall can get access to the third VLAN physically, though since you don't have a second virtual port created on that connection on the SonicWall side, I don't see how the SonicWall is talking to that network.

                            The Sonicwall has no interaction with that third VLAN (which is the phones). The phone talk to their own PBX, the PBX has two NICs, one for the phones, one on my LAN.

                            yeah, this is the way that many PBX vendors pretty much demand to be setup, though they can't really tell you why - they'll say "it's about ensuring traffic to the devices because of QOS", etc... but then - is QOS actually setup on your switches for the given VLAN?
                            But really, in modern networking, if you have to rely on QOS because of network congestion at the switch level, you should really be solving that problem, not using the bandaid of QOS.

                            So with all that in mind, moving the PBX and phones onto the same VLAN as the production LAN should not be an issue - though, you will have to solve the DHCP issues since you'll likely not be using the PBX DHCP server, but instead either SonicWall or AD (you'll have to add some scope options) will be updated.

                            1 Reply Last reply Reply Quote 2
                            • DashrenderD
                              Dashrender
                              last edited by

                              In your setup, you should not need an IP helper address. The Sonicwall is directly attached to both corporate LAN and guest LAN, so there is no routing of DHCP packets happening.

                              If DHCP is not being handed out - I would suspect the SonicWall is broken - is there a firmware update for it?

                              J 2 Replies Last reply Reply Quote 0
                              • J
                                JasGot @Dashrender
                                last edited by

                                @Dashrender said in Need to better understand IP Helper for accessing Windows DHCP Server from VLAN.:

                                In your setup, you should not need an IP helper address. The Sonicwall is directly attached to both corporate LAN and guest LAN, so there is no routing of DHCP packets happening.

                                Right, but if I move DHCP to another device, I will. (Even if not, I would still like to understand it better. Which for me, means making it work, then reverting to the original config.)

                                If DHCP is not being handed out - I would suspect the SonicWall is broken - is there a firmware update for it?

                                I'll check. But I think it is current. Don't forget, I also suspect it's the scenario that introduces the problem, which means it could be the IPhone, the Unifi, or the Sonicwall.

                                1 Reply Last reply Reply Quote 0
                                • J
                                  JasGot @Dashrender
                                  last edited by JasGot

                                  @Dashrender said in Need to better understand IP Helper for accessing Windows DHCP Server from VLAN.:

                                  I would suspect the SonicWall is broken

                                  I read where the Sonicwalls have a hard time with complex DHCP configs and large pools. I'm consolidating and cleaning up right now. It'll be a few days before I see the changes in pool usage.

                                  Someone said to use two /24 instead of a single /23 on the sonicwall. They said it behaves much better.

                                  I may try that too.

                                  DashrenderD scottalanmillerS 2 Replies Last reply Reply Quote 0
                                  • DashrenderD
                                    Dashrender @JasGot
                                    last edited by

                                    @JasGot said in Need to better understand IP Helper for accessing Windows DHCP Server from VLAN.:

                                    @Dashrender said in Need to better understand IP Helper for accessing Windows DHCP Server from VLAN.:

                                    I would suspect the SonicWall is broken

                                    I read where the Sonicwalls have a hard time with complex DHCP configs and large pools. I'm consolidating and cleaning up right now. It'll be a few days before I see the changes in pool usage.

                                    Someone said to use two /24 instead of a single /23 on the sonicwall. They said it behaves much better.

                                    I may try that too.

                                    How are you using a single /23? that would be a single network... I could see you having two /23 networks, one for LAN and one for Guest, nothing should be wrong with that. You don't have to put the whole range into the DHCP available addresses either, you could limit it to say 100, or what actually fits your needs.

                                    If you have more than 250 devices, using a /23 is every helpful, preventing you from needing to have multiple LANs of /24 and routing between them.

                                    J 1 Reply Last reply Reply Quote 0
                                    • J
                                      JasGot @Dashrender
                                      last edited by

                                      @Dashrender said in Need to better understand IP Helper for accessing Windows DHCP Server from VLAN.:

                                      How are you using a single /23? that would be a single network

                                      X0 - 192.168.0.1/23 - LAN
                                      X0:10 - 192.168.10.0/23 - VLAN

                                      DashrenderD 1 Reply Last reply Reply Quote 0
                                      • DashrenderD
                                        Dashrender @JasGot
                                        last edited by

                                        @JasGot said in Need to better understand IP Helper for accessing Windows DHCP Server from VLAN.:

                                        @Dashrender said in Need to better understand IP Helper for accessing Windows DHCP Server from VLAN.:

                                        How are you using a single /23? that would be a single network

                                        X0 - 192.168.0.1/23 - LAN
                                        X0:10 - 192.168.10.0/23 - VLAN

                                        OK - man, if the sonicwall has issues with that, I'd dump them.... well, I'd dump them anyway. 😉

                                        1 Reply Last reply Reply Quote 1
                                        • scottalanmillerS
                                          scottalanmiller @JasGot
                                          last edited by

                                          @JasGot said in Need to better understand IP Helper for accessing Windows DHCP Server from VLAN.:

                                          Someone said to use two /24 instead of a single /23 on the sonicwall. They said it behaves much better.

                                          Someone thinks that that hardware is garbage! I'm no fan, but I've never even hinted at a SonicWall being that bad. That's a serious level of not believing in the gear.

                                          dbeatoD 1 Reply Last reply Reply Quote 1
                                          • notverypunnyN
                                            notverypunny
                                            last edited by

                                            Off the top of my head, another option would be to throw a Pi with pihole directly on your vlan10 and have it do your DHCP as well as all of the pihole adblocking. Just food for thought. Looking at the setup, I'd also make sure that you don't have anything else on that vlan10 set as a dhpc server or with a dhcp-relay.

                                            DashrenderD 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • First post
                                              Last post