Step 1 |
enable
|
Enables
privileged EXEC mode.
|
Step 2 |
configure
terminal
Device# configure terminal
|
Enters global
configuration mode.
|
Step 3 |
named-ordering-route-map
enable ]
Device(config)# named-ordering-route-map enable
|
Enables
ordering of route-maps based on a string provided by the user.
|
Step 4 |
route-map
map-tag
[permit |
deny ] [sequence-number ] [
ordering-seq
sequence-name
Device(config)# route-map alpha permit ordering-seq sequence1
|
Configures a
route map and specifies how the packets are to be distributed.
ordering-seq indicates the sequence that is to be
used for ordering of route-maps.
|
Step 5 |
match
community {standard-list-number
|
expanded-list-number
|
community-list-name
[exact]}
Device(config-route-map)# match community 1
|
Matches a
Border Gateway Protocol (BGP) community list.
|
Step 6 |
set ip
precedence [number |
name]
Device(config-route-map)# set ip precedence 5
|
Sets the IP
Precedence field when the community list matches.
Note
|
You can
specify either a precedence number or a precedence name.
|
|
Step 7 |
exit
Device(config-route-map)# exit
|
Exits route-map
configuration mode and returns to global configuration mode.
|
Step 8 |
router bgp
autonomous-system
Device(config)# router bgp 45000
|
Enables a BGP
process and enters router configuration mode.
|
Step 9 |
table-map
route-map-name
Device(config-router)# table-map rm1
|
Modifies the
metric and tag values when the IP routing table is updated with BGP learned
routes.
|
Step 10 |
exit
Device(config-router)# exit
|
Exits router
configuration mode and returns to global configuration mode.
|
Step 11 |
ip community-list
standard-list-number {permit |
deny} [community-number]
Device(config)# ip community-list 1 permit 2
|
Creates a
community list for BGP and controls access to it.
|
Step 12 |
interface
type
number
Device(config)# interface gigabitethernet 0/0/0
|
Specifies the
interface (or subinterface) and enters interface configuration mode.
|
Step 13 |
bgp-policy {source |
destination}
ip-prec-map
Device(config-if)# bgp-policy source ip-prec-map
|
Classifies
packets using IP precedence.
|
Step 14 |
exit
|
Exits
interface configuration mode and returns to global configuration mode.
|
Step 15 |
ip
bgp-community new-format
Device(config)# ip bgp-community new-format
|
(Optional)
Displays the BGP community number in AA:NN (autonomous system:community
number/4-byte number) format.
|
Step 16 |
end
|
Exits global
configuration mode and returns to privileged EXEC mode.
|