white listing IPs that end in 0/22

Posted on 2009-04-15
Last Modified: 2013-11-12
Hi, I'm writing an internet program that only certain networks are allowed to view. I got the list of IP addresses to white list in our database but I'm a coder and not an admin. The IP list they gave me look like this:

(I changed the IP to something random to protect my client's network, but that's the ending octet)

I'm not sure what range of IPs this actually encompasses. Can someone tell me? Because at first I thought this meant that the IPs I was supposed to white list were -

but apparently that's incorrect.

Also another one has an ending octet of 64/28

Not really sure what the range on that is actually supposed to be
Question by:tolstoyleo
    LVL 6

    Accepted Solution

    google subnet calculator
    put the address then the bit.  
    /22 is class b
    /28 is class c
    LVL 1

    Author Comment

    Still doesn't make any sense to me. Given the above subnet masks that I gave in my first question, what is the range of ip addresses? That's really all i want to know.
    LVL 6

    Assisted Solution

    you need to do some work too.  click on the link
    for /22 select class B, put in IP address, select 22 from maskbit. it will give you IP range under "Host address range".  so the first one range from x.52.120.1 - x.52.123.255  

    try for second one.
    LVL 12

    Assisted Solution

    I know you want to protect your clients IP address but can you let me know what range it is in.
    There are 3 classes (ranges) of IP addresses which use a bit mask with each.
    This is the basic class range (though some are spcial addresses within each class, but for simplicity sake)
    • Class A - - 127..255.255.255 /8
    • Class B - - /16
    • Class C - - /24
    The /22 you gave suggests your IP is in Class B but the random IP address you gave is in Class C
    Can you clarify this?
    LVL 13

    Assisted Solution

    Please never talk in classful address parlance ever again!!!

    The /22 represents the number of bits masked as the network bits. So, IP addressing 101 - 32 bits to an IPv4 address, 22 of which make up the network portion and the remaining bits are the hosts and subnets. is subnet mask

    In this case, the /22 mask would cover to

    Do you need more detail as to how this is worked out?

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    Article by: rfc1180
    The Maximum Segment size (MSS) is an important consideration when troubleshooting connectivity via the Internet/Intranet. As the packets are routed via the Internet/Intranet, the packets must traverse through multiple routers in the path between two…
    This is the first one of a series of articles I’ll be writing to address technical issues that are always referred to as network problems. The network boundaries have changed, therefore having an understanding of how each piece in the network  puzzl…
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now