Vyatta Network OS Documentation

Learn how to install, configure and operate the Vyatta NOS, which helps drive our virtual networking & physical platforms portfolio.

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.

set policy route community-list [ standard | expanded ] { list-num | list-name } rule rule-num action { deny | permit }
delete policy route community-list [ standard | expanded ] { list-num | list-name } rule rule-num action
show policy route community-list [ standard | expanded ] { list-num | list-name } rule rule-num action

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.

Note: For more information about BGP community-list, see the “BGP Communities” section in Ciena Vyatta Network OS BGP Configuration Guide.