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

    Setting Interface IP address

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    6 Posts 4 Posters 778 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.
    • T
      ThatotherGuy
      last edited by

      Greetings,

      I am new to Pfsense but, I do have a working installation on a PC with a i5 processor

      I have 2 network cards.

      On the console are the following:

      WAN  192.168.1.107/24
      LAN    192.168.3.3/24
      OPT1  192.168.2.2/24

      In this configuration, all is working, I have not added any packages at this stage, as I just want to get things working first.

      The OPT1 will be used at some point as a WIFI hotspot

      This unit will be used in an office where computers and printers have static IP addresses in the 192.168.20.200 to 192.168.20.252 range

      So I would like to change the LAN IP to 192.168.20.200 and assign static ip addresses accordingly.

      But every time I try to set the LAN ip address, I lose access to the webconfigurator and the internet.  ( I am using the console, to try and change the IP address)

      I would appreciate some advice thankyou

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        Well when you change the LAN address you are changing the default gateway the LAN computers are using to access the router and the internet beyond.

        Change the address, save, and apply, then tell your workstation to renew DHCP (unplug ethernet and reconnect should be sufficient.)

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

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

          I do appreciate your reply, however I have tried unplugging cables, numerous times.

          But your answer did give me a clue to what I should search for, and I found an answer that seems to work

          https://en.wikipedia.org/wiki/Private_network
          Private IPv4 address spaces

          The Internet Engineering Task Force (IETF) has directed the Internet Assigned Numbers Authority (IANA) to reserve the following IPv4 address ranges for private networks:[1]
          RFC1918 name IP address range number of addresses largest CIDR block (subnet mask) host id size mask bits classful description[Note 1]
          24-bit block 10.0.0.0 – 10.255.255.255 16,777,216 10.0.0.0/8 (255.0.0.0) 24 bits 8 bits single class A network
          20-bit block 172.16.0.0 – 172.31.255.255 1,048,576 172.16.0.0/12 (255.240.0.0) 20 bits 12 bits 16 contiguous class B networks
          16-bit block 192.168.0.0 – 192.168.255.255 65,536 192.168.0.0/16 (255.255.0.0) 16 bits 16 bits 256 contiguous class C networks

          I changed the interface IP address to 192.168.20.189/16 instead of /24.  For whatever reason, it works!!

          Thankyou again for your help - Cheers@Derelict:

          Well when you change the LAN address you are changing the default gateway the LAN computers are using to access the router and the internet beyond.

          Change the address, save, and apply, then tell your workstation to renew DHCP (unplug ethernet and reconnect should be sufficient.)

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

            So now your lan networks overlaps your wan network…

            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.7.2, 24.11

            1 Reply Last reply Reply Quote 0
            • DerelictD
              Derelict LAYER 8 Netgate
              last edited by

              Yeah whatever /24 was doing that /16 isn't, changing to a /16 is not the answer. Fix the /24 instead.

              Chattanooga, Tennessee, USA
              A comprehensive network diagram is worth 10,000 words and 15 conference calls.
              DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
              Do Not Chat For Help! NO_WAN_EGRESS(TM)

              1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan
                last edited by

                @ThatotherGuy:

                I do appreciate your reply, however I have tried unplugging cables, numerous times.

                Let me guess : the device you hooked up to the LAN to visit the GUI also uses a static IP - or, using other words : you changed default network settings on that device.
                In that case, ripping out the RJ45 and putting it back in won't do - neither running ipconfig /renew. You have t change your IP/DNS/Gateway manually.

                Btw : an advice : when you buy a PC/Printer/whatever : Never ever deactivate the DHCP client. Leave it on. Don't touch any network settings except maybe the network group name.
                You just gave one of the many reasons why …

                Setup in your router (pfSense here) all IP's with their MAC addresses. All your devices will also have the IP(s you assigned on a central place.
                Do not use static addresses.

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

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