Variable-Scale-Subnet-Mask
Variable-Scale-Subnet-Mask
What is VLSM?
VLSM (Variable Length Subnet Mask) is a technique that network administrators employ in order
to use their IP subnet(s) in a more effective manner. By using VLSM, a long mask can be used on
a network that has a few hosts and a short net mask on subnets that have a large number of
hosts. To use VLSM, however, a routing protocol that supports it has to be used. Cisco routers
support the concept with the following protocols: Integrated IS-IS (Integrated Intermediate
System to Intermediate System), EIGRP (Enhanced Interior Gateway Routing Protocol), RIP v2,
Open Shortest Path First (OSPF), and static routing. VLSM also allows more than one subnet
mask within the same network address space, which is also referred to as “subnetting a subnet.”
Slash Notation
What is Slash Notation?
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 IP address, a forward slash (/), and the subnet mask number.
CIDR Value/
Subnet Mask Slash Notation
255.0.0.0 /8
255.128.0.0 /9
255.192.0.0 /10
255.224.0.0 /11
255.240.0.0 /12
255.248.0.0 /13
255.252.0.0 /14
255.254.0.0 /15
255.255.0.0 /16
255.255.128.0 /17
255.255.192.0 /18
255.255.224.0 /19
255.255.240.0 /20
255.255.248.0 /21
255.255.252.0 /22
255.255.254.0 /23
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
The /8 through /15 can only be used with Class A network addresses. /16 through /23 can be
used by Class A and B network addresses. /24 through /30 can be used by Class A, B, and C
network addresses. This is a big reason why most companies use Class A network addresses.
Since they can use all subnet masks, they get the maximum flexibility in network design.
A subnet mask is a 32 bits address used to distinguish between a network address and a host
address in IP address. A subnet mask identifies which part of an IP address is the network address
and the host address. They are not shown inside the data packets traversing the Internet. They
carry the destination IP address, which a router will match with a subnet.
The use of /31 networks is a special case defined by RFC 3021 where the two IP addresses in the
subnet are usable for point-to-point links to conserve IPv4 address space. Not all operating
systems support RFC 3021, so use it with caution.
On systems that do not support RFC 3021, the subnet is unusable because the only two
addresses defined by the subnet mask are the null route and broadcast and no usable host
addresses.