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

[SOLVED] Problem setting static IP address

Scheduled Pinned Locked Moved 2.4 Development Snapshots
6 Posts 4 Posters 4.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.
  • C
    cellobita
    last edited by Apr 6, 2017, 2:03 PM Apr 5, 2017, 5:01 PM

    This has to be something stupid I'm doing, but I can't figure it out:

    I have a valid subnet from my ISP, 200.225.216.152/29, gateway 200.225.216.158.

    However, while trying to set a static IP address for the WAN interface (200.225.216.153/29), and the above gateway (200.225.216.158), the system won't let me save settings, with the error message:

    A valid gateway must be specified

    Can anyone tell me what's the problem with the above addressing?

    [edit: I'm on 2.4.0 beta, FWIW]

    Marcello Marques
    Santos - SP - Brazil

    1 Reply Last reply Reply Quote 0
    • C
      cozkramer
      last edited by Apr 6, 2017, 1:45 AM

      You sure your ISP is actually giving you static ip's to start with?  Let alone, 8 of them…  Simply because your isp puts you in a /29 doesn't mean anything..  Set up your isp wan gateway as dhcp and let it take whatever the isp sends.  Once you have your assigned ip, then if you're positive they won't change it on you, set it to static with the right subnet, etc..  I'm always leery of being away and the isp network changing something and I'm sol until I can get back.  I can trust what I control, not what some other nut can...

      1 Reply Last reply Reply Quote 0
      • C
        cellobita
        last edited by Apr 6, 2017, 1:58 AM

        Yeah, I have double-checked with my ISP, and they expect a static IP config on my side (no DHCP here…) - but my issue is a simple one: the gateway 200.225.216.158 is a valid one for the subnet 200.225.216.152/29 (I have run the numbers thru an online IP subnet calculator, just to make sure that my subnetting skills were not too rusty), but apparently pfSense thinks otherwise: I can't even save this static IP configuration, let alone test if it routes traffic or not…

        Marcello Marques
        Santos - SP - Brazil

        1 Reply Last reply Reply Quote 0
        • C
          chpalmer
          last edited by Apr 6, 2017, 4:21 AM

          I just did this successfully on a test interface here.

          Set your interface address and save.

          Go to System/Routing/Gateways and add it there.  I ran into the error message as well trying to do it from the interface page so yes looks like a bug.

          Triggering snowflakes one by one..
          Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

          1 Reply Last reply Reply Quote 0
          • P
            phil.davis
            last edited by Apr 6, 2017, 11:57 AM

            Try the fix in issue https://redmine.pfsense.org/issues/7452
            PR https://github.com/pfsense/pfsense/pull/3689

            It was not saving any gateway added on the interfaces page.

            As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
            If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

            1 Reply Last reply Reply Quote 0
            • C
              cellobita
              last edited by Apr 6, 2017, 2:02 PM Apr 6, 2017, 1:04 PM

              The suggestion by chpalmer did work - and nice to know that it was an actual issue that has been fixed.

              Thanks a bunch!

              Marcello

              Marcello Marques
              Santos - SP - Brazil

              1 Reply Last reply Reply Quote 0
              2 out of 6
              • First post
                2/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received