Cisco NCS 5500 Series Configuration Manual page 16

Bgp configuration ios xr
Hide thumbs Also See for NCS 5500 Series:
Table of Contents

Advertisement

Enable BGP Routing
Places the router in neighbor configuration mode for BGP routing and configures the neighbor IP address as a BGP peer.
Step 11
remote-as as-number
Example:
RP/0/RP0/CPU0:router(config-bgp-nbr)# remote-as 2002
Creates a neighbor and assigns a remote autonomous system number to it.
Step 12
address-family { ipv4 | ipv6 } unicast
Example:
RP/0/RP0/CPU0:router(config-bgp-nbr)# address-family ipv4 unicast
Specifies either the IPv4 or IPv6 address family and enters address family configuration submode.
To see a list of all the possible keywords and arguments for this command, use the CLI help (?).
Step 13
route-policy route-policy-name { in | out }
Example:
RP/0/RP0/CPU0:router(config-bgp-nbr-af)# route-policy drop-as-1234 in
(Optional) Applies the specified policy to inbound IPv4 unicast routes.
Step 14
commit
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
BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x
6
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
Implementing BGP

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents