policy route community-list [ standard | expanded ] { <list-num> | <list-name> } rule <rule-num> action
Specifies the action to take when packets match a community list rule.
Packets that match this rule are forwarded.
- list-num
- The number of a defined community list.
A standard community list number ranges from 1 through 99 and an expanded community list number ranges from 100 through 199.
- list-name
- A string identifier for the community list.
The string is a set of characters.
- rule-num
- The rule number for a defined community-list.
- deny
- Silently drops the packet that match this rule.
- permit
- Forwards packets that match this rule.
Configuration mode
policy {
route {
community-list {
standard [list-num | list-name ]
expanded [list-num | list-name ]
{
rule rule-num {
action {
deny
permit
}
}
}
}
}
}
Use the set form of this command to specify the action to take when packets match a community list rule.
If the action for a rule is deny, packets that meet the match criteria of the rule are silently dropped. If the action for the rule is permit, destination-based routing is performed; that is, packets are sent by using the normal forwarding channels.
Use the delete form of this command to restore the default action to take for packets that match a community list rule.
Use the show form of this command to display the action settings to take when packets match a community list rule.