policy route extcommunity-list [ standard | expanded ] { <list-num> | <list-name> } rule <rule-num> action
Specifies the action to take when packets match an extended 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 packets that match.
- permit
- Forward packets that match the rule.
Configuration mode
policy {
route {
extcommunity-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 define the action to specify the action to take when packets match an extended community list rule.
If the action for a rule is deny, packets that match the 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 the criteria for a rule.
Use the show form of this command to display the action to take for a rule.