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

    Simple Question

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    6 Posts 5 Posters 6.3k 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.
    • K
      kclanton
      last edited by

      I'm using PFsense 2.1.5 and have been given a /30 address from my ISP. I am trying to manually configure my WAN and it will not accept a /30 subnet. When I enter 30 when it asks for the IPv4 subnet bit count, it tells me I cannot set network address to the interface. How can I set up my IPv4 WAN with a /30 subnet?

      I am very new to configuring PFSense and searches of the forums and google have not yielded answers to my question. Thank you.

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        /30 should have 4 addresses in it, e.g:

        1.2.3.4/30 = 1.2.3.4,5,6,7

        In that example only 5 and 6 are used, at each end of a connection.

        What is the last digit of the addresses you have been told to use for your IP and the gateway IP?

        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
        • K
          kclanton
          last edited by

          .240/30 and .241 is my gateway.

          1 Reply Last reply Reply Quote 0
          • chpalmerC
            chpalmer
            last edited by

            if x.x.x.241 is your gateway then your IP should be x.x.x.242 in this scenario.  /30

            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
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by

              " it tells me I cannot set network address to the interface"

              Because .240/30 is the network, not the first host.  In any mask be it /30 or /24 or /8, etc. there is the network address and the broadcast address.  The first address in the range is the wire or the network, ie .240/30 .240 is the network address as pfsense tried to tell you.  The two IP that can be hosts in that example is .241 – they are using this as their address, your gateway.  So as mentioned by chpalmer .242 would be your host address (pfsense wan) .243 would be the broadcast address.

              If someone gives you an address say 192.168.1.240/27 is that a network or a host address?  Sometimes it can be hard to tell, you need to understand where the breaks are for each subnet - so in the case of /27 the network starting with .224 would include the .240 so you know that is a host address and not a network address.  The network .224 - .255 includes that .240 as a host where .224 is the wire/network address and .255 would be the broadcast address.

              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
              • S
                saxd40
                last edited by

                Here's an invaluable tool for figuring out your network IP address layout, especially when an ISP gives you a /28, /29, or /30 somewhere in the middle of a /24:

                http://www.subnet-calculator.com/cidr.php

                It converts CIDR to netmask and back and shows you your IP address range, of which the first (network) and last (broadcast) IPs are not usable.

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