Step 1 |
enable
|
Enables privileged EXEC mode.
|
Step 2 |
configure
terminal
Router# configure terminal
|
Enters global configuration mode.
|
Step 3 |
router
bgp
as-number
Router(config)# router bgp 100
|
Specifies the number of an autonomous system that identifies the router to other BGP routers and tags the routing information
passed along, and enters router configuration mode.
|
Step 4 |
bgp
log-neighbor-changes
Router(config-router)# bgp log-neighbor-changes
|
Enables logging of BGP neighbor resets.
|
Step 5 |
neighbor
ip-address
remote-as
as-number
Router(config-router)# neighbor 209.165.200.225 remote-as 100
|
Adds an entry to the BGP or multiprotocol BGP neighbor table.
|
Step 6 |
neighbor
ip-address
update-source
interface
name
Router(config-router)# neighbor 209.165.200.225 update-source loopback 0
|
Allows BGP sessions to use any operational interface for TCP connections.
|
Step 7 |
address-family
ipv4
Router(config-router)# address-family ipv4
|
Enters address family configuration mode to configure routing sessions that use IPv4 address prefixes.
|
Step 8 |
no
synchronization
Router(config-router-af)# no synchronization
|
Enables the Cisco software to advertise a network route without waiting for an IGP.
|
Step 9 |
redistribute
connected
Router(config-router-af)# redistribute connected
|
Redistributes routes from one routing domain into another routing domain and allows the target protocol to redistribute routes
learned by the source protocol and connected prefixes on those interfaces over which the source protocol is running.
|
Step 10 |
neighbor
ip-address
activate
Router(config-router-af)# neighbor 209.165.200.225 activate
|
Enables the exchange of information with a BGP neighbor.
|
Step 11 |
no
auto-summary
Router(config-router-af)# no auto-summary
|
Disables automatic summarization and sends subprefix routing information across classful network boundaries.
|
Step 12 |
exit
Router(config-router-af)# exit
|
Exits address family configuration mode.
|
Step 13 |
address-family
vpnv4
Router(config-router)# address-family vpnv4
|
Enters address family configuration mode to configure routing sessions, such as BGP, that use standard VPNv4 address prefixes.
|
Step 14 |
neighbor
ip-address
activate
Router(config-router-af)# neighbor 209.165.200.225 activate
|
Enables the exchange of information with a BGP neighbor.
|
Step 15 |
neighbor
ip-address
send-community
both
Router(config-router-af)# neighbor 209.165.200.225 send-community both
|
Specifies that a communities attribute, for both standard and extended communities, should be sent to a BGP neighbor.
|
Step 16 |
neighbor
ip-address
route-map
map-name
in
Router(config-router-af)# neighbor 209.165.200.225 route-map SELECT_UPDATE_FOR_L3VPN in
|
Applies the named route map to the incoming route.
|
Step 17 |
exit
Router(config-router-af)# exit
|
Exits address family configuration mode.
|
Step 18 |
address-family
vpnv6
Router(config-router)# address-family vpnv6
|
Enters address family configuration mode to configure routing sessions, such as BGP, that use VPNv6 address prefixes.
|
Step 19 |
neighbor
ip-address
activate
Router(config-router-af)# neighbor 209.165.200.252 activate
|
Enables the exchange of information with a BGP neighbor.
|
Step 20 |
neighbor
ip-address
send-community
both
Router(config-router-af)# neighbor 209.165.200.252 send-community both
|
Specifies that a communities attribute, for both standard and extended communities, should be sent to a BGP neighbor.
|
Step 21 |
neighbor
ip-address
route-map
map-name
in
Router(config-router-af)# neighbor 209.165.200.252 route-map SELECT_UPDATE_FOR_L3VPN in
|
Applies the named route map to the incoming route.
|
Step 22 |
exit
Router(config-router-af)# exit
|
Exits address family configuration mode.
|
Step 23 |
route-map
map-tag
permit
position
Router(config-router)# route-map SELECT_UPDATE_FOR_L3VPN permit 10
|
Enters route-map configuration mode and defines the conditions for redistributing routes from one routing protocol into another.
-
The
redistribute router configuration command uses the specified map tag to reference this route map. Multiple route maps may share the same
map tag name.
-
If the match criteria are met for this route map, the route is redistributed as controlled by the set actions.
-
If the match criteria are not met, the next route map with the same map tag is tested. If a route passes none of the match
criteria for the set of route maps sharing the same name, it is not redistributed by that set.
-
The
position argument indicates the position a new route map will have in the list of route maps already configured with the same name.
|
Step 24 |
set
ip
next-hop
encapsulate
l3vpn
profile-name
Router(config-route-map)# set ip next-hop encapsulate l3vpn my profile
|
Indicates that output IPv4 packets that pass a match clause of the route map are sent to the VRF for tunnel encapsulation.
|
Step 25 |
set
ipv6
next-hop
encapsulate
l3vpn
profile-name
Router(config-route-map)# set ip next-hop encapsulate l3vpn tunnel encap
|
Indicates that output IPv6 packets that pass a match clause of the route map are sent to the VRF for tunnel encapsulation.
|
Step 26 |
exit
Router(config-route-map)# exit
|
Exits route-map configuration mode and enters global configuration mode.
|
Step 27 |
exit
|
Exits global configuration mode.
|