Cisco Slash Notation

In this Cisco CCNA tutorial, you’ll learn how to write and convert the dotted decimal subnet mask into slash (/) notation. Scroll down for the video and also the text tutorial.

 

Cisco Slash Notation Video Tutorial

YouTube Video

Jacob Stearns

Jacob Stearns

I purchased your CCNA course at the beginning of this year and just wanted to thank you very much for the amount of effort and care you put into producing high quality content. Because of your efforts (and my own, of course) I have now achieved my CCNA qualification.
I am just so astounded and so grateful to have the opportunity to have access to spectacular instructors such as yourself. I began this journey knowing nothing about the Cisco world with not much IT experience and came out the other end confident and motivated thanks to your ability to teach so effectively.
I found you were spectacular at being able to explain the concepts in a concise, understandable manner while still being detailed. I really did find that your teaching style is easy to digest and I really appreciate your non-judgemental and authentic attitude to see the best in your students.
I always found myself coming back to your videos when I would come across some things that I couldn’t understand from other sources of study – time and time again, you were able to clear things up in a way that I found most other instructors couldn’t.
Anyways, I’d like to thank you again. It was tough for me at times and there was a lot of self doubt, but it is going to dramatically improve me in my job. And thank you for working so hard to put up such great quality content.

Jacob Stearns

 

Subnet Mask in Slash Notation

 

In the example below, the subnet mask 255.255.255.0 is in decimal notation. We can write the subnet mask in binary, and you can see a line between the network and host portions. It's always contiguous 1's and then followed by a block of contiguous 0's. Because it's contiguous, we can count how many 1's that we have in a row.

 

Here, we have got 24 1's in a row. Each block is an octet (8), so that's 8, 16, 24. Therefore the dotted decimal notation 255.255.255.0 can be written as /24 in slash notation. Those two things both mean the same thing.

 

Cisco Subnet Mask in Slash Notation

 

If we had 255.255.0.0 as a subnet mask, we could write that as /16, and so on. Whenever you configure a Cisco router or switch on IOS, the IP address and the subnet mask configuration are written out in the full dotted decimal notation. But whenever we're having a conversation with somebody, or if we are creating a network diagram, more commonly, we will use slash notation.

 

It's not much fun to be saying 255.255.255.0 all the time. It's much easier to say /24. Also, /24 takes up much less space on your network diagrams, so you can have your diagrams looking a lot neater and tidier. There's the network portion for a /24 highlighted.

 

Cisco Subnet Mask in Slash Notation 1

 

Subnet Mask in Slash Notation Example 2

 

Let's look at another example. We have IP address 10.10.10.15 /255.0.0.0, and hopefully, you can just by looking at this, you're going to see that that's going to be a /8. The more you get used to working with IP addresses and subnets, you'll very quickly be able to see where the lines are by just looking at the actual address and mask.

 

In the example below, the IP address can be written as 10.10.10.15 255.0.0.0 or 10.10.10.15/8. The network address is 10.0.0.0/8, not 10.10.10.0 /8.

 

Subnet Mask in Slash Notation Example 2

 

When we write this out, it's just the network portion of the address that we specify. It's a /8, so it's only the first octet that includes the network portion, so that is the 10. All the rest of the address, the last three octets is the host portion.

 

When we write this address, it would be 10.0.0.0/8, and the available addresses would be 10.0.0.1 for our first host. The last host would be 10.255.255.254. We can't use 10.255.255.255 because that would be the broadcast address, and 10.0.0.0 is the network address.

 

Additional Resources

 

Subnet Mask: https://study-ccna.com/subnet-mask/

Configure IP Addresses and Unique Subnets for New Users: https://www.cisco.com/c/en/us/support/docs/ip/routing-information-protocol-rip/13788-3.html

About Slash Notation: https://www.watchguard.com/help/docs/help-center/en-US/Content/en-US/Fireware/overview/networksecurity/slash_about_c.html

Subnetting Practice Questions: https://www.flackbox.com/subnetting-practice-questions

 

Want to practice Cisco CCNA technologies on your laptop? Download my complete 350-page Cisco CCNA Lab Guide for free.

 

Click Here to get my Cisco CCNA Gold Bootcamp, the highest rated CCNA course online with a 4.8 star rating from over 20,000 public reviews.

Libby Teofilo

Text by Libby Teofilo, Technical Writer at www.flackbox.com

Libby’s passion for technology drives her to constantly learn and share her insights. When she’s not immersed in the tech world, she’s either lost in a good book with a cup of coffee or out exploring on her next adventure. Always curious, always inspired.