Step 1 |
enable
|
Enables
privileged EXEC mode.
|
Step 2 |
configure
terminal
Device# configure terminal
|
Enters global
configuration mode.
|
Step 3 |
ip
extcommunity-list
expanded-list {permit |
deny}
rt
value
Device(config)# ip extcommunity-list 22 permit rt 101:100
|
Configures an
IP extended community list to configure Virtual Private Network (VPN) route
filtering, such that routes with the specified RT are in the extended community
list.
|
Step 4 |
exit
Device(config-extcomm-list)# exit
|
Exits the
configuration mode and enters the next higher configuration mode.
|
Step 5 |
route-map
map-tag {permit |
deny} [sequence-number]
Device(config)# route-map rt-mapping permit 10
|
Configures a
route map that permits or denies the routes allowed by the subsequent
match command.
|
Step 6 |
match
extcommunity
extended-community-list-name
Device(config-route-map)# match extcommunity 22
|
Matches on the
specified community list.
|
Step 7 |
set
extcomm-list
extcommunity-name
delete
Device(config-route-map)# set extcomm-list 22 delete
|
Deletes the RT
from routes that are in the specified extended community list.
|
Step 8 |
set
extcommunity
rt
range
start-value
end-value
Device(config-route-map)# set extcommunity rt range 500:1 500:9
|
For the
routes that are permitted by the route map, sets the specified RT range of
extended community attributes, inclusive.
-
For this
example, routes that match extended community 22 have their RT extended
community attribute values set to 500:1, 500:2, 500:3, 500:4, 500:5, 500:6,
500:7, 500:8, and 500:9.
|
Step 9 |
exit
Device(config-route-map)# exit
|
Exits
route-map configuration mode and enters global configuration mode.
|
Step 10 |
route-map
map-tag {permit |
deny} [sequence-number]
Device(config)# route-map rt-mapping permit 20
|
(Optional)
Configures a route map entry that permits routes.
|
Step 11 |
exit
Device(config-route-map)# exit
|
Exits
route-map configuration mode and enters global configuration mode.
|
Step 12 |
router
bgp
as-number
Device(config)# router bgp 3000
|
Enters router
configuration mode and creates a BGP routing process.
|
Step 13 |
neighbor
ip-address
remote-as
autonomous-system-number
Device(config-router)# neighbor 192.168.103.1 remote-as 3000
|
Specifies that
the neighbor belongs to the autonomous system.
|
Step 14 |
address-family
vpnv4
Device(config-router)# address-family vpnv4
|
Enters
address family configuration mode to configure BGP peers to accept address
family-specific configurations.
|
Step 15 |
neighbor
ip-address
activate
Device(config-router-af)# neighbor 192.168.103.1 activate
|
Activates the
specified neighbor.
|
Step 16 |
neighbor
ip-address
route-map
map-tag
out
Device(config-router-af)# neighbor 192.168.103.1 route-map rt-mapping out
|
Applies the
specified outgoing route map to the specified neighbor.
|
Step 17 |
exit-address-family
Device(config-router-af)# exit-address-family
|
Exits address
family configuration mode and enters privileged EXEC mode.
|