ip prefix-list
ip prefix-list
name
[
seq
number
]
{
permit
|
deny
}
{
source-ip-address / L
}
ip prefix-list
name
description
string
no ip prefix-list
name
[
seq
number
]
{
permit
|
deny
}
{
source-ip-address / L
}
no ip prefix-list
name
description
string
By default, routes that do not match a prefix list are learned or advertised. To prevent a route from being learned or advertised, you must configure and apply a prefix list to deny the route.
- permit
- Indicates that designated routes will be allowed; that is, either learned or advertised, depending on how the prefix list is applied.
- deny
- Indicates that designated routes will be denied; that is, will not be learned or will not be advertised, depending on how the prefix list is applied.
- [ ge value ] [ le value ]
- The keyword le indicates the maximum prefix length that can be matched. The keyword ge indicates minimum prefix length that can match. Possible values for ge (greater than or equal to) and le (less than or equal to) are 1 through 32. The ge and le values can be used separately or together.
Global configuration mode
The
no form of the command disables the prefix list.
A route is defined by the destination’s IP address and network mask. Because the default action is permit, all other routes (routes not explicitly permitted or denied by the filters) can be learned or advertised.
Prefix lists can be applied to RIP globally using the separate
prefix-list command or at the interface level using the separate
ip rip prefix-list command.
The following example creates four prefix lists. Three of the prefix lists permit a route for a different network. The last prefix list denies a route for one network. The routes are defined but not applied in the example.
device# configure terminal device(config)# ip prefix-list list1 permit 10.53.4.1 255.255.255.0 device(config)# ip prefix-list list2 permit 10.53.5.1 255.255.255.0 device(config)# ip prefix-list list3 permit 10.53.6.1 255.255.255.0 device(config)# ip prefix-list list4 deny 10.53.7.1 255.255.255.0