How /30 and /32 bit IP subnet masks can help you with Cisco Networking

When it comes to IP subnetting, as you don’t do it everyday, it can be confusing and take a while to get back into. In this article, we will cover a certain type of IP subnet mask – the /30 and /32 bit subnet mask – and find how these subnet masks can be very useful when assigning IP addressing to your WAN links and to your special router interfaces.

What is a /30 bit subnet mask?

I am sure you are used to seeing subnet masks that look like This is a /24 subnet mask in “slash notation”. As you can see, it is much easier to type /24 than it is to type These two are the same because if you translate to binary, you get 11111111 11111111 11111111 00000000, or 24 one’s.

As you know a /24 bit subnet mask has 254 usable IP addresses + 1 for the broadcast + 1 for the network. This is calculated 2^8 (or 2 to the 8th power) = 256 – 2 = 254.

Sponsored Content

Passwords Haven’t Disappeared Yet

123456. Qwerty. Iloveyou. No, these are not exercises for people who are brand new to typing. Shockingly, they are among the most common passwords that end users choose in 2021. Research has found that the average business user must manually type out, or copy/paste, the credentials to 154 websites per month. We repeatedly got one question that surprised us: “Why would I ever trust a third party with control of my network?

So what is a /30 bit mask? A /30 bit mask would be 30 one’s, leaving just 2 zero’s that could be used for host addressing. If you apply the hosts formula, you get 2^2 = 4 – 2 = 2 useable IP addresses. In other words, our network would look like this:

  • Network
  • Host IP
  • Host IP
  • Broadcast

So what can you do with a network that only has 2 usable host IP addresses? It seems a bit limited, right? Let’s find out…

How can /30 bit subnet masks help in in IP addressing my WAN?

The point of proper IP address design is that you don’t use any more IP addresses than are absolutely needed. With a /30 bit subnet mask providing us 2 useable IP addresses, let’s think of a network where there are only 2 hosts. While this idea seems silly for IP Addressing on a LAN, it is actually perfect for IP addressing on WAN connections or any router to router connections.

For example, say that I get an Internet T1 circuit. I setup my router and connect to the ISP’s router. An Internet circuit is treated like a point to point WAN circuit. There are only 2 routers on that circuit, each connecting to each other. Then you need a network address so that that entire network can be represented in a routing table. I really don’t see any purpose for the broadcast in that scenario but it you have a network then you also have a broadcast.

What better use for a /30 subnet mask that only provides 2 useable IP addresses than to put it to work on a network with only 2 devices – a point to point T1 Internet circuit. Also, this example completely applies to a point to point private network leased line (not on the Internet).

Again, the /30 subnet mask provides the most efficient use of IP addresses by not wasting any IP addresses when it is applies to a point to point network connection.

With a Cisco router point to point connection, a /3’02 bit network in use would look like:

Router 1

Serial 0/0

ip address


Router 2

Serial 0/0

ip address

What is a /32 bit subnet mask & How can it help me?

So what is a /32 bit mask? A /32 bit mask would be 32 one’s, leaving just NO zero’s that could be used for host network addressing. In other words, you get just a single IP address. What use is that? Why would I want a network that has no other hosts on it and doesn’t even have room for a default gateway IP address to get to other networks? Let me show you how useful this can be…

Say that we have a Cisco router. On that router we want to have a few loopback adaptors. These are virtual network adaptors that are created on the router for special purposes like representing the router as a router ID, testing, and update sources for communication. As the loopback adaptor is directly connected to the router, it doesn’t need any default gateway to communicate as a PC would with the same IP address. For this reason, a loopback adaptor in a network with only a single useable IP address can still communicate because it is part of the router.  Let’s look at some configuration…

Say I take the IP address and subnet it with a /30 (as we talked about above). That would give me 4 IP addresses before I subtract the network and broadcast. I could then take 3 of these IP addresses, assign them as loopback adaptors, then take the 4th IP address (the network), summarize these 3 loopback adaptors into a single IP, and advertise all 3 using a routing protocol. Here is the configuration example:

loopback 2

ip address


loopback 3

ip address


loopback 4

ip address

Router(config)# router ospf 1 Router(config-router)# area 1 range

Router(config-router)# network x.x.x.x

This would create the 3 loopback adaptors, then summarize them into a single IP address, and send them out to our other OSPF networks to allow those networks to communicate with us and for us to communicate with them.

In Summary

While I was never too crazy about math, I actually enjoy IP subnetting because I like the challenge and once you get it down, it is not as difficult as it seems. If you are looking for a good reference for IP subnetting, I can make two suggestions- My IP Subnetting Charts and the Videos at LearntoSubnet. After reading this article, I hope you can see how useful /30 and /32 bit subnet masks can be and how they can help you to chose the most efficient IP address for the job.

Do you have questions about IP Network Subnetting, Troubleshooting, or Cisco Routers? If so, please visit our Cisco Router discussion forums.

To learn more about Cisco networking, consider the Train Signal CCNA Video Training package!

Related Topics:


Don't have a login but want to join the conversation? Sign up for a Petri Account

Comments (4)

4 responses to “How /30 and /32 bit IP subnet masks can help you with Cisco Networking”

  1. […] How /30 and /32 bit IP subnet masks can help you with Cisco – PetriBit masks are used to access specific bits in a byte of data. This is often useful as a method of iteration, for example when sending a byte of data serially out a … […]

  2. <p>Hi there, thanks for the answer. I have a silly question. I am not into networking so don't understand network technology. The question is: What is a network adaptor? Under the CIDR /32 explanation you said the Cisco router has virtual network adaptor. What is a virtual network adaptor? Also you have mentioned "<span style="color: rgb(34, 34, 34);">As the loopback adaptor is directly connected to the router, it doesn’t need any default gateway to communicate as a PC would with the same IP address". Are you trying to say that a PC when connecting to itself like when you do a curl localhost, that this loopback request has to go through a gateway? Thanks a lot!!</span></p>

Leave a Reply

Live Webinar - Thursday, December 2nd! Active Directory Masterclass: AD Configuration Strategies for Stronger SecurityREGISTER NOW - Thursday, December 2, 2021 @ 1 pm ET

Active Directory (AD) is leveraged by over 90% of enterprises worldwide as the authentication and authorization hub of their IT infrastructure—but its inherent complexity leaves it prone to misconfigurations that can allow attackers to slip into your network and wreak havoc. 

Join this session with Microsoft MVP and MCT Sander Berkouwer, who will explore:

  • Whether you should upgrade your domain controllers to Windows Server
    2019 and beyond
  • Achieving mission impossible: updating DCs within 48 hours
  • How to disable legacy protocols and outdated compatibility options in
    Active Directory

Sponsored by: