About Slash Notation (2024)

Table of Contents
IPv4 IPv6

Your Firebox uses slash notation, also known as CIDR (Classless Inter-Domain Routing)notation, for many purposes, such as policy configuration. You use slash notation differently for IPv4 and IPv6 addresses.

IPv4

Slash notation is a compact way to show or write an IPv4 subnet mask. When you use slash notation, you write the IPaddress, a forward slash (/), and the subnet mask number.

To find the subnet mask number:

  1. Convert the decimal representation of the subnet mask to a binary representation.
  2. Count each “1” in the subnet mask. The total is the subnet mask number.

For example, to write the IPv4address 192.168.42.23 with a subnet mask of 255.255.255.0 in slash notation:

  1. Convert the subnet mask to binary.
    In this example, the binary representation of 255.255.255.0 is:
    11111111.11111111.11111111.00000000.
  2. Count each 1in the subnet mask.
    In this example, there are twenty-four (24).
  3. Write the original IPaddress, a forward slash (/), and then the number from Step 2.
    The result is 192.168.42.23/24.

This table shows common network masks and their equivalents in slash notation.

Network Mask Slash Equivalent
255.0.0.0 /8
255.255.0.0 /16
255.255.255.0 /24
255.255.255.128 /25
255.255.255.192 /26
255.255.255.224 /27
255.255.255.240 /28
255.255.255.248 /29
255.255.255.252

/30

255.255.255.254 /31
255.255.255.255 /32

IPv6

In IPv6, slash notation is used to represent the network identifier prefix for an IPv6 network. The prefix is expressed as a slash (/) followed by the prefix size, which is a decimal number between 1 and 128. The CIDRnotation works exactly the same as with IPv4, which means if you have a /48, that means the first 48 bits of the address are the prefix.

This table shows common IPv6 network prefixes and the number of IPv6 subnets and IPv6 addresses they support.

Prefix Number of Subnets
/64 1 IPv6 subnet with up to 18,446,744,073,709,551,616 IPv6 host addresses
/56 256 /64 subnets
/48 65,536 /64 subnets

A network site that is assigned a /48 prefix can use prefixes in the range /49 to /64 to define valid subnets.

See Also

About IP Addresses

About Wildcard IPv4Addresses

Give Us FeedbackGet SupportAll Product DocumentationTechnical Search

© 2024 WatchGuard Technologies, Inc. All rights reserved. WatchGuard and the WatchGuard logo are registered trademarks or trademarks of WatchGuard Technologies in the United States and other countries. Various other trademarks are held by their respective owners.

About Slash Notation (2024)
Top Articles
Latest Posts
Article information

Author: Dan Stracke

Last Updated:

Views: 6451

Rating: 4.2 / 5 (63 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Dan Stracke

Birthday: 1992-08-25

Address: 2253 Brown Springs, East Alla, OH 38634-0309

Phone: +398735162064

Job: Investor Government Associate

Hobby: Shopping, LARPing, Scrapbooking, Surfing, Slacklining, Dance, Glassblowing

Introduction: My name is Dan Stracke, I am a homely, gleaming, glamorous, inquisitive, homely, gorgeous, light person who loves writing and wants to share my knowledge and understanding with you.