![]() ![]() The following example shows how to accept a mask length of up to 24 bits in routes with the prefix 172.20.10.171/16: RP/0/ RSP0/CPU0:router(config)# ipv4 prefix-list list1 RP/0/ RSP0/CPU0:router(config-ipv4_pfx)# permit 172.20.10.171/16 le 24 The following example shows how to permit the prefix 172.18.0.0/16: RP/0/ RSP0/CPU0:router(config)# ipv4 prefix-list list1 RP/0/ RSP0/CPU0:router(config-ipv4_pfx)# permit 172.18.0.0/16 RP/0/ RSP0/CPU0:router# configure RP/0/ RSP0/CPU0:router(config)# ipv6 prefix-list list3 RP/0/ RSP0/CPU0:router(config-ipv6_pfx)# no 30 ![]() Uncommitted changes found, commit them? : y RP/0/ RSP0/CPU0:router# show prefix-list ipv6 The following example shows how to add deny conditions to list3, then use the no form of the command to remove the condition with the sequence number 30: RP/0/ RSP0/CPU0:router(config)# ipv6 prefix-list list3 RP/0/ RSP0/CPU0:router(config-ipv6_pfx)# deny 2000:1::/64 ge 25 RP/0/ RSP0/CPU0:router(config-ipv6_pfx)# deny 3000:1::/64 le 32 RP/0/ RSP0/CPU0:router(config-ipv6_pfx)# deny 4000:1::/64 ge 25 The following example shows how to deny mask lengths greater than 25 bits in all address space: RP/0/ RSP0/CPU0:router(config)# ipv6 prefix-list list2 RP/0/ RSP0/CPU0:router(config-ipv6_pfx)# 70 deny 2000:1::/64 ge 25 The following example shows how to deny all masks with a length greater than 25 bits routes with a prefix of 172.18.30.154/16: RP/0/ RSP0/CPU0:router(config)# ipv4 prefix-list list1 RP/0/ RSP0/CPU0:router(config-ipv4_pfx)# 100 deny 172.18.30.154/16 ge 25 The following example shows how to deny all routes with a prefix of 10.3.32.154: RP/0/ RSP0/CPU0:router(config)# ipv4 prefix-list list1 RP/0/ RSP0/CPU0:router(config-ipv4_pfx)# 80 deny 10.3.32.154 le 32 The following example shows how to deny the route 10.0.0.0/0: RP/0/ RSP0/CPU0:router(config)# ipv4 prefix-list list1 RP/0/ RSP0/CPU0:router(config-ipv4_pfx)# 50 deny 10.0.0.0/0 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |