1 monitor and debug command, 1 show ip prefix-list Page 381
Page 381
381
mode items can be defined first to fast remove the unmatched routing messages,
however if all the items are set to deny mode, any route will not be able to pass the
filtering of this address prefix list. We can define a permit 0.0.0.0/0 le 32 item after
several deny mode items are defined so to permit all other routing messages pass
through. Only default route will be matched in less-equal 32 is not specified.
13.2.5.1 Monitor And Debug Command
13.2.5.1.1 show ip prefix-list
Command: show ip prefix-list [<list-name> [<ip_addr/len> [first-match | longer] |
seq <sequence-number>]]
Function:
Show by prefix-list names.
Parameter: <list-name>
is the name of prefix-list, <ip_addr/len> is the prefix ip address
and the length of mask, first-match stands for the first route table matched with specified
ip address, longer means longer prefix is required, seq means show by sequence
number, <sequence-number> is the sequence number, ranging between 0 ~
4294967295.
Default:
None
Command Mode:
all modes
Usage Guide:
All prefix-list will be listed when no prefix-list name is specified.
Example:
Switch# #show ip prefix-list
ip prefix-list 1: 1 entries
deny any
ip prefix-list mylist: 1 entries
deny 1.1.1.1/8
Switch#show ip prefix-list mylist 1.1.1.1/8
seq 5 deny 1.1.1.1/8 (hit count: 0, recount: 0)
Displayed information
Explanation
ip prefix-list mylist: 1 entries
Show a prefix-list named mylist which
includes 1 instance.
seq 5 deny 1.1.1.1/8 (hit count: 0,
recount: 0)
Show the prefix-list contents sequence
numbered 5. hit count: 0 means being hit
0 time, recount: 0 means referred 0 time.
13.2.5.1.2 show ip prefix-list
Command: show ip prefix-list [
Function:
Show the prefix-list contents.