Implementing BGP
• When you issue the end command, the system prompts you to commit changes:
Uncommitted changes found, commit them before exiting(yes/no/cancel)?[cancel]:
◦ Entering yes saves configuration changes to the running configuration file, exits the configuration session,
and returns the router to EXEC mode.
◦ Entering no exits the configuration session and returns the router to EXEC mode without committing the
configuration changes.
◦ Entering cancel leaves the router in the current configuration session without exiting or committing the
configuration changes.
• Use the commit command to save the configuration changes to the running configuration file and remain within
the configuration session.
Configuration Examples for Implementing BGP
This section provides the following configuration examples:
Enabling BGP: Example
The following shows how to enable BGP.
prefix-set static
end-set
route-policy pass-all
end-policy
route-policy set_next_hop_agg_v4
end-policy
route-policy set_next_hop_static_v4
end-policy
route-policy set_next_hop_agg_v6
end-policy
route-policy set_next_hop_static_v6
OL-30423-03
2020::/64,
2012::/64,
10.10.0.0/16,
10.2.0.0/24
pass
set next-hop 10.0.0.1
if (destination in static) then
set next-hop 10.1.0.1
else
drop
endif
set next-hop 2003::121
if (destination in static) then
set next-hop 2011::121
else
drop
Cisco ASR 9000 Series Aggregation Services Router Routing Configuration Guide, Release 5.1.x
Configuration Examples for Implementing BGP
159