| Step 1 |
enable
Example:
|
Enables privileged EXEC mode.
- Enter your password if prompted.
|
| Step 2 |
configure terminal
Example:
Device# configure terminal
|
Enters global configuration mode.
|
| Step 3 |
route-map
route-map-name [permit | deny
[sequence-number]]
Example:
Device(config)# route-map rm1
|
Defines a route map to control redistribution and enters route-map configuration mode.
|
| Step 4 |
match community {standard-list-number
|
expanded-list-number
|
community-list-name
[exact]}
Example:
Device(config-route-map)# match community 1
|
Matches a Border Gateway Protocol (BGP) community list.
|
| Step 5 |
set ip precedence [number |
name]
Example:
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 6 |
exit
Example:
Device(config-route-map)# exit
|
Exits route-map configuration mode and returns to global configuration mode.
|
| Step 7 | router bgp
autonomous-system
Example:
Device(config)# router bgp 45000
|
Enables a BGP process and enters router configuration mode.
|
| Step 8 |
table-map
route-map-name
Example:
Device(config-router)# table-map rm1
|
Modifies the metric and tag values when the IP routing table is updated with BGP learned routes.
|
| Step 9 |
exit
Example:
Device(config-router)# exit
|
Exits router configuration mode and returns to global configuration mode.
|
| Step 10 | ip community-list
standard-list-number {permit |
deny} [community-number]
Example:
Device(config)# ip community-list 1 permit 2
|
Creates a community list for BGP and controls access to it.
|
| Step 11 | interface
type
number
Example:
Device(config)# interface gigabitethernet 0/0/0
|
Specifies the interface (or subinterface) and enters interface configuration mode.
|
| Step 12 |
bgp-policy {source |
destination}
ip-prec-map
Example:
Device(config-if)# bgp-policy source ip-prec-map
|
Classifies packets using IP precedence.
|
| Step 13 |
exit
Example:
|
Exits interface configuration mode and returns to global configuration mode.
|
| Step 14 |
ip bgp-community new-format
Example:
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 15 |
end
Example:
|
Exits global configuration mode and returns to privileged EXEC mode.
|