
Cisco IOS prefix lists work similar access lists for route advertisements (prefixes). While extended, and to a limited extent, standard access lists can be configured to match prefix announcements, prefix lists are far more powerful. Like an access lists; a prefix list contains one or more ordered entries which are processed sequentially. As with access lists, the evaluation of a prefix against a prefix list ends as soon as a match is found.
Additional keywords like “GE” and “LE” can be added to the prefix-list, the “len” value changes its meaning. When using GE and LE, the len value specifies how many bits of the prefix you are checking, starting with the most significant bit.
Most CCNP students find prefix-lists challenging so this lab is an effort to help you understand how prefix-lists work by using them as route filters. We will build a simple network consisting of four Cisco routers and a switch, after which we will configure an IP prefix-last using the keywords “GE” and “LE” to filter IP routing.
Learning Objectives:
- Review basic router configuration.
- Review basic BGP configuration.
- Understand and configure IP prefix-list.
- Understand and configure keywords “GE” and “LE”.
- Apply IP prefix-list to filter routing.
Basic Configuration:
- Configure IP addresses and subnet mask on Loopback interfaces of all routers as shown in the network diagram.
- Configure IP addresses and subnet mask on Fastethernet interfaces of all routers as shown in the network diagram.
- Configure IP addresses and subnet mask on Serial interfaces of all routers as shown in the network diagram.
- Insure that all Fastethernet and serial interfaces are not administrative down.
BGP Configuration:
- Enable BGP routing protocol on R1 as autonomous system 65101.
- Configure R2 and R3 as BGP neighbors.
- Enable BGP routing protocol on R2 as autonomous system 65102.
- Configure R1 as BGP neighbors.
- Advertise the 172.16.10.0/24 network.
- Advertise the 172.16.11.0/24 network.
- Enable BGP routing protocol on R3 as autonomous system 65103.
- Configure R1 as BGP neighbors.
- Display routing table on R3
R3#sh ip route bgp
172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
B 172.16.10.0/24 [20/0] via 10.1.1.1, 00:03:56
B 172.16.11.0/24 [20/0] via 10.1.1.1, 00:03:56
B 172.16.0.0/16 [20/0] via 10.1.1.1, 00:03:56
Prefix-List Configuration:
- On R2 create an IP prefix-list to filter the 172.16.0.0/16 network to include only the 172.16.10.0/24 and 172.16.11.0/24 networks.
- Apply the IP prefix-list to the BGP routing on R2.
- Display the routing table on R3.
R3#sh ip route bgp
172.16.0.0/24 is subnetted, 2 subnets
B 172.16.10.0 [20/0] via 10.1.1.1, 00:03:19
B 172.16.11.0 [20/0] via 10.1.1.1, 00:03:19
Note: the 172.16.0.0/16 route no longer exist in the routing table.
This conclude this Free CCNP GNS3 Lab.
Download this lab now to see more: BGP prefix-list (531.1 KiB, 2,221 hits)

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.