cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
12460
Views
0
Helpful
1
Replies

Loopback's subnet mask

fsebera
Level 4
Level 4

Can someone explain the use of the loopback subnet mask.

Cisco's documentation reports many different options and is not consistent.

I.E

Interface loopback 20

ip address 192.168.20.1 255.255.255.0

---OR---

Interface loopback 20

ip address 192.168.20.1 255.255.255.252

---OR---

Interface loopback 20

ip address 192.168.20.1 255.255.255.255

If the loopback interface is only used for management, (and by many different protocols for many different reasons but Not routing), should this always be /32? Is there a method to the madness? Is there a reason to have something other than a /32 on the loopback interface?

Thanks again!

Frank

1 Reply 1

DALE FRANCIS
Level 3
Level 3

If you have tons of address space to waste then it's okay to give them a subnet.

There is no hard and fast rule to use a 32 bit mask or any other mask for that matter, it all depends on your requirments.

Say for example you wanted to use a loopback and had an interface in the box, you could assign a 30 bit mask to the loopback and use "ip unnumbered loopback x on the interface's". This was you don't really have to waste address space adn could make a interface appear as a decent subnet.