Cisco Systems IOS XR Laptop User Manual


 
Implementing BGP on Cisco IOS XR Software
Configuration Examples for Implementing BGP on Cisco IOS XR Software
RC-76
Cisco IOS XR Routing Configuration Guide
Configuration Examples for Implementing BGP on Cisco IOS XR
Software
This section provides the following configuration examples:
Enabling BGP: Example, page RC-76
Displaying BGP Update Groups: Example, page RC-77
BGP Neighbor Configuration: Example, page RC-78
BGP Confederation: Example, page RC-78
BGP Route Reflector: Example, page RC-79
Enabling BGP: Example
The following shows how to enable BGP.
prefix-set static
2020::/64,
2012::/64,
10.10.0.0/16,
10.2.0.0/24
end-set
route-policy pass-all
pass
end-policy
route-policy set_next_hop_agg_v4
set next-hop 10.0.0.1
end-policy
route-policy set_next_hop_static_v4
if (destination in static) then
set next-hop 10.1.0.1
else
drop
endif
end-policy
route-policy set_next_hop_agg_v6
set next-hop 2003::121
end-policy
route-policy set_next_hop_static_v6
if (destination in static) then
set next-hop 2011::121
else
drop
endif
end-policy
router bgp 65000
bgp fast-external-fallover disable
bgp confederation peers
65001
65002
bgp confederation identifier 1
bgp router-id 1.1.1.1
address-family ipv4 unicast
aggregate-address 10.2.0.0/24 route-policy set_next_hop_agg_v4
aggregate-address 10.3.0.0/24
redistribute static route-policy set_next_hop_static_v4