Setting Interface IP address



  • 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


  • Netgate

    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.)



  • 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.)


  • Rebel Alliance Global Moderator

    So now your lan networks overlaps your wan network…


  • Netgate

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



  • @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.