Specifications
Send document comments to nexus3k-docfeedback@cisco.com.
13-9
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, Release 5.0(3)U2(2)
OL-25782-02
Chapter 13 Configuring Route Policy Manager
Configuring Route Policy Manager
DETAILED STEPS
This example shows how to create an AS-path list with two entries and apply the AS path list to a BGP
neighbor:
switch# configure terminal
switch(config)# ip as-path access-list AllowAS permit 64510
switch(config)# ip as-path access-list AllowAS permit 64496
switch(config)# copy running-config startup-config
switch(config)# router bgp 65536:20
switch(config-router)# neighbor 192.0.2.1/16 remote-as 65535:20
switch(config-router-neighbor)# address-family ipv4 unicast
switch(config-router-neighbor-af)# filter-list AllowAS in
Configuring Community Lists
You can use community lists to filter BGP routes based on the community attribute. The community
number consists of a 4-byte value in the aa:nn format. The first two bytes represent the autonomous
system number, and the last two bytes represent a user-defined network number.
When you configure multiple values in the same community list statement, all community values must
match to satisfy the community list filter. When you configure multiple values in separate community
list statements, the first list that matches a condition is processed.
Use community lists in a match statement to filter BGP routes based on the community attribute.
SUMMARY STEPS
1. configure terminal
Command Purpose
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Enters configuration mode.
Step 2
ip as-path access-list name {deny |
permit} expression
Example:
switch(config)# ip as-path access-list
Allow40 permit 40
Creates a BGP AS-path list using a regular expression.
Step 3
show ip as-path-access-list name
Example:
switch(config)# show ip
as-path-access-list Allow40
(Optional) Displays information about as-path access
lists.
Step 4
copy running-config startup-config
Example:
switch# copy running-config
startup-config
(Optional) Saves this configuration change.