SmartSwitch Router User Reference Manual
133
Chapter 10: BGP Configuration Guide
AS-Path Regular Expression Examples
To import MCI routes with a preference of 165:
To import all routes (.* matches all AS paths) with the default preference:
To export all active routes from 284 or 813 or 814 or 815 or 816 or 3369 or 3561 to
autonomous system 64800.
Using the AS Path Prepend Feature
When BGP compares two advertisements of the same prefix that have differing AS paths,
the default action is to prefer the path with the lowest number of transit AS hops; in other
words, the preference is for the shorter AS path length. The AS path prepend feature is a
way to manipulate AS path attributes to influence downstream route selection. AS path
prepend involves inserting the originating AS into the beginning of the AS prior to
announcing the route to the exterior neighbor.
Lengthening the AS path makes the path less desirable than would otherwise be the case.
However, this method of influencing downstream path selection is feasible only when
comparing prefixes of the same length because an instance of a more specific prefix
always is preferable.
On the SSR, the number of instances of an AS that are put in the route advertisement is
controlled by the
as-count
option of the
bgp set peer-host
command.
ip-router policy create bgp-import-source mciRoutes aspath-regular-
expression "(.* 3561 .*)" origin any sequence-number 10
ip-router policy import source mciRoutes network all preference 165
ip-router policy create bgp-import-source allOthers aspath-regular-
expression "(.*)" origin any sequence-number 20
ip-router policy import source allOthers network all
ip-router policy create bgp-export-destination to-64800 autonomous-
system 64800
ip-router policy create aspath-export-source allRoutes aspath-regular-
expression "(.*(284|813|814|815|816|3369|3561) .*)" origin any
protocol all
ip-router policy export destination to-64800 source allRoutes network
all
Summary of Contents for SmartSwitch Router
Page 1: ...SmartSwitch Router User Reference Manual 9032578 04...
Page 12: ...Notice 12 SmartSwitch Router User Reference Manual...
Page 28: ...Preface 28 SmartSwitch Router User Reference Manual...
Page 68: ...Chapter 3 Bridging Configuration Guide 68 SmartSwitch Router User Reference Manual...
Page 74: ...Chapter 4 SmartTRUNK Configuration Guide 74 SmartSwitch Router User Reference Manual...
Page 84: ...Chapter 5 DHCP Configuration Guide 84 SmartSwitch Router User Reference Manual...
Page 108: ...Chapter 7 VRRP Configuration Guide 108 SmartSwitch Router User Reference Manual...
Page 207: ...SmartSwitch Router User Reference Manual 207 Chapter 12 Multicast Routing Configuration Guide...
Page 208: ...Chapter 12 Multicast Routing Configuration Guide 208 SmartSwitch Router User Reference Manual...
Page 254: ...Chapter 16 IPX Routing Configuration Guide 254 SmartSwitch Router User Reference Manual...
Page 282: ...Chapter 18 Security Configuration Guide 282 SmartSwitch Router User Reference Manual...
Page 294: ...Chapter 19 QoS Configuration Guide 294 SmartSwitch Router User Reference Manual...
Page 298: ...Chapter 20 Performance Monitoring Guide 298 SmartSwitch Router User Reference Manual...
Page 338: ...Chapter 22 WAN Configuration Guide 338 SmartSwitch Router User Reference Manual...