Configuring As-Path Lists - Cisco Nexus 7000 Series Configuration Manual

Nx-os unicast routing configuration
Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

Configuring Route Policy Manager
S e n d d o c u m e n t c o m m e n t s t o n e x u s 7 k - d o c f e e d b a c k @ c i s c o . c o m .

Configuring AS-path Lists

You can specify an AS-path list filter on both inbound and outbound BGP routes. Each filter is an access
list based on regular expressions. If the regular expression matches the representation of the AS-path
attribute of the route as an ASCII string, then the permit or deny condition applies.
SUMMARY STEPS
1.
2.
3.
4.
DETAILED STEPS
Command
Step 1
config t
Example:
switch# config t
switch(config)#
Step 2
ip as-path access-list name {deny |
permit} expression
Example:
switch(config)# ip as-path access-list
Allow40 permit 40
Step 3
show {ip | ipv6} as-path-access-list
name
Example:
switch(config)# show ip
as-path-access-list Allow40
Step 4
copy running-config startup-config
Example:
switch# copy running-config
startup-config
The following example shows how to create an AS-path list with two entries and apply the AS path list
to a BGP neighbor:
switch# config t
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
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
16-8
config t
ip as-path access-list name {deny | permit} expression
show {ip | ipv6} as-path list name
copy running-config startup-config
Chapter 16
Configuring Route Policy Manager
Purpose
Enters configuration mode.
Creates a BGP AS-path list using a regular expression.
(Optional) Displays information about as-path access
lists.
(Optional) Saves this configuration change.
OL-20002-02

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents