![]() ![]() Use 'show commit changes 1000000023' to view Uncommitted changes found, commit them? : y RP/0/ RSP0/CPU0:router# configure RP/0/ RSP0/CPU0:router(config)# ipv6 prefix-list list1 RP/0/ RSP0/CPU0:router(config-ipv6-pfx)# 10 remark use from july23 forward RP/0/ RSP0/CPU0:router(config-ipv6-pfx)# ![]() In the following example, a remark is made to explain usage: RP/0/ RSP0/CPU0:router# show prefix-list ipv6 In the following example, a remark is made to explain a prefix list entry: RP/0/ RSP0/CPU0:router(config)# ipv4 prefix-list deny-ten RP/0/ RSP0/CPU0:router(config-ipv4_pfx)# 10 remark Deny all routes with a prefix of 10/8 RP/0/ RSP0/CPU0:router(config-ipv4_pfx)# 20 deny 10.0.0.0/8 le 32 RP/0/ RSP0/CPU0:router(config-ipv4_pfx)# end Uncommitted changes found, commit them? : y RP/0/ RSP0/CPU0:router# show ipv6 prefix-list The following example shows how to add permit conditions to list3, then 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)# permit 2000:1::/64 ge 25 RP/0/ RSP0/CPU0:router(config-ipv6_pfx)# permit 3000:1::/64 le 32 RP/0/ RSP0/CPU0:router(config-ipv6_pfx)# permit 3000:1::/64 ge 25 The following example shows how to permit mask lengths from 8 to 24 bits in all address space: RP/0/ RSP0/CPU0:router(config)# ipv6 prefix-list list1 RP/0/ RSP0/CPU0:router(config-ipv6_pfx)# permit 2000:1::/64 ge 8 le 24 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. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |