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

    Static IP issues

    Scheduled Pinned Locked Moved L2/Switching/VLANs
    18 Posts 3 Posters 1.4k 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.
    • JKnottJ
      JKnott @Polar_Bear88
      last edited by

      @Polar_Bear88 said in Static IP issues:

      The problem is ofr my personal devices (iPhonem, Laptop on win 7 and Desktop on win10) where I can set a static IP on the client side. Everytime I do this I lose internet connectivity. I suspect its me not putting in the correct options for gateway and DNS but I could be wrong

      With static config, you have to consider several variables

      1. Address & subnet mask
      2. Default route
      3. DNS server.

      Can you ping other devices on the network? If not, check the configured address.
      Can you ping something like 8.8.8.8? If not, check the default route
      Can you ping via host name, such as google.com? If not, check the DNS address.

      Another question, if you want a static address, why not use static mapped DHCP? This will solve your problems, assuming DHCP is working properly.

      PfSense running on Qotom mini PC
      i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
      UniFi AC-Lite access point

      I haven't lost my mind. It's around here...somewhere...

      1 Reply Last reply Reply Quote 0
      • P
        Polar_Bear88
        last edited by

        I've given up for the night as Ive been at it for 8 hours but will do these tests when I next have time to play with it.

        IP address is correct. Its selected from within the correct VLAN and isn't being used by any other device.
        Subnet mask is correct. All VLAN's are /24 so subnet mask is 255.255.255.0.

        When forced to enter a DNS I was using 8.8.8.8 and 8.8.4.4.

        If Im just wanting to use my pfSense router as the DNS server, what IP address should I be using? Also what gateway address should I be using, Ive tried everything I can think of and leaving it blank

        R JKnottJ 2 Replies Last reply Reply Quote 0
        • R
          rcoleman-netgate Netgate @Polar_Bear88
          last edited by

          @Polar_Bear88 said in Static IP issues:

          If Im just wanting to use my pfSense router as the DNS server, what IP address should I be using?

          The interface/network IP for that interface/VLAN. If you have 192.168.50.1 as your pfSense LAN and 172.16.53.1 for the VLAN and the IP address that needs to call the DNS is on 172.16.53.x it will be 172.16.53.1

          Ryan
          Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
          Requesting firmware for your Netgate device? https://go.netgate.com
          Switching: Mikrotik, Netgear, Extreme
          Wireless: Aruba, Ubiquiti

          P 1 Reply Last reply Reply Quote 0
          • JKnottJ
            JKnott @Polar_Bear88
            last edited by

            @Polar_Bear88 said in Static IP issues:

            If Im just wanting to use my pfSense router as the DNS server, what IP address should I be using? Also what gateway address should I be using, Ive tried everything I can think of and leaving it blank

            If you don't know those, it's no wonder you're struggling. Those would be whatever address is on that VLAN on pfSense. This is why you're probably better off with static mapped DHCP. DHCP will provide those addresses automagically. 😉

            PfSense running on Qotom mini PC
            i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
            UniFi AC-Lite access point

            I haven't lost my mind. It's around here...somewhere...

            P 1 Reply Last reply Reply Quote 0
            • P
              Polar_Bear88 @rcoleman-netgate
              last edited by Polar_Bear88

              @rcoleman-netgate That's what I thought but when it didn't work it made me wonder if I was mistaken and it should of been the address on the LAN instead of the VLAN.

              Its also entirely possible that after s many hours of looking at the screen I was mistyping etc. In a few days when I have a chance to play with it again, Ill test and see what happens with the following:

              Client device on VLAN Guest
              Static IP 10.100.4.10
              Subnet mask 255.255.255.0
              DNS 10.100.4.1
              Gateway 10.100.4.1

              R 1 Reply Last reply Reply Quote 0
              • R
                rcoleman-netgate Netgate @Polar_Bear88
                last edited by

                @Polar_Bear88 OK, good, now what are the rules on the Firewall for VLAN Guest?

                Ryan
                Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
                Requesting firmware for your Netgate device? https://go.netgate.com
                Switching: Mikrotik, Netgear, Extreme
                Wireless: Aruba, Ubiquiti

                P 1 Reply Last reply Reply Quote 0
                • P
                  Polar_Bear88 @JKnott
                  last edited by

                  @JKnott If I don't make things gradually harder on myself I wont learn, that's why I find some of the youtube videos less helpful than others. The ones that tell you what to do but not why you're ding it is great for getting it up and running but not for learning which helps you customize it to your own needs later on.

                  1 Reply Last reply Reply Quote 0
                  • P
                    Polar_Bear88 @rcoleman-netgate
                    last edited by

                    @rcoleman-netgate at the minute I just have 1 basic rule on each of my vlans to allow connections on any protocol to any destination.

                    I figured I was better using this until I have everything up and running so I then have a good basis to work from when I change a rule and something breaks

                    R JKnottJ 2 Replies Last reply Reply Quote 0
                    • R
                      rcoleman-netgate Netgate @Polar_Bear88
                      last edited by

                      @Polar_Bear88 That is.

                      Now I'd ping from the guest network to the Guest Interface IP (10.100.4.1) and see if it responds. If it doesn't then start a packet capture on that interface looking for the traffic (filter to icmp only so you can limit the amount of garbage collected) and if it is coming in and not going back out it's something on your system. If it is not coming in at all then it is something on your network.

                      Ryan
                      Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
                      Requesting firmware for your Netgate device? https://go.netgate.com
                      Switching: Mikrotik, Netgear, Extreme
                      Wireless: Aruba, Ubiquiti

                      P 2 Replies Last reply Reply Quote 1
                      • P
                        Polar_Bear88 @rcoleman-netgate
                        last edited by

                        @rcoleman-netgate Thank you. Ill report back once Ive done all the above steps

                        1 Reply Last reply Reply Quote 0
                        • JKnottJ
                          JKnott @Polar_Bear88
                          last edited by

                          @Polar_Bear88

                          Here are my guest WiFi/VLAN rules. Guests can only access the Internet and ping the interface.

                          d5957f44-37f6-4ee5-9ac7-04d26a1a36f9-image.png

                          PfSense running on Qotom mini PC
                          i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                          UniFi AC-Lite access point

                          I haven't lost my mind. It's around here...somewhere...

                          R 1 Reply Last reply Reply Quote 1
                          • R
                            rcoleman-netgate Netgate @JKnott
                            last edited by

                            @JKnott And Guests are always going to be on Static IPs?

                            8adb9437-1251-4f04-bd38-218618cd9517-image.png

                            What were the results of the ping?

                            Ryan
                            Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
                            Requesting firmware for your Netgate device? https://go.netgate.com
                            Switching: Mikrotik, Netgear, Extreme
                            Wireless: Aruba, Ubiquiti

                            R JKnottJ 2 Replies Last reply Reply Quote 0
                            • R
                              rcoleman-netgate Netgate @rcoleman-netgate
                              last edited by

                              If you are rejecting all RFC1918 requests then you cannot have an RFC1918 be the DNS or you have to give it a rule to pass to (this firewall) DNS traffic.

                              Ryan
                              Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
                              Requesting firmware for your Netgate device? https://go.netgate.com
                              Switching: Mikrotik, Netgear, Extreme
                              Wireless: Aruba, Ubiquiti

                              JKnottJ 1 Reply Last reply Reply Quote 0
                              • JKnottJ
                                JKnott @rcoleman-netgate
                                last edited by

                                @rcoleman-netgate said in Static IP issues:

                                @JKnott And Guests are always going to be on Static IPs?

                                No, guests are DHCP on IPv4 and SLAAC on IPv6.

                                What were the results of the ping?

                                ????

                                As I mentioned, guests can ping the VLAN interface and nothing else on my network. Pings to the Internet are not blocked.

                                PfSense running on Qotom mini PC
                                i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                                UniFi AC-Lite access point

                                I haven't lost my mind. It's around here...somewhere...

                                R 1 Reply Last reply Reply Quote 0
                                • JKnottJ
                                  JKnott @rcoleman-netgate
                                  last edited by

                                  @rcoleman-netgate said in Static IP issues:

                                  If you are rejecting all RFC1918 requests then you cannot have an RFC1918 be the DNS or you have to give it a rule to pass to (this firewall) DNS traffic.

                                  I use DHCP to send guests to Google's DNS on IPv4, not mine. I also use RDNSS to provide Googles IPv6 DNS addresses. While guests have full access to the Internet, they can't do anything on mine, other than ping the guest interface.

                                  PfSense running on Qotom mini PC
                                  i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                                  UniFi AC-Lite access point

                                  I haven't lost my mind. It's around here...somewhere...

                                  1 Reply Last reply Reply Quote 0
                                  • R
                                    rcoleman-netgate Netgate @JKnott
                                    last edited by

                                    @JKnott said in Static IP issues:

                                    ????

                                    As I mentioned, guests can ping the VLAN interface and nothing else on my network. Pings to the Internet are not blocked.

                                    Confused user posts.

                                    Ryan
                                    Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
                                    Requesting firmware for your Netgate device? https://go.netgate.com
                                    Switching: Mikrotik, Netgear, Extreme
                                    Wireless: Aruba, Ubiquiti

                                    1 Reply Last reply Reply Quote 0
                                    • P
                                      Polar_Bear88 @rcoleman-netgate
                                      last edited by

                                      @rcoleman-netgate

                                      Finally got a chance to play around a little more and its working as it should so all I can assume is that Im an idiot and after looking at the screen so long the other day I was misstyping and couldnt see it.

                                      4 devices all set with their static IP's on the Home VLAN.
                                      They can ping between each other, can ping 8.8.8.8 and can ping www.google.com

                                      Next time I get a chance to play around, I'll start trying t set up some better (more secure) firewall rules and other general security tweaks.

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