As a true coffee addict and network junkie you are working on the network of a world famous coffeeshop. Today your caffeine rush kicks in and you have a sudden desire to clean up some of the routing tables on the company routers. Let's see what you can do here with a couple of prefix-lists. Black......no sugar, no milk!
Router Mint advertises a bunch of prefixes to router Vanilla, take a quick look at the routing table to see them.
You are only allowed to use one prefix-list.
Create a single prefix-list statement to filter out all /32 networks in the 1.0.0.0 range, as a result the 1.0.0.0 /30's should still be in Vanilla's routing table.
Create a single prefix-list statement to filter out any subnet in the Class B network range.
Create a single prefix-list statement to filter out any subnet in the Class C network range that has a subnetmask of /25, /26 or /27. As a result all the Class C subnets with /24 or higher than /27 should still be in Vanilla's routing table.
Create a single prefix-list statement to filter out all subnets in the 2.0.0.0 range which has less than 256 IP addresses.
Change your prefix-list so that only the default-route is allowed, as a result only the default route should be in Vanilla's routing table.
It took me 1000s of hours reading books and doing labs, making mistakes over and over again until I mastered all the routing protocols for CCNP.
Would you like to be a master of routing too? In a short time without having to read 900 page books or google the answers to your questions and browsing through forums?
I collected all my knowledge and created a single ebook for you that has everything you need to know to become a master of routing.
You will learn all the secrets about BGP, filtering, prefix-lists, route-maps and more.
Create a single prefix-list statement to filter out any subnet in the Class B network range.
I've set this up using
Code:
ip prefix-list deny 128.0.0.0/2 le 32
and it worked as expected, i.e. the ip route on Vanilla is the same as in the video. My thinking is that the prefix indicated is 128.0.0.0-191.255.255.255, and the prefix length takes care of all subnet masks of the entire Class B range.
Kindly indicate what is the thinking behind making the config in the tutorial
The class B address space starts with 128.0.0.0 and has 16 bits for the network address and 16 bits for the host address. In binary it starts with "10".
We start with 128.0.0.0/2 because we want to match on the "10". This will match all class B networks.
Anything with a /16 mask in the class B range is a "network".
Anything with a /15, /14 or larger mask in the class B range is a "summary" or "supernet".
Anything with a /17 or smaller mask in the class B range is a "subnet".
Code:
ip prefix-list deny 128.0.0.0/2 ge 17
Now look again at this prefix-list. It will match on everything in the 128.0.0.0/2 range (class and the subnet can be everything between /17 and /32. This will match "all subnets" within the class B range.
Code:
ip prefix-list deny 128.0.0.0/2 le 32
And look again at your prefix-list. It matches on the class B range but matches on subnet masks of /32 and larger. This will include:
Subnets ( /17 and smaller)
Class B networks ( /16)
Summaries / Supernets ( /15 and larger)
This meant you had to "pick" a suitable subnet. So even if you only required 10 IP addresses you would pick a Class C network that gives you 256 IP addresses. If you required 1000 IP addresses you would pick a class B network that gives you 65k something IP addresses.
Classless means you can pick any subnet mask you like. Nowadays we really don't care anymore about Class A,B or C.
Technically 192.168.1.0 /24 is a network, 192.168.2.0 /24 is also a network. 192.168.1.0 /27 is a "subnet" of the 192.168.1.0 /24 network.
172.16.0.0 /16 is a network and 172.16.1.0 /24 is a subnet of the 172.16.0.0 /16 network. Most people use "network" and "subnet" interchangeably however.
VLSM (Variable Length Subnet Mask) is just a funky name to say that we can use "any" subnet mask you like...../20, /28, /12 or whatever you want