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

    pf2.4.5 setup DHCP Static Mappings then lan down.

    Scheduled Pinned Locked Moved Development
    21 Posts 4 Posters 1.0k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by

      My car is broken - fix it!!

      Can not help you without actual info... Lets see the details of when you set a reservation and when you don't set a reservation on the client...

      You prob get better help in you native language section..

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.8, 24.11

      yon 0Y 1 Reply Last reply Reply Quote 0
      • yon 0Y
        yon 0 @johnpoz
        last edited by

        @johnpoz On the client are set the system default automatic acquisition parameters. Other users report that the device cannot access the Internet, so I discovered these problems.

        1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator
          last edited by johnpoz

          OMG!!!

          What are the details of its IP... lets see a ipconfig /all when not reservation, and when reservation..

          Until you give us such details its impossible for use to try and help you figure out what is wrong... We can not read minds, we can not "guess" to what your doing wrong.. But let me say this again..

          It does not matter how the client gets its ip, be it just out of the dhcp pool or via a reservation. Client doesn't freaking even know which is which... So your either handing it the wrong info like wrong gateway or wrong dns? Or its not getting an IP at all? Which is it?

          here is my config via reservation

          $ ipconfig /all
          
          Windows IP Configuration
          
             Host Name . . . . . . . . . . . . : i5-win
             Primary Dns Suffix  . . . . . . . : local.lan
             Node Type . . . . . . . . . . . . : Broadcast
             IP Routing Enabled. . . . . . . . : No
             WINS Proxy Enabled. . . . . . . . : No
             DNS Suffix Search List. . . . . . : local.lan
          
          Ethernet adapter Local:
          
             Connection-specific DNS Suffix  . : local.lan
             Description . . . . . . . . . . . : Realtek PCIe GbE Family Controller
             Physical Address. . . . . . . . . : 00-13-3B-2F-67-62
             DHCP Enabled. . . . . . . . . . . : Yes
             Autoconfiguration Enabled . . . . : Yes
             IPv4 Address. . . . . . . . . . . : 192.168.9.100(Preferred)
             Subnet Mask . . . . . . . . . . . : 255.255.255.0
             Lease Obtained. . . . . . . . . . : Monday, February 17, 2020 7:11:25 AM
             Lease Expires . . . . . . . . . . : Friday, February 21, 2020 7:11:25 AM
             Default Gateway . . . . . . . . . : 192.168.9.253
             DHCP Server . . . . . . . . . . . : 192.168.9.253
             DNS Servers . . . . . . . . . . . : 192.168.3.10
             NetBIOS over Tcpip. . . . . . . . : Enabled
          

          Other than than the .100 IP, there is no difference from when gotten from the pool

          $ ipconfig /all
          
          Windows IP Configuration
          
             Host Name . . . . . . . . . . . . : i5-win
             Primary Dns Suffix  . . . . . . . : local.lan
             Node Type . . . . . . . . . . . . : Broadcast
             IP Routing Enabled. . . . . . . . : No
             WINS Proxy Enabled. . . . . . . . : No
             DNS Suffix Search List. . . . . . : local.lan
          
          Ethernet adapter Local:
          
             Connection-specific DNS Suffix  . : local.lan
             Description . . . . . . . . . . . : Realtek PCIe GbE Family Controller
             Physical Address. . . . . . . . . : 00-13-3B-2F-67-62
             DHCP Enabled. . . . . . . . . . . : Yes
             Autoconfiguration Enabled . . . . : Yes
             IPv4 Address. . . . . . . . . . . : 192.168.9.210(Preferred)
             Subnet Mask . . . . . . . . . . . : 255.255.255.0
             Lease Obtained. . . . . . . . . . : Monday, February 17, 2020 7:13:49 AM
             Lease Expires . . . . . . . . . . : Friday, February 21, 2020 7:13:50 AM
             Default Gateway . . . . . . . . . : 192.168.9.253
             DHCP Server . . . . . . . . . . . : 192.168.9.253
             DNS Servers . . . . . . . . . . . : 192.168.3.10
             NetBIOS over Tcpip. . . . . . . . : Enabled
          

          Without such info - we can not help you find out what the problem is.

          Maybe you have some static IP conflicting? for the IP your trying to hand the client via reservation... We have to have details to help!!! Lets see what you get for ipconfig via pool, via reservation. Then lets see some arps if those are correct, etc. etc.

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          yon 0Y 1 Reply Last reply Reply Quote 0
          • yon 0Y
            yon 0 @johnpoz
            last edited by

            @johnpoz

            now the version seem work normal, i have add two nic test is work now.
            2.4.5-RC (amd64)
            built on Fri Feb 14 14:46:09 EST 2020
            FreeBSD 11.3-STABLE

            but one nic get ip from allow Range out dhcp setup .22-.30 ip. the nic get .17 ip.

            Services_ DHCP Server_ LAN-1.jpg 20200217220450.jpg 20200217220433-11.jpg

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by johnpoz

              You have no ipv4 gateway... So no your going to talk to anything off the 185 network your on via ipv4.. Why are you handing out rfc1918 dns to something with a public IP?

              Oh wait you do.. Can you ping it? Looks like this box is going to try and use ipv6 vs ipv4 that is for sure..

              Ping that 185.x.191.1 address (pfsense)... What is in your arp table on this client for that IP?

              Arp -a

              That is outside the pool, now what do you get when your inside the pool Again.. Again be it dhcp pool or reservation has ZERO to do with anything... Other than what you might be telling the client to do.. As long as it gets IP and mask, and gateway there is no difference to the client.

              Your lease is how freaking long? over 2 years??? WTF??? That is just utter nonsense to set something like that...

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              1 Reply Last reply Reply Quote 0
              • yon 0Y
                yon 0
                last edited by yon 0

                pfsense will auto add lan gateway ip for dhcp. now the new version is work can connect to gateway. ofcause i had try add gateway ip in old pf version.

                have you look at the nic get 185.x .191.17 ip? but pf setup only allow dhcp range from 185.x.191.22- 185.x.191.30.
                Is this a bug?

                johnpozJ 1 Reply Last reply Reply Quote 0
                • yon 0Y
                  yon 0
                  last edited by yon 0

                  @johnpoz said in pf2.4.5 setup DHCP Static Mappings then lan down.:

                  Your lease is how freaking long? over 2 years??? WTF??? That is just utter nonsense to set something like that...

                  This is a network interruption after setting a static IP for a network card...The dynamic IP mode network works normally.In order to obtain a fixed IP for the server, the DHCP lease period is temporarily adjusted.

                  ok. now i change it to 7200 and 86400 .

                  1 Reply Last reply Reply Quote 0
                  • johnpozJ
                    johnpoz LAYER 8 Global Moderator @yon 0
                    last edited by johnpoz

                    @yon-0 said in pf2.4.5 setup DHCP Static Mappings then lan down.:

                    have you look at the nic get 185.x .191.17 ip? but pf setup only allow dhcp range from 185.x.191.22- 185.x.191.30.
                    Is this a bug?

                    No its not a bug... your dhcp reservations have to be outside your pool... Been like that forever!!!

                    Dude you really need to seek help in your native language section... we are not communicating... How and the F is a temp anything have anything to do with you setting a lease time of 2+ years... Its NONSENSE!!

                    You can not answer a simple question or show any info... You clearly got an IP, you have a gateway.. .Can you ping your gateway or not? What are the rules on said gateway.

                    clients don't give two shits if the IP info they get comes out of a pool, or is a reservation or not.. Nor does that have anything to do with basic connectivity... Do you firewall rules only allow your pool range of IPs..

                    Can not help you with out basic info... Clearly you got an IP that you reserved - so what is not working "exactly"!!!

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.8, 24.11

                    1 Reply Last reply Reply Quote 0
                    • yon 0Y
                      yon 0
                      last edited by

                      @johnpoz said in pf2.4.5 setup DHCP Static Mappings then lan down.:

                      No its not a bug... your dhcp reservations have to be outside your pool... Been like that forever!!!
                      Dude you really need to seek help in your native language section... we are not communicating... How and the F is a temp anything have anything to do with you setting a lease time of 2+ years... Its NONSENSE!!
                      You can not answer a simple question or show any info... You clearly got an IP, you have a gateway.. .Can you ping your gateway or not? What are the rules on said gateway.
                      clients don't give two shits if the IP info they get comes out of a pool, or is a reservation or not.. Nor does that have anything to do with basic connectivity... Do you firewall rules only allow your pool range of IPs..
                      Can not help you with out basic info... Clearly you got an IP that you reserved - so what is not working "exactly"!!!

                      I raised related issues at the time in the previous post, but I didn't find a solution, so I tried various parameter settings in order to fix the ip to a certain server network card. It was a problem at the time and I had to try to delay the lease time to a large Because the version at the time was working under DHCP to obtain a dynamic IP, I wasn't crazy setting it up for no reason. Because this problem appeared for some time, because I deleted the static settings in order not to affect the user's use, I have not tried again in the last two weeks.

                      The version of the system I installed today, today I just tested that the static ip works and can connect to the gateway.

                      yon 0Y 1 Reply Last reply Reply Quote 0
                      • yon 0Y
                        yon 0 @yon 0
                        last edited by

                        At that time, the server must use a fixed IP, but setting a static IP will cause the server network to be interrupted
                        I wonder if I can increase the DHCP lease time so that Ip is temporarily fixed to the server NIC. That's why setting such a long time parameter.

                        1 Reply Last reply Reply Quote 0
                        • johnpozJ
                          johnpoz LAYER 8 Global Moderator
                          last edited by

                          @yon-0 said in pf2.4.5 setup DHCP Static Mappings then lan down.:

                          so I tried various parameter settings

                          What? You don't just randomly change shit that has zero to do with anything hoping it fixes something

                          dhcp has NOTHING to do with a device talking to another device... Its just a method to hand out info.. Doesn't matter if its reserved so client X gets specific IP or other info, or from a pool where client gets a random IP or static..

                          Again if you are not actually going to provide info, and just say shit is not working nobody can help you! Lets see this device that has an IP and mask in your network trying to ping the pfsense IP 185.x.191.1 - Can it ping that or not? If not what are the firewall rules on the interface of pfsense...

                          Etc... This got to be one of the most frustrating threads I have ever.. Again - there must be a language issue and I highly suggest you seek help in your native language.

                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                          If you get confused: Listen to the Music Play
                          Please don't Chat/PM me for help, unless mod related
                          SG-4860 24.11 | Lab VMs 2.8, 24.11

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