### Configure Per-Neighbor SoO Value with BGP Peer Group Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-per-neighbor-soo-configuration.html This example demonstrates the configuration of a BGP peer group with a specific SoO value, and then assigning a neighbor to this group. It includes VRF and interface setup. ```cisco-ios ip cef ip vrf SOO_VRF rd 1:1 route-target export 1:1 route-target import 1:1 exit interface GigabitEthernet 1/0/0 ip vrf forwarding SOO_VRF ip address 192.168.1.2 255.255.255.0 exit router bgp 50000 address-family ipv4 vrf SOO_VRF neighbor SOO_GROUP peer-group neighbor SOO_GROUP soo 65000:65 neighbor 192.168.1.1 remote-as 65000 neighbor 192.168.1.1 activate neighbor 192.168.1.1 peer-group SOO_GROUP end ``` -------------------------------- ### BGP Monitoring Protocol Configuration Examples Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-monitoring-protocol.html Log messages demonstrating the configuration and activation of a BGP Monitoring Protocol server. ```text *Apr 8 21:04:16.249: BGPBMP: BMP server 2 active open process success - 20.1.1.1/9000 *Apr 8 21:04:16.249: BGPBMP: TCP KA interval is set to 15 *Apr 8 21:04:16.250: BGPBMP: Register read/write notification callbacks with BMP server 2 TCB - 20.1.1.1/9000 *Apr 8 21:04:16.250: BGPBMP: Initiation msg sent to BMP server 2 - 20.1.1.1/9000 *Apr 8 21:04:16.250: BGPBMP: BMP server 2 connection - 20.1.1.1/9000 up, invoke refresh event ``` -------------------------------- ### Show VRF Interfaces Output Example Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/per-vrf-assignment-of-bgp-router-id.html Example output showing VRF instances and their associated interfaces. This helps in verifying the VRF configuration on interfaces. ```text Router# show ip vrf interfaces Interface IP-Address VRF Protocol Serial2 192.168.4.1 vrf_trans up Serial3 192.168.5.1 vrf_user up ``` -------------------------------- ### Configuring a Best External Path on an RR for an Intercluster Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-best-external.html This example shows how to configure RR1 to calculate, install, and advertise the best external path to its intercluster RR neighbors. ```cisco-ios router bgp 1 neighbor 10.5.1.1 remote-as 1 neighbor 10.5.1.2 remote-as 1 address-family ipv4 unicast neighbor 10.5.1.1 activate neighbor 10.5.1.2 activate bgp additional-paths select best-external bgp additional-paths install neighbor 10.5.1.1 advertise best-external neighbor 10.5.1.2 advertise best-external end ``` -------------------------------- ### Example BGP Configuration Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-ls.html Example configuration for BGP, including neighbor setup and address-family activation for both IPv4 and link-state. ```text router bgp 100 bgp log-neighbor-changes neighbor 10.0.0.1 remote-as 100 neighbor 10.0.0.4 remote-as 100 ! address-family ipv4 neighbor 10.0.0.1 activate neighbor 10.0.0.4 activate exit-address-family ! address-family link-state link-state neighbor 10.0.0.1 activate neighbor 10.0.0.4 activate exit-address-family ``` -------------------------------- ### Example BGP Configuration Commands Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/configuring-a-basic-bgp-network.html Provides a concrete example of BGP configuration commands, demonstrating the application of global and address-family-specific settings. ```cisco ios xr configuration router bgp 45000 router-id 172.17.1.99 bgp log-neighbor-changes neighbor 192.168.1.2 remote-as 40000 neighbor 192.168.3.2 remote-as 50000 address-family ipv4 unicast neighbor 192.168.1.2 activate network 172.1.1.0 mask 255.255.255.0 exit-address-family address-family ipv4 multicast neighbor 192.168.3.2 activate neighbor 192.168.3.2 advertisement-interval 25 network 172.16.1.0 mask 255.255.255.0 exit-address-family address-family ipv4 vrf vpn1 neighbor 192.168.3.2 activate network 172.21.1.0 mask 255.255.255.0 exit-address-family ``` -------------------------------- ### Enter Global Configuration Mode Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bfd-bgp-multihop-client-support-and-cbit-ipv-and-ipv.html Enters global configuration mode. ```cli Device# configure terminal ``` -------------------------------- ### Router B: Verify Unequal Cost Best Paths Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-link-bandwidth.html This example shows the output of the 'show ip bgp' command on Router B, verifying that two unequal cost best paths have been installed into the BGP routing table, with bandwidth for each link displayed. ```text Router B# `**show ip bgp 192.168.1.0**` BGP routing table entry for 192.168.1.0/24, version 48 Paths: (2 available, best #2) Multipath: eBGP Advertised to update-groups: 1 2 200 172.16.1.1 from 172.16.1.2 (192.168.1.1) Origin incomplete, metric 0, localpref 100, valid, external, multipath, best Extended Community: 0x0:0:0 DMZ-Link Bw 278 kbytes 200 172.16.2.2 from 172.16.2.2 (192.168.1.1) Origin incomplete, metric 0, localpref 100, valid, external, multipath, best Extended Community: 0x0:0:0 DMZ-Link Bw 625 kbytes ``` -------------------------------- ### Example: Disabling all client-to-client reflection Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-multiple-cluster-ids.html The following example disables all intracluster and intercluster client-to-client reflection: ```text router bgp 65000 no bgp client-to-client reflection all ``` -------------------------------- ### Show Voice Port Configuration Example Source: https://www.cisco.com/c/en/us/td/docs/ios/voice/fxs/configuration/guide/15_1/fxs_15_1_cg_book/fxsbasic.html This example shows a snippet of the running configuration related to voice ports, including power denial timeouts and supervisory disconnect settings. ```text . . . voice-port 2/0 timeouts power-denial 500 ! voice-port 2/1 no supervisory disconnect . . . ``` -------------------------------- ### Example: Redistributing Prefixes into IPv6 Multiprotocol BGP Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/ipv-routing-multiprotocol-bgp-extensions-for-ipv.html This example redistributes RIP routes into the IPv6 unicast database. ```cisco router bgp 64900 no bgp default ipv4-unicast address-family ipv6 unicast redistribute rip ``` -------------------------------- ### Show IP Prefix List Details (Example Output) Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/connecting-to-a-service-provider-using-external-bgp.html Example output of the 'show ip prefix-list detail' command, illustrating prefix list configuration and hit counts. ```cisco Router# `**show ip prefix-list detail super172**` ip prefix-list super172: count: 1, range entries: 0, sequences: 5 - 5, refcount: 4 seq 5 permit 172.0.0.0/8 (hit count: 1, refcount: 1) ``` -------------------------------- ### Example: Advertising Routes into IPv6 Multiprotocol BGP Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/ipv-routing-multiprotocol-bgp-extensions-for-ipv.html This example injects an IPv6 network into the IPv6 unicast database for advertising. ```cisco router bgp 65000 no bgp default ipv4-unicast address-family ipv6 unicast network 2001:DB8::/24 ``` -------------------------------- ### Show Running Configuration Example Output Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/connecting-to-a-service-provider-using-external-bgp.html Partial output of the 'show running-config' command illustrating the BGP and route-map configuration applied in the preceding steps. ```cli Device# `**show running-config**` . . . router bgp 40000 neighbor 192.168.1.2 remote-as 45000 ! address-family ipv4 neighbor 192.168.1.2 activate neighbor 192.168.1.2 route-map PREPEND out no auto-summary no synchronization network 172.17.1.0 mask 255.255.255.0 exit-address-family ! route-map PREPEND permit 10 set as-path prepend 40000 40000 . . . ``` -------------------------------- ### Install Flowspec Policy on All Interfaces (IPv4) Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/C3PL-BGP-Flowspec-Client.html Installs the flowspec policy on all interfaces for the IPv4 address family. ```text Device(config-flowspec-af)# local-install interface-all ``` -------------------------------- ### Verify Policy List Configuration Output Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/connecting-to-a-service-provider-using-external-bgp.html Sample output from the 'show ip policy-list' command, verifying the creation and configuration of a policy list with match clauses. ```cli Router# show ip policy-list POLICY-LIST-NAME-1 policy-list POLICY-LIST-NAME-1 permit Match clauses: metric 20 as-path (as-path filter): 1 ``` -------------------------------- ### Example: Configuring BGP—IPv6 NSR Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-ipv6-nsr.html This is a complete configuration example for BGP—IPv6 NSR. ```cisco router bgp 4000 address-family ipv6 unicast neighbor 2001:DB8:0:CC00::1 remote-as 4000 neighbor 2001:DB8:0:CC00::1 activate neighbor 2001:DB8:0:CC00::1 ha-mode sso ``` -------------------------------- ### Show VRF Command Output Example Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-per-neighbor-soo-configuration.html Example output of the 'show ip vrf' command displaying a VRF named SOO_VRF. ```text Device# `**show ip vrf**` Name Default RD Interfaces SOO_VRF 1:1 GE1/0/0 ``` -------------------------------- ### Example: Configuring an IPv6 Multiprotocol BGP Peer Group Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/ipv-routing-multiprotocol-bgp-extensions-for-ipv.html This example configures an IPv6 multiprotocol BGP peer group named group1. ```cisco router bgp 65000 no bgp default ipv4-unicast neighbor group1 peer-group neighbor 2001:DB8:0:CC00::1 remote-as 64600 address-family ipv6 unicast neighbor group1 activate neighbor 2001:DB8:0:CC00::1 peer-group group1 ``` -------------------------------- ### BGP Topology Translation Configuration Example Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-support-for-mtr.html This example demonstrates configuring BGP for a VIDEO topology and setting up topology translation with a specific neighbor. It includes neighbor configurations, address family settings, and topology translation parameters. ```cli router bgp 45000 scope global neighbor 172.16.1.1 remote-as 50000 neighbor 192.168.2.2 remote-as 55000 neighbor 172.16.1.1 transport multi-session neighbor 192.168.2.2 transport multi-session address-family ipv4 topology VIDEO bgp tid 100 neighbor 172.16.1.1 activate neighbor 192.168.2.2 activate neighbor 192.168.2.2 translate-topology 200 end ``` -------------------------------- ### Configuration Example for BGP NSR Auto Sense Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-nsr-auto-sense.html Example configuration to disable the BGP NSR Auto Sense feature. ```text router bgp 65600 bgp sso route-refresh-enable ``` -------------------------------- ### Configure BGP Policy Accounting with Community Lists and Route Maps Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-policy-accounting-output-interface-accounting.html This configuration example demonstrates how to set up BGP community lists and a route map to match these communities to specific accounting traffic indexes. This is useful for granular traffic accounting based on BGP attributes. ```text ip community-list 30 permit 100:190 ip community-list 40 permit 100:198 ip community-list 50 permit 100:197 ip community-list 60 permit 100:296 ! route-map set_bucket permit 10 match community-list 30 set traffic-index 2 ! route-map set_bucket permit 20 match community-list 40 set traffic-index 3 ! route-map set_bucket permit 30 match community-list 50 set traffic-index 4 ! route-map set_bucket permit 40 match community-list 60 set traffic-index 5 ``` -------------------------------- ### Example: Disabling intracluster client-to-client reflection for any cluster ID Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-multiple-cluster-ids.html The following example disables intracluster client-to-client reflection for any cluster ID: ```text router bgp 65000 no bgp client-to-client reflection intra-cluster cluster-id any ``` -------------------------------- ### Example: Configure All Supplementary Feature Codes Source: https://www.cisco.com/c/en/us/td/docs/ios/voice/fxs/configuration/guide/15_1/fxs_15_1_cg_book/fxsfeatmd.html An example demonstrating the configuration of multiple supplementary feature codes within the STCAPP feature mode, including conference, drop, hangup, toggle, and transfer. ```ios Router(config)# stcapp call-control mode feature Router(config-stcapp-fmcode)# conference 33 Router(config-stcapp-fmcode)# drop-last-active-conferee 44 Router(config-stcapp-fmcode)# hangup-last-active-call 11 Router(config-stcapp-fmcode)# toggle-between-two-calls 55 Router(config-stcapp-fmcode)# transfer 22 Router(config-stcapp-fmcode)# exit Router(config)# ``` -------------------------------- ### Example: Importing IP Prefixes into a VRF Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/irg-sup-ip-perf.html This configuration example demonstrates how to import unicast prefixes into a VRF named 'green' using an IP prefix list and a route map. ```configuration ! ip prefix-list COLORADO seq 5 permit 10.131.64.0/19 ip prefix-list COLORADO seq 10 permit 172.31.2.0/30 ip prefix-list COLORADO seq 15 permit 172.31.1.1/32 ! ip vrf green rd 200:1 import ipv4 unicast map UNICAST route-target export 200:10 route-target import 200:10 ! exit ! route-map UNICAST permit 10 match ip address prefix-list COLORADO ! exit ``` -------------------------------- ### Activate Interface Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/configuring-multiprotocol-bgp-mp-bgp-support-for-clns.html Turns on the interface, making it operational. ```network-device-cli Router(config-if)# no shutdown ``` -------------------------------- ### Example: Enabling Send and Receive for an AIGP Attribute Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp_accumulated_igp.html Example showing how to enable AIGP send and receive capability in address family configuration mode. ```text Device# configure terminal Device(config)# router bgp 40000 Device(config-router)# address-family ipv4 unicast Device(config-router-af)# neighbor 192.168.1.1 aigp Device(config-router-af)# exit ``` -------------------------------- ### Show IP BGP Output Example Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-support-for-next-hop-address-tracking.html Example output from the 'show ip bgp' command, illustrating network routes and their corresponding next-hop addresses. ```text BGP table version is 7, local router ID is 172.17.1.99 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path * 10.1.1.0/24 192.168.1.2 0 0 40000 i * 10.2.2.0/24 192.168.3.2 0 0 50000 i *> 172.16.1.0/24 0.0.0.0 0 32768 i *> 172.17.1.0/24 0.0.0.0 0 32768 ``` -------------------------------- ### Install Flowspec Policy on All Interfaces within VRF (IPv4) Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/C3PL-BGP-Flowspec-Client.html Installs the flowspec policy on all interfaces for the IPv4 address family within a VRF. ```text Device(config-flowspec-vrf-af)# local-install interface-all ``` -------------------------------- ### Verify Route Map and Policy List Reference Output Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/connecting-to-a-service-provider-using-external-bgp.html Sample output from the 'show route-map' command, verifying that a route map has been created and references a policy list. ```cli Router# show route-map route-map ROUTE-MAP-NAME-1, deny, sequence 10 Match clauses: Set clauses: Policy routing matches: 0 packets, 0 bytes route-map ROUTE-MAP-NAME-1, permit, sequence 10 Match clauses: IP Policy lists: POLICY-LIST-NAME-1 Set clauses: Policy routing matches: 0 packets, 0 bytes ``` -------------------------------- ### Enter Interface Configuration Mode Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-per-neighbor-soo-configuration.html Selects a specific interface and enters interface configuration mode to configure its parameters. ```network-device-cli Device(config)# interface GigabitEthernet 1/0/0 ``` -------------------------------- ### Filtering Outbound BGP Updates by NSAP Prefix Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/configuring-multiprotocol-bgp-mp-bgp-support-for-clns.html Filter outbound BGP updates based on NSAP prefixes using a CLNS filter-set applied to a BGP peer group. This example denies prefixes starting with 49.0404 and permits others starting with 49. ```cisco ios xe clns filter-set routes0404 deny 49.0404... clns filter-set routes0404 permit 49... router bgp 65404 no bgp default ipv4-unicast neighbor ebgp-peers remote-as 65303 address-family nsap neighbor ebgp-peers prefix-list routes0404 out neighbor 10.6.7.8 peer-group ebgp-peers ``` -------------------------------- ### Example: Configuring a Route Map for IPv6 Multiprotocol BGP Prefixes Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/ipv-routing-multiprotocol-bgp-extensions-for-ipv.html This example configures a route map to permit IPv6 unicast routes matching a specific prefix list. ```cisco router bgp 64900 no bgp default ipv4-unicast neighbor 2001:DB8:0:CC00::1 remote-as 64700 address-family ipv6 unicast neighbor 2001:DB8:0:CC00::1 activate neighbor 2001:DB8:0:CC00::1 route-map rtp in pv6 prefix-list cisco seq 10 permit 2001:DB8::/24 route-map rtp permit 10 match ipv6 address prefix-list cisco ``` -------------------------------- ### BGP Routing Table Example Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/connecting-to-a-service-provider-using-external-bgp.html Example output of the 'show ip bgp' command, illustrating route entries with next hop, metric, local preference, weight, and path attributes. ```text BGP table version is 8, local router ID is 172.17.1.99 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 10.1.1.0/24 192.168.1.2 0 150 40000 i *> 10.2.2.0/24 192.168.3.2 0 100 50000 i *> 10.3.0.0/16 192.168.1.2 0 150 40000 i * 192.168.3.2 0 100 50000 i *> 172.17.1.0/24 0.0.0.0 0 32768 i ``` -------------------------------- ### Show BGP Summary Output Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-dynamic-neighbors.html Example output of the 'show ip bgp summary' command, illustrating a dynamically created BGP neighbor and its listen range membership. ```text Router# **show ip bgp summary** BGP router identifier 192.168.3.1, local AS number 45000 BGP table version is 1, main routing table version 1 Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd *192.168.3.2 4 50000 2 2 0 0 0 00:00:37 0 * Dynamically created based on a listen range command Dynamically created neighbors: 1/(200 max), Subnet ranges: 1 BGP peergroup group192 listen range group members: 192.168.0.0/16 ``` -------------------------------- ### Example: Per-Neighbor Cluster ID Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-multiple-cluster-ids.html The following example is configured on a route reflector. The neighbor (client) at IPv6 address 2001:DB8:1::1 is configured to have the cluster ID of 0.0.0.6: ```text router bgp 6500 neighbor 2001:DB8:1::1 cluster-id 0.0.0.6 ``` -------------------------------- ### Enable IPv6 Multipaths Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/eibgp-multipath-for-non-vrf-interfaces-ipv-ipv.html Example of enabling IPv6 multipaths on non-VRF interfaces. ```text Device> enable Device# configure terminal Device(config)# router bgp 64497 Device(config-router)# address-family ipv6 unicast Device(config-router-af)# maximum-paths eibgp 4 Device(config-router-af)# end ``` -------------------------------- ### Create and Enter BGP Policy List Configuration Mode Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/connecting-to-a-service-provider-using-external-bgp.html Enters policy list configuration mode and creates a BGP policy list that permits routes matching subsequent clauses. ```cli Router(config)# ip policy-list POLICY-LIST-NAME-1 permit ``` -------------------------------- ### Enable IPv4 Multipaths Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/eibgp-multipath-for-non-vrf-interfaces-ipv-ipv.html Example of enabling IPv4 multipaths on non-VRF interfaces. ```text Device> enable Device# configure terminal Device(config)# router bgp 64496 Device(config-router)# address-family ipv4 unicast Device(config-router-af)# maximum-paths eibgp 4 Device(config-router-af)# end ``` -------------------------------- ### Create Route Map Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-support-for-mtr.html Creates a route map and enters route-map configuration mode. This example creates a route map named 10NET. ```cli Device(config)# route-map 10NET ``` -------------------------------- ### Example: Classifying IP Traffic and Enabling BGP Policy Accounting Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/irg-bgp-pol-acct.html This configuration example demonstrates enabling BGP policy accounting on an interface and using a table-map to modify bucket numbers. ```cisco router bgp 65000 table-map set_bucket network 10.15.1.0 mask 255.255.255.0 neighbor 10.14.1.1 remote-as 65100 ! ip classless ip bgp-community new-format ! interface POS7/0 ip address 10.15.1.2 255.255.255.0 no ip directed-broadcast bgp-policy accounting no keepalive crc 32 clock source internal ``` -------------------------------- ### Create Peer Policy Template Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/configuring-a-basic-bgp-network.html Enters policy-template configuration mode and defines a new peer policy template. 'GLOBAL' is the name of the template. ```cli Device(config-router)# template peer-policy GLOBAL ``` -------------------------------- ### Example: Specifying Match Criteria for BGP Policy Accounting Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/irg-bgp-pol-acct.html This configuration example shows how to specify BGP communities in community lists and map them to accounting buckets using route maps. ```cisco ip community-list 30 permit 100:190 ip community-list 40 permit 100:198 ip community-list 50 permit 100:197 ip community-list 60 permit 100:296 ! route-map set_bucket permit 10 match community 30 set traffic-index 2 ! route-map set_bucket permit 20 match community 40 set traffic-index 3 ! route-map set_bucket permit 30 match community 50 set traffic-index 4 ! route-map set_bucket permit 40 match community 60 set traffic-index 5 ``` -------------------------------- ### Dual AS Confederation Configuration Example Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-support-for-dual-as-configuration-for-network-as-migrations.html Configure Router 1 as part of a BGP confederation, specifying local AS and dual-AS options for a neighbor. ```cisco-ios interface Serial3/0/0 ip address 10.3.3.11 255.255.255.0 ! router bgp 65534 no synchronization bgp confederation identifier 100 bgp router-id 10.0.0.11 neighbor 10.3.3.33 remote-as 50000 neighbor 10.3.3.33 local-as 45000 no-prepend replace-as dual-as ``` -------------------------------- ### Configure Route Map Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/connecting-to-a-service-provider-using-external-bgp.html Creates a route map and enters route map configuration mode. This example creates a route map named 'PREPEND' with a permit sequence. ```cli Device(config)# route-map PREPEND permit 10 ``` -------------------------------- ### Example: Disabling intracluster client-to-client reflection for specified cluster IDs Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-multiple-cluster-ids.html The following example disables intracluster client-to-client reflection for the specified cluster IDs 0.0.0.1, 14, 15, and 0.0.0.6: ```text router bgp 65000 no bgp client-to-client reflection intra-cluster cluster-id 0.0.0.1 14 15 0.0.0.6 ``` -------------------------------- ### Show BGP Routing Table Entry Example Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/configuring-a-basic-bgp-network.html Example output of the 'show ip bgp' command, detailing a specific network's routing table entry, including origin, metric, and neighbor information. ```text RouterB# show ip bgp 10.1.1.0 BGP routing table entry for 10.1.1.0/24, version 2 Paths: (1 available, best #1) Advertised to update-groups: 2 65536 192.168.1.2 from 192.168.1.2 (10.1.1.99) Origin IGP, metric 0, localpref 100, valid, external, best ``` -------------------------------- ### Creating an aggregate entry with AS_SET Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-4.html This example shows how to create an aggregate entry using the same rules as in the previous example, but the path advertised for this route will be an AS_SET consisting of all elements contained in all paths that are being summarized. ```text router bgp 100 aggregate-address 10.0.0.0 255.0.0.0 as-set ``` -------------------------------- ### Enter Address Family Configuration Mode Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/detecting-and-mitigating-a-bgp-slow-peer.html Enters address family configuration mode. ```cli Router(config-router)# address-family ipv4 ``` -------------------------------- ### BGP Graceful Restart Disabled Example Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-graceful-restart-per-neighbor.html This example shows partial output from the 'show ip bgp neighbors' command for a BGP peer where graceful restart is disabled. ```text Device# `**show ip bgp neighbors 192.168.3.2**` BGP neighbor is 192.168.3.2, remote AS 50000, external link Inherits from template S2 for session parameters BGP version 4, remote router ID 192.168.3.2 BGP state = Established, up for 00:01:41 Last read 00:00:45, last write 00:00:45, hold time is 180, keepalive intervals Neighbor sessions: 1 active, is multisession capable Neighbor capabilities: Route refresh: advertised and received(new) Address family IPv4 Unicast: advertised and received ! Address tracking is enabled, the RIB does have a route to 192.168.3.2 Connections established 1; dropped 0 Last reset never Transport(tcp) path-mtu-discovery is enabled Graceful-Restart is disabled Connection state is ESTAB, I/O status: 1, unread input bytes: 0 ``` -------------------------------- ### Example configuration for Multicast VPN BGP Dampening Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/multicast-vpn-bgp-dampening.html This example shows multicast VPN BGP dampening applied to VRFs named blue and red, but not to the VRF named green. ```cisco ios address-family ipv4 mvpn vrf blue bgp dampening address-family ipv4 mvpn vrf red bgp dampening address-family ipv4 mvpn vrf green no bgp dampening ``` -------------------------------- ### Example: Static Slow Peer Using Peer Policy Template Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/detecting-and-mitigating-a-bgp-slow-peer.html Apply static slow peer configuration to multiple neighbors by using a peer policy template. This simplifies management for a group of peers. ```text configure terminal bgp as-number neighbor peer-policy slow peer exit ``` -------------------------------- ### Configure Route Map Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-4-soft-configuration.html Creates a route map and enters route-map configuration mode. This example defines a route map named 'LOCAL' with a permit action for sequence number 10. ```cli Device(config)# route-map LOCAL permit 10 ``` -------------------------------- ### Advertise IPv6 Prefix Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/ipv6-multicast-address-family-support-for-multiprotocol-bgp.html Example command to advertise a specified prefix into the IPv6 BGP database. ```text Device(config-router-af)# network 2001:DB8::/24 ``` -------------------------------- ### Display BGP Summary Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-4.html Example command to display information about the status of all BGP connections. ```cli Device# show ip bgp summary ``` -------------------------------- ### Sample BGP Routing Table Output Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/configuring-a-basic-bgp-network.html Example output of the 'show ip bgp' command, illustrating BGP table entries including network, next hop, and path information. This output helps in understanding the learned routes. ```text BGP table version is 12, local router ID is 10.1.1.99 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 10.1.1.0/24 0.0.0.0 0 32768 i ``` -------------------------------- ### Configure Basic BGP Route Server Client Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/configuring-a-bgp-route-server.html Example configuration for a BGP router where a neighbor is designated as a route server client. ```cli router bgp 65000 neighbor 10.0.0.1 remote-as 100 neighbor 10.0.0.5 remote-as 500 address-family ipv4 unicast neighbor 10.0.0.1 activate neighbor 10.0.0.1 route-server-client ! ``` -------------------------------- ### Display All BGP Paths Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-4.html Example command to display information about all BGP paths in the database. ```cli Device# show ip bgp paths ``` -------------------------------- ### Create Peer Session Template Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/configuring-a-basic-bgp-network.html Enters session-template configuration mode and creates a peer session template. ```cli Router(config-router)# template peer-session CORE1 ``` -------------------------------- ### Install Additional Paths Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-best-external.html Enables BGP to calculate a backup path for a given address family and to install it into the RIB and CEF. This step is necessary if the RR is enabled for forwarding (the RR is in the forwarding plane). Otherwise, this step is unnecessary. ```text Router(config-router-af)# bgp additional-paths install ``` -------------------------------- ### Sample Output for Show IP BGP Injected-Paths Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/configuring-a-basic-bgp-network.html This is a sample output for the 'show ip bgp injected-paths' command, illustrating the format and details of injected BGP routes. ```text Router# **show ip bgp injected-paths** BGP table version is 11, local router ID is 10.0.0.1 Status codes:s suppressed, d damped, h history, * valid, > best, i - internal Origin codes:i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 172.16.0.0 10.0.0.2 0 ? *> 172.17.0.0/16 10.0.0.2 0 ? ``` -------------------------------- ### Sample BGP Neighbor Policy Output Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/configuring-a-basic-bgp-network.html Example output from the 'show ip bgp neighbors' command, illustrating locally configured and inherited policies for a specific neighbor. ```text Neighbor: 192.168.1.2, Address-Family: IPv4 Unicast Locally configured policies: route-map ROUTE in Inherited polices: prefix-list NO-MARKETING in route-map ROUTE in weight 300 maximum-prefix 10000 ``` -------------------------------- ### Configuring BGP to not advertise inactive routes Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-4.html This example configures BGP to not advertise inactive routes. ```text Device(config)# `**router bgp 50000**` Device(config-router)# `**address-family ipv4 unicast**` Device(config-router-af)# `**bgp suppress-inactive**` Device(config-router-af)# `**end**` ``` -------------------------------- ### Display Running Configuration Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/connecting-to-a-service-provider-using-external-bgp.html Shows the current active configuration of the device. This is useful for verifying applied settings. ```cli Device# show running-config ``` -------------------------------- ### Clear BGP Neighbor Sessions Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-4.html Example command to clear and reset all BGP neighbor sessions. ```cli Device# clear ip bgp * ``` -------------------------------- ### Example: Configuring a BGP Process, BGP Router ID, and IPv6 Multiprotocol BGP Peer Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/ipv-routing-multiprotocol-bgp-extensions-for-ipv.html This example enables IPv6 globally, configures a BGP process, sets the BGP router ID, and configures and activates an IPv6 multiprotocol BGP peer. ```cisco ipv6 unicast-routing ! router bgp 65000 no bgp default ipv4-unicast bgp router-id 192.168.99.70 neighbor 2001:DB8:0:CC00::1 remote-as 64600 address-family ipv6 unicast neighbor 2001:DB8:0:CC00::1 activate ``` -------------------------------- ### Flexible FAC Configuration Example Source: https://www.cisco.com/c/en/us/td/docs/ios/voice/fxs/configuration/guide/15_1/fxs_15_1_cg_book/fxssccpsplmft.html Example configuration where phone users are not required to dial the FAC prefix for Call Forward All and Call Forward Cancel features, using flexible FAC settings. ```text Router# **show running-config** . . . stcapp feature access-code call forward all #74 call forward cancel 18# ``` -------------------------------- ### BGP Graceful Restart Enabled Example Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/bgp-graceful-restart-per-neighbor.html This example shows partial output from the 'show ip bgp neighbors' command for a BGP peer where graceful restart is enabled. It highlights the default values for restart and stale-path timers. ```text Device# `**show ip bgp neighbors 192.168.1.2**` BGP neighbor is 192.168.1.2, remote AS 40000, external link Inherits from template S1 for session parameters BGP version 4, remote router ID 192.168.1.2 BGP state = Established, up for 00:02:11 Last read 00:00:23, last write 00:00:27, hold time is 180, keepalive intervals Neighbor sessions: 1 active, is multisession capable Neighbor capabilities: Route refresh: advertised and received(new) Address family IPv4 Unicast: advertised and received Graceful Restart Capability: advertised Multisession Capability: advertised and received ! Address tracking is enabled, the RIB does have a route to 192.168.1.2 Connections established 1; dropped 0 Last reset never Transport(tcp) path-mtu-discovery is enabled Graceful-Restart is enabled, restart-time 120 seconds, stalepath-time 360 secs Connection state is ESTAB, I/O status: 1, unread input bytes: 0 ``` -------------------------------- ### Show BGP Routes Matching AS-Path Regex Example Output Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-6/irg-xe-16-6-book/connecting-to-a-service-provider-using-external-bgp.html Example output of the 'show ip bgp regexp' command, illustrating BGP routes that match the regular expression for AS-path 65550. ```text RouterB# **show ip bgp regexp ^65550$** BGP table version is 4, local router ID is 172.17.1.99 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 10.2.2.0/24 192.168.3.2 0 0 65550 i ```