Monitoring BGP
Use the show commands in this section to monitor BGP activity.
Use the baseline ip bgp command to set the baseline on all BGP statistics.
You can use the output filtering feature of the show command to include or exclude lines of output based on a text string you specify. See JUNOSe System Basics Configuration Guide, Chapter 2, Command-Line Interface, for details.
Use the debug ip bgp command to get information about problems with BGP or the network.
baseline ip bgp
- Use to set the baseline on all BGP statistics as the current values.
- For example, if you issue the baseline ip bgp command, all the current values of BGP statistics become the baseline values. If the current value of the Total message sent parameter is 105, and the value goes up to 120 messages, the new value is displayed as 15.
- Example
host1#baseline ip bgpThere is no no version. debug ip bgp
host1#debug ip bgpThere is no no version, but you can use the undebug ip bgp command to disable display of information previously enabled with the debug ip bgp command. default-fields peer
- Use to specify fields that are displayed by default by a subsequently issued show ip bgp summary command.
- Use the intro keyword to enable the display of introductory information about BGP attributes.
- The order in which you specify the fields has no effect on the order in which they are displayed.
- Example
host1:pe2(config-router)#default-fields peer remote-as state messages-received messages-sent up-down-timehost1:pe2#show ip bgp summaryMessages MessagesNeighbor AS State Up/down time Sent Received1.1.1.1 100 Established 00:07:55 94 92Use the no version to remove fields from the output of subsequently issued show ip bgp summary commands. default-fields route
- Use to specify fields that are displayed by default by any subsequently issued show ip bgp command that displays BGP routes.
- Use the intro keyword to enable the display of introductory information about BGP attributes.
- This command does not affect the output of the show ip bgp summary command.
- The order in which you specify the fields has no effect on the order in which they are displayed.
- Example
host1:pe2(config-router)#default-fields route intro next-hop med loc-pref weight as-pathhost1:pe2#show ip bgp vpnv4 allLocal BGP identifier 2.2.2.2, local AS 1006 routes (388 bytes)7 destinations (560 bytes) of which 0 have a route0 routes selected for route table installation6 path attribute entries (936 bytes)Local-RIB version 74. FIB version 74.Prefix Next-hop MED LocPrf Weight AS-path99.99.99.11/32 1.1.1.1 1 100 0 6501199.99.99.12/32 1.1.1.1 0 100 0 empty99.99.99.13/32 1.1.1.1 2 100 0 empty99.99.99.21/32 21.21.21.2 1 0 6502199.99.99.22/32 22.22.22.2 0 32768 empty99.99.99.23/32 23.23.23.2 2 32768 emptyUse the no version to remove fields from the output of subsequently issued show ip bgp commands that displays BGP routes. show ip as-path-access-list
host1#show ip as-path-access-listAS Path Access List 10:permit [200-220]permit ^114permit ^117.*225$AS Path Access List 11:deny .*AS Path Access List 20:deny [1100-1250]permit .*show ip bgp
- Use to display the BGP routing table.
- If you specify an IP address, displays the route that best matches the specified IP address.
- Reports whether the indirect next hop of a route is unreachable; if not, displays the IGP cost to the indirect next hop.
- Field descriptions
- Learned from peerPeer from which route was learned
- Next hop IP addressIP address of the next router that is used when a packet is forwarded to the destination network
- AS pathAS path through which this route has been advertised
- Aggregator AS numberAS number of the AS that aggregated this route
- Aggregate IP addressIP address of the router that aggregated this route
- OriginOrigin of the route
- MEDMultiexit discriminator for the route
- LocPrfLocal preference for the route
- WeightWeight of the route
- CommunitiesCommunity number associated with the route
- Originator IDRouter ID of the router in the local AS that originated the route
- Cluster ID listList of cluster IDs through which the route has been advertised
- StaleRoute has gone stale due to peer restart
host1#show bgp ipv6 multicastLocal BGP identifier 10.13.13.13, local AS 4004 routes (160 bytes)4 destinations (288 bytes) of which 4 have a route4 routes selected for route table installation3 path attribute entries (456 bytes)Local-RIB version 31. FIB version 31.Status codes: > best, * invalid, s suppressed, d dampened, r rejected,a auto-summarizedPrefix Peer Next-hop MED LocPrf Weight Origin::103.103.103.0/120 103.103.103.3 ::103.103.103.3 0 0 inc.> 3ffe:0:0:1::/64 11.11.11.11 ::101.101.101.1 0 100 0 inc.> 3ffe:0:0:3::/64 103.103.103.3 ::103.103.103.3 0 0 inc.> 3ffe:0:1:1::/64 12.12.12.12 ::102.102.102.2 0 100 0 inc.host1:pe1#show ip bgp 10.88.88.1BGP route information for prefix 10.88.88.1/32Network route (best routeAdvertised to both internal and external peersAddress Family Identifier (AFI) is ip-v4Subsequent Address Family Identifier (SAFI) is unicastNext hop IP address is 0.0.0.0 (metric 2)Multi-exit discriminator is 1Local preference is not presentWeight is 32768Origin is IGPAS path is emptyExtended communities emptyExample 3Displays information about IPv6 prefix 2001:0430::1/128 host1#show bgp ipv6 2001:0430::1/128BGP route information for prefix 2001:1::1/128Received route learned from internal peer 2.2.2.2 (best route)Route placed in IP forwarding tableBest to advertise to external peersAddress Family Identifier (AFI) is ip-v6Subsequent Address Family Identifier (SAFI) is unicastMPLS in-label is noneMPLS out-label is 17Next hop IP address is ::ffff:2.2.2.2 (metric 3)Multi-exit discriminator is 0Local preference is 100Weight is 0Origin is IGPAS path is 65021Example 4Displays information about next hop routers for VRF PE 11 in the IPv4 VPN address family host1:pe1#show ip bgp vpnv4 vrf pe11 next-hopsIndirect next-hop 11.11.11.2Resolution in IP route table of VR pe11Reachable (metric 0)IP indirect next-hop index 35Direct next-hop ATM2/0.11 (11.11.11.2)Resolution in IP tunnel-route table of VR pe11Not reachableReference count is 1Indirect next-hop 2.2.2.2Resolution in IP route table of VR pe1IP indirect next-hop index 123Reachable (metric 100)Direct next-hop POS4/0 (10.10.10.1)POS4/1 (12.12.12.1)Resolution in IP tunnel-route table of VR pe1MPLS indirect next-hop index 578Reachable (metric 100)Direct next-hop Push 23, POS4/0 (10.10.10.1)Push 43, POS4/1 (12.12.12.1)Reference count is 1Example 5Displays information about routes in the route-target address family host1#show ip bgp route-target signalingLocal BGP identifier 13.13.13.13, local AS 1004 routes (240 bytes)3 destinations (228 bytes) of which 3 have a route3 routes selected for route tables installation0 unicast/multicast routes selected for route table installation0 unicast/multicast tunnel-usable routes selected for route table installation0 tunnel-only routes selected for tunnel-route table installation10 path attribute entries (1520 bytes)Local-RIB version 19. FIB version 19.Status codes: > best, * invalid, s suppressed, d dampened, r rejected,a auto-summarizedPrefix Peer Next-hop MED LocPrf Weight Origin> 0:0:0/0 12.12.12.12 12.12.12.12 100 0 IGP> 100:100:1/96 11.11.11.11 11.11.11.11 100 0 IGP100:100:1/96 14.14.14.14 14.14.14.14 100 0 IGP> 100:100:2/96 11.11.11.11 11.11.11.11 100 0 IGP
- Example 6Displays information for routes in the route-target address family corresponding to the specified RT-MEM-NLRI
host1#show ip bgp route-target signaling 100:100:1/96BGP route information for prefix 100:100:1/96Received route learned from internal peer 11.11.11.11 (best route)Route not placed in IP forwarding tableBest to advertise to both internal and external peersAddress Family Identifier (AFI) is ip-v4Subsequent Address Family Identifier (SAFI) is route-target-signalingNext hop IP address is 11.11.11.11 (metric 0)Multi-exit discriminator is not presentLocal preference is 100Weight is 0Origin is IGPAS path is emptyReceived route learned from internal peer 14.14.14.14Route not placed in IP forwarding tableDo not advertise to any peersAddress Family Identifier (AFI) is ip-v4Subsequent Address Family Identifier (SAFI) is route-target-signalingNext hop IP address is 14.14.14.14 (metric 0)Multi-exit discriminator is not presentLocal preference is 100Weight is 0Origin is IGPAS path is emptyExample 7Displays for network routes in the route-target address family host1:pe1#show ip bgp route-target signaling networkPrefix Weight Route-map Backdoor102:111:34/96 No1111111111:23:1/96 Nohost1:pe1#show ip bgp route-target signaling network 102:111:34Prefix Weight Route-map Backdoor102:111:34/96 NoExample 8Error message generated when a prefix less than 32 or greater than 96 is specified for the RT-MEM-NLRI host1#show ip bgp route-target signaling 100:100:1/31^% Invalid route-target membership NLRIYou can use the field options to display filtered information about a specified network or all networks in the BGP routing table. Only the fields that you specify are displayed, except that the Prefix field is always displayed. The stale field option shows which routes are stale due to peer restart. Examples host1:5#show ip bgp fields peer next-hop next-hop-costPrefix Peer Next-hop Next-hop-cost11.11.11.11/32 3.3.3.3 3.3.3.3 Unreachable11.11.11.11/32 4.4.4.4 4.4.4.4 Unreachable22.22.22.22/32 3.3.3.3 3.3.3.3 Unreachable22.22.22.22/32 4.4.4.4 4.4.4.4 Unreachable33.33.33.33/32 3.3.3.3 3.3.3.3 Unreachable44.44.44.44/32 4.4.4.4 4.4.4.4 Unreachable55.55.55.55/32 0.0.0.0 0.0.0.0 066.66.66.66/32 6.6.6.6 6.6.6.6 Unreachable77.77.77.77/32 57.57.57.7 57.57.57.7 188.88.88.88/32 57.57.57.7 57.57.57.7 1host1:pe1#show ip bgp fields best peer next-hop stalePrefix Stale Peer Next-hop> 10.22.22.1/32 stale 10.12.12.2 10.12.12.2> 10.22.22.2/32 stale 10.12.12.2 10.12.12.2> 10.22.22.3/32 stale 10.12.12.2 10.12.12.2> 10.33.33.1/32 10.13.13.3 10.13.13.3> 10.33.33.2/32 10.13.13.3 10.13.13.3> 10.33.33.3/32 10.13.13.3 10.13.13.3You can use the default-fields route command to specify default fields to be displayed by subsequently issued show ip bgp commands. If you filter the display with field options, the usual introductory information about BGP attributes is displayed only if you issue the intro fields option. Field descriptions for introductory fields displayed only when the intro keyword has been issued
- Local BGP identifierBGP router ID of the local router
- routesTotal number of routes stored in the BGP routing table and amount of memory consumed by routes. If several peers have advertised a route to the same prefix, all routes are included in this count.
- destinationsNumber of routes to unique prefixes stored in the BGP routing table and amount of memory consumed by routes. If several peers have advertised a route to the same prefix, only the best route is included in this count.
- routes selected for route table installationNumber of routes in the BGP routing table that have been inserted into the IP routing table, plus prefixes for which there are currently no routes but which have had to be withdrawn from peers to which these prefixes may been previously advertised
- unicast/multicast routes selected for route table installationNumber of unicast routes in the BGP routing table that have been inserted into the IP routing table that are also available for use in the multicast view of the IP routing table
- unicast/multicast tunnel-usable routes selected for route table installationNumber of unicast and multicast routes in the BGP routing table that have been inserted into the IP routing table that are also available for use in the IP tunnel routing table
- tunnel-only routes selected for tunnel-route table installationNumber of routes in the BGP routing table that have been inserted into the IP tunnel routing table
- path attribute entriesNumber of distinct path attributes stored in BGP's internal path attributes table. If BGP receives two routes for different prefixes but with identical path attributes, BGP will create only one entry in its internal path attribute table and share it between the two routes to conserve memory.
- Local-RIB versionNumber that is increased by one each time a route in that RIB is added, removed or modified.
- FIB versionNumber that is increased by one each time BGP updates the routes in the IP routing table based on changes in the local RIB. The FIB version matches the local-RIB version when BGP has finished updating the routes in the IP route table. The FIB version is less than the local-RIB version when BGP is still in the process of updating the IP routing table.
- Statistics baseline setTimestamp indicating when the statistics baseline was last set
host1#show ip bgp 0.0.0.0 /0 fields introLocal BGP identifier 192.168.254.79, local AS 6730201058 routes (12063492 bytes)201540 destinations (15317040 bytes) of which 201058 have a route193909 routes selected for route tables installation0 unicast/multicast routes selected for route table installation0 unicast/multicast tunnel-usable routes selected for route table installation0 tunnel-only routes selected for tunnel-route table installation35097 path attribute entries (5334744 bytes)Local-RIB version 20969483. FIB version 20969483.Statistics baseline set WED JUL 12 2006 10:31:53 METDST...show ip bgp advertised-routes
show bgp ipv6 advertised-routes
- Use to display the routes in the specified neighbor's or peer group's Adj-RIBs-Out table.
- For peers, the attributes displayed are those associated with the route before the application of any outbound policy.
- For peer groups, the attributes displayed are those associated with the route after the application of any outbound policy; that is, the actual advertised attributes.
- Reports whether the indirect next hop of a route is unreachable; if not, displays the IGP cost to the indirect next hop.
- You must first enable storage of routes to the Adj-RIBs-Out tables with the no rib-out disable command or the no neighbor rib-out disable command. Otherwise, this command returns an error message.
- If you filter the display with field options, the usual introductory information about BGP attributes is displayed only if you issue the intro fields option. See show ip bgp for descriptions of the fields displayed by this keyword.
- Field descriptions
- Local BGP identifierBGP router ID of the local router
- routesTotal number of routes stored in the BGP routing table. If several peers have advertised a route to the same prefix, all routes are included in this count.
- distinct destinationsNumber of routes to unique prefixes stored in the BGP routing table. If several peers have advertised a route to the same prefix, only the best route is included in this count.
- routes selected for route table installationNumber of routes in the BGP routing table that have been inserted into the IP routing table
- path attribute entriesNumber of distinct path attributes stored in BGP's internal path attributes table. If BGP receives two routes for different prefixes but with identical path attributes, BGP will create only one entry in its internal path attribute table and share it between the two routes to conserve memory.
- PrefixPrefix for the routing table entry
- PeerIP address of BGP peer
- Next-hopIP address of the next hop
- MEDMultiexit discriminator for the route
- LocPrfLocal preference for the route
- WeightAssigned path weight
- OriginOrigin of the route
host1#show ip bgp neighbors 5.72.116.1 advertised-routesLocal BGP identifier 2.2.2.2, local AS 22220 routes (0 bytes used), 0 distinct destinations (0 bytes used)0 routes selected for route table installation0 path attribute entries (0 bytes used)Status codes: > best, * invalid, s suppressed, d dampened, r rejectedPrefix Peer Next-hop MED LocPrf Weight Origin> 0.0.0.0/0 5.72.116.1 5.72.1.1 0 IGP> 10.10.0.87/32 5.72.116.1 5.72.1.1 0 inc.> 13.13.13.13/32 5.72.116.1 5.72.1.1 0 IGP> 33.0.0.0/16 0.0.0.0 5.72.1.1 1 32768 inc.> 33.0.0.0/24 0.0.0.0 5.72.1.1 1 32768 inc.> 44.44.0.0/16 5.72.116.1 5.72.1.1 0 inc.show ip bgp aggregate-address
show bgp ipv6 aggregate-address
- PrefixPrefix of the aggregate address
- AS setASs in the AS-set path
- Summary onlyDisplays a summary of aggregate address information
- Attribute mapDisplays the attribute maps for aggregate addresses
- Advertise mapDisplays the advertise maps for aggregate addresses
host1#show bgp ipv6 aggregate-addressPrefix AS set Summ only Attribute map Advertise map Suppress map3ffe::/48 No No None None Noneshow ip bgp cidr-only
- Use to display information about routes that have nonnatural network masks.
- Reports whether the indirect next hop of a route is unreachable; if not, displays the IGP cost to the indirect next hop.
- If you filter the display with field options, the usual introductory information about BGP attributes is displayed only if you issue the intro fields option. See show ip bgp for descriptions of the fields displayed by this keyword.
- Field descriptions
- Local BGP identifierBGP router ID of the local router
- routesTotal number of routes stored in the BGP routing table. If several peers have advertised a route to the same prefix, all routes are included in this count.
- distinct destinationsNumber of routes to unique prefixes stored in the BGP routing table. If several peers have advertised a route to the same prefix, only the best route is included in this count.
- routes selected for route table installationNumber of routes in the BGP routing table that have been inserted into the IP routing table
- path attribute entriesNumber of distinct path attributes stored in BGP's internal path attributes table. If BGP receives two routes for different prefixes but with identical path attributes, BGP will create only one entry in its internal path attribute table and share it between the two routes to conserve memory.
- PrefixPrefix for the routing table entry
- PeerIP address of BGP peer
- Next-hopIP address of the next hop
- MEDMultiexit discriminator for the route
- LocPrfLocal preference for the route
- WeightAssigned path weight
- OriginOrigin of the route
host1#show ip bgp cidr-onlyLocal BGP identifier 111.111.111.111, local AS 4440 routes (0 bytes used), 0 distinct destinations (0 bytes used)0 routes selected for route table installation0 path attribute entries (0 bytes used)Status codes: > best, * invalid, s suppressed, d dampened, r rejectedPrefix Peer Next-hop MED LocPrf Weight Origin33.0.0.0/24 5.72.1.1 5.72.1.1 1 0 inc.> 44.44.0.0/24 0.0.0.0 192.168.1.1 1 32768 inc.show ip bgp community
- Use to display all routes that are members of the specified BGP community. Does not accept regular expressions.
- Reports whether the indirect next hop of a route is unreachable; if not, displays the IGP cost to the indirect next hop.
- Specify the community number in AA:NN format:
- AANumber that identifies the autonomous system
- NNNumber that identifies the community within the autonomous system
- If you filter the display with field options, the usual introductory information about BGP attributes is displayed only if you issue the intro fields option. See show ip bgp for descriptions of the fields displayed by this keyword.
- Field descriptions
- Local router IDBGP router ID of the local router
- local ASLocal autonomous system number
- pathsTotal number of routes stored in the BGP routing table. If several peers have advertised a route to the same prefix, all routes are included in this count.
- distinct prefixesNumber of routes to unique prefixes stored in the BGP routing table. If several peers have advertised a route to the same prefix, only the best route is included in this count.
- paths selected for route table installationNumber of routes in the BGP routing table that have been inserted into the IP routing table
- path attribute entriesNumber of distinct path attributes stored in BGP's internal path attributes table. If BGP receives two routes for different prefixes but with identical path attributes, BGP will create only one entry in its internal path attribute table and share it between the two routes to conserve memory.
- PrefixPrefix for the route table entry
- PeerIP address of BGP peer
- Next-hopIP address of the next hop
- MEDMultiexit discriminator
- CalPrfCalculated preference
- WeightAssigned path weight
- OriginOrigin of the route
host1#show ip bgp community 999:999Local router ID 192.168.1.153, local AS 10040845 paths, 40845 distinct prefixes (2940840 bytes used)40845 paths selected for route table installation13651 path attribute entries (1864908 bytes used)Prefix Peer Next-hop MED CalPrf Weight Origin> 24.0.0.0/12 10.5.0.48 10.5.0.48 100 100 IGP> 24.4.252.0/22 10.5.0.48 10.5.0.48 100 100 IGP> 24.6.0.0/23 10.5.0.48 10.5.0.48 100 100 IGP> 24.6.11.0/24 10.5.0.48 10.5.0.48 100 100 IGPshow ip bgp community-list
- Use to display all routes that are members of communities on the specified BGP community list.
- Accepts regular expressions.
- Reports whether the indirect next hop of a route is unreachable; if not, displays the IGP cost to the indirect next hop.
- If you filter the display with field options, the usual introductory information about BGP attributes is displayed only if you issue the intro fields option. See show ip bgp for descriptions of the fields displayed by this keyword.
- Field descriptions
- Local router IDBGP router ID of the local router
- local ASLocal autonomous system number
- pathsTotal number of routes stored in the BGP routing table. If several peers have advertised a route to the same prefix, all routes are included in this count.
- distinct prefixesNumber of routes to unique prefixes stored in the BGP routing table. If several peers have advertised a route to the same prefix, only the best route is included in this count.
- paths selected for route table installationNumber of routes in the BGP routing table that have been inserted into the IP routing table
- path attribute entriesNumber of distinct path attributes stored in BGP's internal path attributes table. If BGP receives two routes for different prefixes but with identical path attributes, BGP will create only one entry in its internal path attribute table and share it between the two routes to conserve memory.
- PrefixPrefix for the routing table entry
- PeerIP address of BGP peer
- CommunitiesCommunity number in AA:NN format:
- AANumber that identifies the autonomous system
- NNNumber that identifies the community within the autonomous system
host1#show ip bgp community-list 1 fields peer communitiesLocal router ID 192.168.1.153, local AS 10072077 paths, 72077 distinct prefixes (5189544 bytes used)72077 paths selected for route table installation21627 path attribute entries (2957324 bytes used)Prefix Peer Communities3.0.0.0/8 10.5.0.48 777:777 888:8884.0.0.0/8 10.5.0.48 777:777 888:8884.17.106.0/24 10.5.0.48 777:777 888:8884.17.115.0/24 10.5.0.48 777:777 888:8886.0.0.0/8 10.5.0.48 777:777 888:8889.2.0.0/16 10.5.0.48 777:777 888:8889.20.0.0/17 10.5.0.48 777:777 888:88812.0.0.0/8 10.5.0.48 777:777 888:888show ip bgp dampened-paths
- Use to display information about dampened routes.
- Reports whether the indirect next hop of a route is unreachable; if not, displays the IGP cost to the indirect next hop.
- If you filter the display with field options, the usual introductory information about BGP attributes is displayed only if you issue the intro fields option. See show ip bgp for descriptions of the fields displayed by this keyword.
- Field descriptions
- Local router IDIP address of the local router
- local ASNumber of the local AS
- Route flap dampeningStatus of route flap dampening (enabled or disabled)
- Decay half-lifeTime (in minutes) after which a penalty is decreased. After the route has been assigned a penalty, the penalty is decreased by half after the half-life period (which is 15 minutes by default).
- Cutoff thresholdValue of the penalty for a flapping route below which the route is unsuppressed
- Reuse thresholdTime (in hours:minutes:seconds) after which the path will be made available
- Maximum hold-down timeInterval, in seconds, after not receiving a keepalive message that the software declares a peer dead
- route flap historyStatus of route flap history for route paths
- PrefixThe prefix for the IP address
- PeerIP address of the BGP peer
- StatusStatus of route dampening of the route path
- Figure of MeritA measure of the route's stability. Higher values indicate more recent route flap activity or less stability.
- Time until Reuse/RemoveTime until the route is either reused (if currently suppressed) or its history entry is removed (if currently available)
host1#show ip bgp dampened-pathsLocal router ID 192.168.1.218, local AS 100Route flap dampening is enabledDecay half-life is 10 minutes while reachable, 20 minutes while unreachableCuttoff threshold is 2000, reuse threshold is 750Maximum hold-down time is 20 minutes60 paths have active route flap histories (4560 bytes used)11 paths are suppressedFigure Time untilPrefix Peer Status of Merit Reuse/Remove24.31.128.0/19 10.2.1.48 Suppressed/Reachable 2681 00:17:0024.93.128.0/19 10.2.1.48 Suppressed/Reachable 2681 00:17:0024.95.0.0/19 10.2.1.48 Suppressed/Reachable 2681 00:17:00128.192.0.0/16 10.2.1.48 Available 1997 00:15:08148.161.0.0/16 10.2.1.48 Available 1997 00:15:10164.81.0.0/16 10.2.1.48 Available 1997 00:15:11192.29.60.0/24 10.2.1.48 Available 1997 00:15:12192.58.228.0/24 10.2.1.48 Available 1997 00:15:15192.88.8.0/24 10.2.1.48 Available 1997 00:15:17192.107.253.0/24 10.2.1.48 Suppressed/Unreachable 4331 00:19:42192.195.44.0/24 10.2.1.48 Suppressed/Reachable 2923 00:19:15192.195.49.0/24 10.2.1.48 Suppressed/Reachable 2923 00:19:15192.195.50.0/24 10.2.1.48 Suppressed/Reachable 2923 00:19:15192.197.150.0/24 10.2.1.48 Available 1997 00:15:25192.222.89.0/24 10.2.1.48 Suppressed/Unreachable 2788 00:19:42204.17.195.0/24 10.2.1.48 Suppressed/Reachable 2923 00:17:20204.52.186.0/24 10.2.1.48 Available 1997 00:15:26204.68.178.0/24 10.2.1.48 Available 1000 00:19:38204.101.0.0/16 10.2.1.48 Available 1997 00:15:29204.128.227.0/24 10.2.1.48 Suppressed/Reachable 2923 00:17:16204.146.24.0/22 10.2.1.48 Available 1997 00:15:30204.146.24.0/24 10.2.1.48 Available 1997 00:15:30show ip bgp filter-list
- Use to display all routes whose AS-path matches the specified AS-path access list.
- Reports whether the indirect next hop of a route is unreachable; if not, displays the IGP cost to the indirect next hop.
- If you filter the display with field options, the usual introductory information about BGP attributes is displayed only if you issue the intro fields option. See show ip bgp for descriptions of the fields displayed by this keyword.
- Field descriptions
- Local router IDBGP router ID of the local router
- local ASLocal autonomous system number
- pathsTotal number of routes stored in the BGP routing table. If several peers have advertised a route to the same prefix, all routes are included in this count.
- distinct prefixesNumber of routes to unique prefixes stored in the BGP routing table. If several peers have advertised a route to the same prefix, only the best route is included in this count.
- paths selected for route table installationNumber of routes in the BGP routing table that have been inserted into the IP routing table
- path attribute entriesNumber of distinct path attributes stored in BGP's internal path attributes table. If BGP receives two routes for different prefixes but with identical path attributes, BGP will create only one entry in its internal path attribute table and share it between the two routes to conserve memory.
- PrefixPrefix for the routing table entry
- Next-hopIP address of the next hop
- MEDMultiexit discriminator
- CalPrfCalculated preference
- WeightAssigned path weight
- AS pathAutonomous system path
host1#show ip bgp filter-list 1Local router ID 192.168.1.153, local AS 10072080 paths, 72080 distinct prefixes (5189760 bytes used)72080 paths selected for route table installation21667 path attribute entries (2962828 bytes used)Prefix Next-hop MED CalPrf Weight AS-path> 6.0.0.0/8 10.5.0.48 100 100 11488 701 7018 7170> 12.0.0.0/8 10.5.0.48 100 100 11488 701 1740 7018> 12.1.248.0/24 10.5.0.48 100 100 11488 701 7018 13391> 12.2.6.0/24 10.5.0.48 100 100 11488 701 7018 11101> 12.2.7.0/24 10.5.0.48 100 100 11488 701 7018 11101> 12.2.76.0/24 10.5.0.48 100 100 11488 701 7018 11812> 12.2.99.0/24 10.5.0.48 100 100 11488 701 7018 10656> 12.2.109.0/24 10.5.0.48 100 100 11488 701 7018 10656> 12.2.169.0/24 10.5.0.48 100 100 11488 701 7018 11806> 12.4.114.0/24 10.5.0.48 100 100 11488 701 7018 14065> 12.4.119.0/24 10.5.0.48 100 100 11488 701 7018 14065> 12.4.175.0/24 10.5.0.48 100 100 11488 701 7018 11895> 12.4.196.0/22 10.5.0.48 100 100 11488 701 7018 12163> 12.5.48.0/21 10.5.0.48 100 100 11488 701 7018 12163> 12.5.164.0/24 10.5.0.48 100 100 11488 701 7018 11134> 12.6.42.0/23 10.5.0.48 100 100 11488 701 7018 11090show ip bgp flap-statistics
- Local BGP identifierBGP router ID of the local router where route flap dampening is enabled
- local ASLocal autonomous system number
- Route flap dampeningStatus of route flap dampening (enabled or disabled)
- Default decay half-lifeTime (in minutes) after which a penalty is decreased. After the route has been assigned a penalty, the penalty is decreased by half after the half-life period (which is 15 minutes by default).
- Default cutoff thresholdValue of the penalty for a flapping route below which the route is unsuppressed
- Default reuse thresholdTime in minutes after which the path will be made available
- Default maximum hold-down timeInterval, in seconds, after not receiving a keepalive message that the software declares a peer dead
- route flap historyStatus of route flap history for route paths
- PrefixPrefix for the routing table entry
- PeerIP address of BGP peer
- StatusStatus of route dampening of the route path
- Figure of MeritMeasure of the route's stability. Higher values indicate more recent route flap activity or less stability.
- Time until Reuse/RemoveTime in hours:minutes:seconds until the route is either reused (if currently suppressed) or its history entry is removed (if currently available)
host1#show ip bgp flap-statisticsLocal BGP identifier 192.168.1.232, local AS 100Route flap dampening is enabledDefault decay half-life is 15 minutesDefault cutoff threshold is 2000, default reuse threshold is 750Default maximum hold-down time is 60 minutes307 paths have active route flap histories (27016 bytes used)5 paths are suppressedFigure Time untilPrefix Peer Status of Merit Reuse/Remove24.201.0.0/18 192.168.1.158 Available 925 00:58:2324.201.64.0/18 192.168.1.158 Available 925 00:58:2352.128.224.0/19 192.168.1.158 Available 750 00:54:1261.8.0.0/19 192.168.1.158 Available 993 00:59:5361.8.30.0/24 192.168.1.158 Available 993 00:59:5362.229.73.0/24 192.168.1.158 Unreachable 925 00:58:2363.69.150.0/24 192.168.1.158 Available 750 00:54:12show ip bgp inconsistent-as
- Use to display information about routes that have inconsistent AS-paths.
- Reports whether the indirect next hop of a route is unreachable; if not, displays the IGP cost to the indirect next hop.
- If you filter the display with field options, the usual introductory information about BGP attributes is displayed only if you issue the intro fields option. See show ip bgp for descriptions of the fields displayed by this keyword.
- Field descriptions
- Local BGP identifierBGP router ID of the local router
- local ASLocal autonomous system number
- routesTotal number of routes stored in the BGP routing table. If several peers have advertised a route to the same prefix, all routes are included in this count.
- distinct destinationsNumber of routes to unique prefixes stored in the BGP routing table. If several peers have advertised a route to the same prefix, only the best route is included in this count.
- routes selected for route table installationNumber of routes in the BGP routing table that have been inserted into the IP routing table
- path attribute entriesNumber of distinct path attributes stored in BGP's internal path attributes table. If BGP receives two routes for different prefixes but with identical path attributes, BGP will create only one entry in its internal path attribute table and share it between the two routes to conserve memory.
- PrefixPrefix for the routing table entry
- Next-hopIP address of the next hop
- MEDMultiexit discriminator for the route
- LocPrfLocal preference for the route
- WeightAssigned path weight
- OriginOrigin of the route
- AS-pathAS-path through which this route bas been advertised
host1#show ip bgp inconsistent-asLocal BGP identifier 192.168.1.10, local AS 1230 routes (0 bytes used), 0 distinct destinations (0 bytes used)0 routes selected for route table installation0 path attribute entries (0 bytes used)Status codes: > best, * invalid, s suppressed, d dampened, r rejectedPrefix Next-hop MED LocPrf Weight AS-path> 4.0.0.0/8 0.0.0.0 1 32768 empty4.0.0.0/8 192.168.1.1 0 11488 701 1show ip bgp longer-prefixes
- Use to display all routes with a prefix that is equal to or more specific than the specified prefix.
- Reports whether the indirect next hop of a route is unreachable; if not, displays the IGP cost to the indirect next hop.
- If you filter the display with field options, the usual introductory information about BGP attributes is displayed only if you issue the intro fields option. See show ip bgp for descriptions of the fields displayed by this keyword.
- Field descriptions
- Local router IDBGP router ID of the local router
- local ASLocal autonomous system number
- pathsTotal number of routes stored in the BGP routing table. If several peers have advertised a route to the same prefix, all routes are included in this count.
- distinct prefixesNumber of routes to unique prefixes stored in the BGP routing table. If several peers have advertised a route to the same prefix, only the best route is included in this count.
- paths selected for route table installationNumber of routes in the BGP routing table that have been inserted into the IP routing table
- path attribute entriesNumber of distinct path attributes stored in BGP's internal path attributes table. If BGP receives two routes for different prefixes but with identical path attributes, BGP will create only one entry in its internal path attribute table and share it between the two routes to conserve memory.
- PrefixPrefix for the routing table entry
- PeerIP address of BGP peer
- Next-hopIP address of the next hop
- MEDMultiexit discriminator
- CalPrfCalculated preference
- WeightAssigned path weight
- OriginOrigin of the route
host1#show ip bgp 12.2.0.0 255.255.0.0 longer-prefixesLocal router ID 192.168.1.153, local AS 10072074 paths, 72074 distinct prefixes (5189328 bytes used)72074 paths selected for route table installation21685 path attribute entries (2965327 bytes used)Prefix Peer Next-hop MED CalPrf Weight Origin> 12.2.6.0/24 10.5.0.48 10.5.0.48 100 100 IGP> 12.2.7.0/24 10.5.0.48 10.5.0.48 100 100 IGP> 12.2.76.0/24 10.5.0.48 10.5.0.48 100 100 IGP> 12.2.88.0/22 10.5.0.48 10.5.0.48 100 100 IGP> 12.2.97.0/24 10.5.0.48 10.5.0.48 100 100 IGP> 12.2.99.0/24 10.5.0.48 10.5.0.48 100 100 IGP> 12.2.109.0/24 10.5.0.48 10.5.0.48 100 100 IGP> 12.2.169.0/24 10.5.0.48 10.5.0.48 100 100 IGPshow ip bgp neighbors
- BGP neighbor IDBGP identifier of the BGP neighbor
- remote ASRemote AS of the BGP neighbor
- DescriptionTextual description of the BGP neighbor
- Member of peer groupName of the peer group of which this BGP neighbor is a member
- Remote router IDRouter ID of the remote router
- negotiated BGP versionBGP version being used to communicate with the neighbor
- Administrative statusDesired state of the peer connection
- Connection stateCurrent state of the BGP connection
- Connection has been establishedTime that TCP connection was established
- Reason for last resetReason for last reset of the BGP session
- TCP error codeTCP connection error type
- Default originateStatus of default originate (enabled or disabled)
- EBGP multi-hopStatus of EBGP multihop (enabled or disabled)
- IBGP single-hopStatus of IBGP single hop (enabled or disabled)
- Next hop selfStatus of next-hop self (enabled or disabled)
- Route reflector statusIdentifies the neighbor as a route-reflector client
- Neighbor weightWeight of routes from the BGP neighbor
- Incoming update distribute listDistribute list for incoming routes, if configured
- Outgoing update distribute listDistribute list for outgoing routes, if configured
- Incoming update filter listUpdate filter list for incoming routes, if configured
- Outgoing update filter listUpdate filter list for outgoing route, if configured
- Weight filter listWeight filter list for routes, if configured
- Incoming route mapIncoming route map, if configured
- Outgoing route mapOutgoing route map, if configured
- Connect retry intervalTime between a BGP peer's attempts to reestablish a connection to the neighbor
- Minimum route advertisement intervalMinimum time between route advertisements
- Minimum AS origination intervalMinimum time between advertisement of changes within the speaker's AS
- Configured keep-alive intervalFrequency of keep-alive messages generated
- Negotiated keepalive intervalNegotiated frequency of keep-alive messages generated
- Configured hold timeConfigured maximum time allowed between received messages
- Negotiated hold timeNegotiated maximum time allowed between received messages
- Configured update source IP addressIP address used when sending update messages
- Local IP addressLocal IP address used for TCP communication to this peer
- Local portLocal TCP port number used for TCP communication to this peer
- Remote IP addressRemote IP address used for TCP communication to this peer
- Remote portRemote IP address used for TCP communication to this peer
- Total messages sentTotal BGP messages sent to this neighbor
- Total messages receivedTotal BGP messages received from this neighbor
- Total update messages sentTotal BGP update messages sent to this neighbor
- Total update messages receivedTotal BGP update messages received from this neighbor
- Time since last update message was receivedTime since last BGP update message was received from this neighbor
- Address Family dependent capabilitiesLists type of ORF send and receive capability per address family and whether it is advertised (configured) or received
- Maximum number of ORF entriesLimit of ORF entries that will be accepted from the neighbor
- Capability advertisementLists whether the specific capability (capabilities option, deprecated dynamic capability negotiation, dynamic capability negotiation, multiprotocol extensions, route refresh, route refresh (Cisco proprietary), four octet AS numbers, and graceful restart) has been sent, received, or both
- Multi-protocol extensions negotiationLists the relevant address family and whether it has been sent, received, or used
- BFDStatus of BFD configuration, enabled, enabled but not supported because the peer is an IBGP neighbor a multihop EBGP neighbor, or disabled
- BFD sessionType and address of peer to which BFD session is established
- Minimum transmit intervalDesired interval between BFD packets transmitted to members of peer group
- Minimum receive intervalDesired interval between BFD packets received from members of peer group
- MultiplierNumber of BFD packets that can be missed before declaring BFD session down
- Negotiated detection timeInterval between BFD packets negotiated by peers
- Advertise-mapName of route map that specifies routes to be advertised when routes in conditional route maps are matched
- Condition-mapName of route map that specifies routes to be matched by routes in the BGP routing table
- SequencePosition of the specified advertise route map in a list of advertise route maps configured for a particular peer within the same address-family. A lower sequence number has a higher priority; that route map is processed before one with a higher sequence number.
- StatusStatus of the routes specified by the route map, advertise (route map condition has been met) or withdraw (route map condition has not been met; regardless of this status, the specified routes might be governed by another route map with a lower sequence number and actually advertised or not according to that map
host1#show ip bgp neighborsBGP neighbor ID 10.2.1.48, remote AS 11488 (external peer)Remote router ID is 172.31.1.48, negotiated BGP version is 4Administrative status is Start, connection state is EstablishedReason for last reset was tcp connection errorTCP error code 60 (Connection timed out)Connection has been established 1 time, up for 0 17:42:31Options:Default originate is disabledEBGP multi-hop is enabledIBGP single-hop is disabledNext hop self is disabledsecondsPolicy:Neighbor weight is 100Timers:Connect retry interval is 120 secondsMinimum route advertisement interval is 30 secondsMinimum AS origination interval is 10 secondsConfigured keep-alive interval is 30 seconds, negotiated 30secondsConfigured hold time is 90 seconds, negotiated 90TCP connection:Local IP address is 192.168.1.218, local port is 1024Remote IP address is 10.2.1.48, remote port is 179Statistics:Total of 4100 messages sent, 44913 messages received2053 update messages sent, 42785 update messages received0 00:00:17 since last update message was receivedFields relevant to multiprotocol extensions: Multi-protocol extensions negotiation:ip-v4 unicast: sent, received, usedip-v6 unicast-labeled: sent, received, usedFor the graceful restart capability, additional information is presented.
- Fields concerning graceful restart attributes that apply to peers as a whole (for all address families):
Graceful restart negotiation:Sent restart time is 120 secondsSent restart state bit is zero (we are not restarting)Received restart time is 120 secondsReceived restart state bit is zero (peer is not restarting)Maximum time for keeping stale paths is 360 secondsFields concerning attributes that apply to peers a particular address family: Peer is capable of preserving forwarding stat (3)Peer preserved forwarding state during last restartWe have received an end-of-rib marker from the peerWe have sent an end-of-rib marker to the peerFields relevant if the peer is currently restarting: Graceful restart waiting for the session to come back upRestart-time advertised by the peer is 120 secondsRemaining time for the peer to come back up is 117 secondsRemaining time for keeping stale routes from the peer is 357 secondsFields relevant during reconvergence after the peer has restarted: Graceful restart negotiation:Sent restart time is 120 secondsSent restart state bit is zero (we are not restarting)Received restart time is 120 secondsReceived restart state bit is zero (peer is not restarting)Maximum time for keeping stale paths is 300 secondsRemaining time for keeping stale routes from the peer is 297 secondsBFD is disabledFields relevant to BFD when BFD is configured for an IBGP peer: BFD is enabled but not supported (IBGP neighbor)Fields relevant to BFD when BFD is configured for a multihop EBGP peer: BFD is enabled but not supported (multi-hop EBGP neighbor)Fields relevant to BFD when BFD is configured but the BGP session is not established: BFD is enabled:Single-hop IPv4 BFD session to 1.2.3.4Minimum transmit interval is 300 msMinimum receive interval is 300 msMultiplier is 3Waiting for BGP to become established before initiating BFD sessionFields relevant to BFD when BFD is configured, the BGP session is established, but the BFD protocol session is not up: BFD is enabled:Single-hop IPv4 BFD session to 1.2.3.4Minimum transmit interval is 300 msMinimum receive interval is 300 msMultiplier is 3BFD session is downFields relevant to BFD when BFD is configured, the BGP session is established, and the BFD protocol session is up: BFD is enabled:Single-hop IPv4 BFD session to 1.2.3.4Minimum transmit interval is 300 msMinimum receive interval is 300 msMultiplier is 3BFD session is up for 00:00:50Negotiated detection time is 900 msAdvertise-map is advertisetoR1Condition-map: trigger1Sequence: 5Status: WithdrawAdvertise-map is alternatetoR1Condition-map: trigger2Sequence: 10Status: Advertiseshow ip bgp neighbors dampened-routes
show bgp ipv6 neighbors dampened-routes
- Use to display information about routes with a dampening history for the specified BGP neighbor.
- Reports whether the indirect next hop of a route is unreachable; if not, displays the IGP cost to the indirect next hop.
- If you filter the display with field options, the usual introductory information about BGP attributes is displayed only if you issue the intro fields option. See show ip bgp for descriptions of the fields displayed by this keyword.
- Field descriptions
- Local BGP identifierBGP router ID of the local router
- routesTotal number of routes stored in the BGP routing table. If several peers have advertised a route to the same prefix, all routes are included in this count.
- distinct destinationsNumber of routes to unique prefixes stored in the BGP routing table. If several peers have advertised a route to the same prefix, only the best route is included in this count.
- routes selected for route table installationNumber of routes in the BGP routing table that have been inserted into the IP routing table
- path attribute entriesNumber of distinct path attributes stored in BGP's internal path attributes table. If BGP receives two routes for different prefixes but with identical path attributes, BGP will create only one entry in its internal path attribute table and share it between the two routes to conserve memory.
- PrefixPrefix for the routing table entry
- PeerIP address of BGP peer
- Next-hopIP address of the next hop
- MEDMultiexit discriminator for the route
- LocPrfLocal preference for the route
- WeightAssigned path weight
- OriginOrigin of the route
host1#show ip bgp neighbors 192.168.1.158 dampened-routesLocal BGP identifier 192.168.1.232, local AS 100120 routes (5760 bytes used), 94 distinct destinations (9024 bytes used)67 routes selected for route table installation23 path attribute entries (3450 bytes used)Status codes: > best, * invalid, s suppressed, d dampened, r rejectedPrefix Peer Next-hop MED LocPrf Weight Origind12.8.12.0/24 192.168.1.158 192.168.1.1 0 IGPd24.48.12.0/24 192.168.1.158 192.168.1.1 0 IGPd24.72.12.0/24 192.168.1.158 192.168.1.1 0 inc.d24.116.12.0/23 192.168.1.158 192.168.1.1 0 IGPd24.143.12.0/24 192.168.1.158 192.168.1.1 0 IGPd24.154.12.0/24 192.168.1.158 192.168.1.1 0 inc.d24.216.12.0/24 192.168.1.158 192.168.1.1 0 IGPd24.240.12.0/24 192.168.1.158 192.168.1.1 0 IGPd24.244.12.0/22 192.168.1.158 192.168.1.1 0 IGPd24.246.12.0/22 192.168.1.158 192.168.1.1 0 IGPd61.0.12.0/24 192.168.1.158 192.168.1.1 0 IGPd61.11.12.0/24 192.168.1.158 192.168.1.1 0 IGPd62.74.12.0/22 192.168.1.158 192.168.1.1 0 IGPd62.76.12.0/22 192.168.1.158 192.168.1.1 0 IGPd63.65.12.0/24 192.168.1.158 192.168.1.1 0 inc.d63.73.12.0/24 192.168.1.158 192.168.1.1 0 IGPshow ip bgp neighbors paths
- Use to display path information for the specified BGP neighbor.
- This command displays only the most common path attributes. BGP internally maintains additional attributes that are not displayedfor example, the MED, local preference, and communities attributes.
- Field descriptions
- AddressHexadecimal number that uniquely identifies the path attributes
- RefcountNumber of routes that share the path attributes
- OriginValue of the origin path attribute
- Next-hopValue of the next-hop path attribute
- AS-pathValue of the AS-path attribute
host1#show ip bgp neighbors 1.02.3.4 pathsAddress Refcount Origin Next-hop AS-path0xC384BD0 1 IGP 192.168.1.1 11488 701 2853 5515 7640xC384C40 1 IGP 192.168.1.1 11488 701 41830xC384CB0 1 IGP 192.168.1.1 11488 701 1239 1833 1833 1833 1299 83080xC384D20 1 IGP 192.168.1.1 11488 701 6453 7860xC384D90 1 IGP 192.168.1.1 11488 701 6453 1103 11030xC384E00 1 IGP 192.168.1.1 11488 701 6762 9116 9116 9116 6888 68880xC384E70 1 IGP 192.168.1.1 11488 701 6453 8297 67580xC384EE0 1 IGP 192.168.1.1 11488 701 5511 32150xC384F50 1 IGP 192.168.1.1 11488 701 3561 5683 55510xC384FC0 1 IGP 192.168.1.1 11488 701 1239 1755 1273 8793 8793 87930xC385030 1 IGP 192.168.1.1 11488 701 5705 5693show ip bgp neighbors received prefix-filter
- seqSequence number of the entry in the prefix list
- permit, denyCondition statement for addresses matching the listed address
host1#show ip bgp neighbors 192.168.1.158 received prefix-filterip prefix-list filter 192.168.1.158 for address family ipv4:unicastseq 5 permit 10.1.1.1/32seq 10 permit 10.1.1.2/32seq 15 permit 10.1.1.3/32show ip bgp neighbors received-routes
show bgp ipv6 neighbors received-routes
- Use to display routes originating from the specified BGP neighbor before inbound policy is applied.
- Reports whether the indirect next hop of a route is unreachable; if not, displays the IGP cost to the indirect next hop.
- If you filter the display with field options, the usual introductory information about BGP attributes is displayed only if you issue the intro fields option. See show ip bgp for descriptions of the fields displayed by this keyword.
- Field descriptions
- PrefixPrefix for the routing table entry
- PeerIP address of BGP peer
- Next-hopIP address of the next hop
- MEDMultiexit discriminator for the route
- LocPrfLocal preference for the route
- WeightAssigned path weight
- OriginOrigin of the route
host1#show ip bgp neighbors 192.168.1.158 received-routesLocal BGP identifier 111.111.111.111, local AS 4440 routes (0 bytes used), 0 distinct destinations (0 bytes used)0 routes selected for route table installation0 path attribute entries (0 bytes used)Status codes: > best, * invalid, s suppressed, d dampened, r rejectedPrefix Peer Next-hop MED LocPrf Weight Origin>0.0.0.0/0 192.168.1.158 192.168.1.158 0 IGP>13.13.13.13/32 192.168.1.158 192.168.1.158 0 0 IGPshow ip bgp neighbors routes
show bgp ipv6 neighbors routes
- Use to display, after inbound policy is applied, all routes that originate from the specified BGP neighbor.
- Reports whether the indirect next hop of a route is unreachable; if not, displays the IGP cost to the indirect next hop.
- If you filter the display with field options, the usual introductory information about BGP attributes is displayed only if you issue the intro fields option. See show ip bgp for descriptions of the fields displayed by this keyword.
- Field descriptions
- Local router IDBGP router ID of the local router
- local ASLocal autonomous system number
- pathsTotal number of routes stored in the BGP routing table. If several peers have advertised a route to the same prefix, all routes are included in this count.'
- distinct prefixesNumber of routes to unique prefixes stored in the BGP routing table. If several peers have advertised a route to the same prefix, only the best route is included in this count.
- paths selected for route table installationNumber of routes in the BGP routing table that have been inserted into the IP routing table
- path attribute entriesNumber of distinct path attributes stored in BGP's internal path attributes table. If BGP receives two routes for different prefixes but with identical path attributes, BGP will create only one entry in its internal path attribute table and share it between the two routes to conserve memory.
- Local-RIB versionNumber that is increased by one each time a route in that RIB is added, removed or modified.
- FIB versionNumber that is increased by one each time BGP updates the routes in the IP routing table based on changes in the local RIB. The FIB version matches the local-RIB version when BGP has finished updating the routes in the IP route table. The FIB version is less than the local-RIB version when BGP is still in the process of updating the IP routing table.
- PrefixPrefix for the routing table entry
- Peer IP address of BGP peer
- Next-hopIP address of the next hop
- MEDMultiexit discriminator
- CalPrfCalculated preference
- WeightAssigned path weight
- OriginOrigin of the route
host1#show bgp ipv6 neighbors 12.12.12.12 routesLocal BGP identifier 11.11.11.11, local AS 4005 routes (200 bytes)5 destinations (360 bytes) of which 5 have a route5 routes selected for route table installation4 path attribute entries (608 bytes)Local-RIB version 33. FIB version 33.Status codes: > best, * invalid, s suppressed, d dampened, r rejected,a auto-summarizedPrefix Peer Next-hop MED LocPrf Weight Origin> 3ffe:0:1:1::/64 12.12.12.12 ::102.102.102.2 0 100 0 inc.show ip bgp network
- Use to display information about networks in an AS.
- If you filter the display with field options, the usual introductory information about BGP attributes is displayed only if you issue the intro fields option. See show ip bgp for descriptions of the fields displayed by this keyword.
- Example
host1#show bgp ipv6 networkPrefix Weight Route-map Backdoor3ffe:0:0:2::/64 Noshow ip bgp next-hops
- Use to display information about BGP next hops.
- Specify all indirect next hops or a particular indirect next hop.
- Example
host1:3#show ip bgp next-hopsIndirect next-hop 4.4.4.4Reachable (metric 2)Direct next-hop atm2/0.34 (34.34.34.4)Reference count is 3Indirect next-hop ::ffff:2.2.2.2MPLS stacked label 17Reachable (metric 3)Direct next-hop tun mpls:vpnInL17-23Reference count is 1Indirect next-hop 5.5.5.5Reachable (metric 2)Direct next-hop atm2/0.35 (35.35.35.5)Reference count is 3Indirect next-hop 6.6.6.6Reachable (metric 3)Direct next-hop atm2/0.34 (34.34.34.4)atm2/0.35 (35.35.35.5)Reference count is 3Indirect next-hop 13.13.13.1Not reachableReference count is 2show ip bgp paths
- Use to display information about BGP paths.
- This command displays only the most common path attributes. BGP internally maintains additional attributes that are not displayedfor example, the MED, local preference, and communities attributes.
- Field descriptions
- AddressHexadecimal number that uniquely identifies the path attributes
- RefcountNumber of routes that share the path attributes
- OriginValue of the origin path attribute
- Next-hopValue of the next-hop path attribute
- AS-pathValue of the AS-path attribute
host1#show bgp ipv6 pathsAddress Refcount Metric AS-path0x4B311118 1 1000x4C548224 1 0 1000x4C548530 1 0 2000x4C548704 2 0 300show ip bgp peer-group
- BGP peer groupName of a BGP peer group
- remote ASNumber of the remote AS
- DescriptionTextual description of the BGP peer group
- MembersIP addresses of the members of the BGP peer group
- Default originateStatus of default origination of the BGP peer group
- EBGP multi-hopStatus of EBGP multihop for the peer group
- IBGP single-hopStatus of IBGP single hop for the peer group
- BFDStatus of BFD configuration for the peer group
- BFD sessionType and address of peer to which BFD session is established
- Minimum transmit intervalDesired time interval between BFD packets transmitted to members of peer group
- Minimum receive intervalDesired time interval between BFD packets received from members of peer group
- MultiplierNumber of BFD packets that can be missed before declaring BFD session down
- Next hop selfStatus of next-hop self information for the peer group
- Peers are route reflector clientsBGP peer group is configured as a route reflector. This field does not appear when route reflectors are not configured.
- weightNeighbor weights assigned to BGP peer groups
- Incoming update distribute listDistribute lists for incoming routes, if configured
- Outgoing update distribute listDistribute list for outgoing routes, if configured
- Incoming update filter listFilter list for incoming routes, if configured
- Outgoing update filter listFilter list for outgoing routes, if configured
- Weight filter listWeight filter list for routes, if configured
- Incoming route mapIncoming route map, if configured
- Outgoing route mapOutgoing route map, if configured
- Minimum route advertisement intervalMinimum time between route advertisements
- Configured update source IP addressIP address used when sending update messages
- Advertise-mapName of route map that specifies routes to be advertised when routes in conditional route maps are matched
- Condition-mapName of route map that specifies routes to be matched by routes in the BGP routing table
- SequencePosition of the specified advertise route map in a list of advertise route maps configured for a particular peer group within the same address-family. A lower sequence number has a higher priority; that route map is processed before one with a higher sequence number.
- StatusStatus of the routes specified by the route map, advertise (route map condition has been met) or withdraw (route map condition has not been met; regardless of this status, the specified routes might be governed by another route map with a lower sequence number and actually advertised or not according to that map
host1#show ip bgp peer-groupBGP peer-group leftcoast, remote AS 200Peer-group members are external peersLocal AS 100Administrative status is StartEBGP multi-hop is disabledIBGP single-hop is disabledBFD is enabled:Single-hop IPv4 BFD sessionMinimum transmit interval is 300 msMinimum receive interval is 300 msMultiplier is 3Maximum update message size is 1024 octetsNeighbor weight is 0Connect retry interval is 10 seconds initiallyConfigured keep-alive interval is 30 secondsConfigured hold time is 90 secondsMinimum route advertisement interval is 30 secondsMinimum AS origination interval is 10 secondsGraceful restart negotiation:Restart time is 120 secondsStale paths time is 360 secondsConfiguration for address family ipv4:unicastRIB-out is disabledDefault originate is disabledNext hop self is disabledNext hop unchanged is disabledDon't send communitiesInbound soft reconfiguration is disabledPrivate AS number stripping is disabledOverride site AS with provider AS is disabledNo loops in the received AS-path are allowedMembers: 10.2.2.2 10.3.3.3Fields relevant to conditional advertisement: Advertise-map is advertisetoR1Condition-map: trigger1Sequence: 5Status: WithdrawAdvertise-map is alternatetoR1Condition-map: trigger2Sequence: 10Status: Advertiseshow ip bgp quote-regexp
- Use to display information about BGP routes whose AS-path matches the specified regular expression.
- Use with only a single regular expression element.
- You can use output filtering.
- You must enclose any elements containing a space within quotation marks ("element").
- Regular expressions match numbers for which the specified path is a substringfor example, if you specify 20, 200 matches because 20 is a substring of 200. You can disallow substring matching by using the underscore (_) metacharacter to constrain matching to the specified pattern, for example, _20_.
- Reports whether the indirect next hop of a route is unreachable; if not, displays the IGP cost to the indirect next hop.
- If you filter the display with field options, the usual introductory information about BGP attributes is displayed only if you issue the intro fields option. See show ip bgp for descriptions of the fields displayed by this keyword.
show ip bgp regexp
- Use to display information about BGP routes whose AS-path matches the specified regular expression.
- Use with one or more regular expression elements.
- You cannot use output filtering.
- You do not have to enclose elements containing a space within quotation marks.
- Regular expressions match numbers for which the specified path is a substringfor example, if you specify 20, 200 matches because 20 is a substring of 200. You can disallow substring matching by using the underscore (_) metacharacter to constrain matching to the specified pattern, for example, _20_.
- Reports whether the indirect next hop of a route is unreachable; if not, displays the IGP cost to the indirect next hop.
- If you filter the display with field options, the usual introductory information about BGP attributes is displayed only if you issue the intro fields option. See show ip bgp for descriptions of the fields displayed by this keyword.
Examples for regexp and quote-regexp
In many cases, you can use either show ip bgp regexp or show ip bgp quote-regexp with the same results. For example, to show all routes whose AS-path starts with 200 you can use either command as follows:
host1#show ip bgp regexp ^200Local router ID 192.168.1.232, local AS 1006 paths, 3 distinct prefixes (324 bytes used)3 paths selected for route table installation7 path attribute entries (872 bytes used)Prefix Next-hop MED CalPrf Weight AS-path10.99.1.2/32 10.1.1.2 100 100 20010.99.1.3/32 10.1.1.2 100 100 200 1010.99.1.4/32 10.1.1.2 100 100 200 10 20host1#show ip bgp quote-regexp ^200Local router ID 192.168.1.232, local AS 1006 paths, 3 distinct prefixes (324 bytes used)3 paths selected for route table installation7 path attribute entries (872 bytes used)Prefix Next-hop MED CalPrf Weight AS-path10.99.1.2/32 10.1.1.2 100 100 20010.99.1.3/32 10.1.1.2 100 100 200 1010.99.1.4/32 10.1.1.2 100 100 200 10 20If the regular expression contains one or more spaces, you must place quotation marks around the expression in the show ip bgp quote-regexp command but not in the show ip bgp regexp command. For example, to show all routes whose AS-path contains AS number 10 followed immediately by AS number 20:
host1#show ip bgp regexp 10 20Local router ID 192.168.1.232, local AS 1006 paths, 3 distinct prefixes (324 bytes used)3 paths selected for route table installation7 path attribute entries (872 bytes used)Prefix Next-hop MED CalPrf Weight AS-path10.99.1.4/32 10.1.1.2 100 100 200 10 20host1#show ip bgp quote-regexp 10 20^% Invalid input detected at '^' marker.host1#show ip bgp quote-regexp "10 20"Local router ID 192.168.1.232, local AS 1006 paths, 3 distinct prefixes (324 bytes used)3 paths selected for route table installation7 path attribute entries (872 bytes used)Prefix Next-hop MED CalPrf Weight AS-path10.99.1.4/32 10.1.1.2 100 100 200 10 20The show ip bgp regexp command accepts multiple strings as arguments. If you try to apply output filtering, the command interprets the filter information as a regular expression and fails:
host1#show ip bgp regexp ^200 | begin Prefix% invalid regular expressionBecause the show ip bgp quote-regexp command accepts only one string as an argument to the regular expression, output filtering is possible:
host1#show ip bgp quote-regexp ^200 | begin PrefixPrefix Next-hop MED CalPrf Weight AS-path10.99.1.2/32 10.1.1.2 100 100 20010.99.1.3/32 10.1.1.2 100 100 200 1010.99.1.4/32 10.1.1.2 100 100 200 10 20show ip bgp summary
- Use to summarize the status of all BGP neighbors.
- You can use the field options to display filtered information about BGP neighbors.
- If you filter the display with field options, the usual introductory information about BGP attributes is displayed only if you issue the intro fields option. See show ip bgp for descriptions of the fields displayed by this keyword.
- You can use the default-fields peer command to specify default fields to be displayed by subsequently issued show ip bgp summary commands.
- Field descriptions
- Local router IDRouter ID of the local router
- Local ASAS number of local router
- Administrative stateBGP administrative state, start or stop
- BGP Operational stateOperational state, up, down, or overload
- Shutdown in overload stateStatus, enabled or disabled
- Default local preferenceDefault value for local preference
- IGP synchronizationSynchronization status, enabled or disabled
- Default originateWhether network 0.0.0.0 is redistributed into BGP (enabled) or not (disabled)
- Auto-summaryStatus of auto summarization of routes redistributed into BGP
- Always compare MEDStatus, enabled or disabled
- Compare MED within confederationStatus, enabled or disabled
- Advertise inactive routesStatus, enabled or disabled
- Advertise best external route to internal peerStatus, enabled or disabled
- Enforce first ASStatus, enabled or disabled
- Missing MED as worstStatus, enabled or disabled
- Route flap dampeningStatus, enabled or disabled
- Maximum number of equal-cost EBGP pathsNumber of paths
- Maximum number of equal-cost IBGP pathsNumber of paths
- Log neighbor changesStatus, enabled or disabled
- Fast External FalloverStatus, enabled or disabled
- No maximum received AS-path lengthIndicates whether limit is set for AS path length and, if set, the limit
- BGP administrative distancesDistances for external, internal, and local BGP routes
- Router is a route reflectorIndicates whether the router has been configured as a route reflector
- Client-to-client reflectionWhether client-to-client reflection is configured (enabled) or not (disabled)
- Cluster IDIdentifying number for cluster ID
- Route-target filterStatus, enabled or disabled
- Default IPv4-unicastStatus, enabled or disabled
- Redistribution of iBGP routesStatus, enabled or disabled
- Check reachability of next-hops for VPN routesStatus, enabled or disabled
- Graceful restartStatus, enabled or disabled
- Global graceful-restart restart timeTime in seconds
- Global graceful-restart stale paths timeTime in seconds
- Graceful-restart path selection defer timeTime in seconds
- Route DistinguisherRD assigned to the VRF
- Confederation IDConfederation ID
- Confederation peersConfederation peers
- Import route mapRoute map associated with the VRF that filters and modifies routes imported to the VRF from the global BGP VPN RIB. The map applies to both IPv4 and IPv6 routes, unless the field name is preceded by IPv4 (applies the map to only IPv4 routes) or IPv6 (applies the map to only IPv6 routes).
- Export route mapRoute map associated with the VRF that modifies and filters routes exported by the VRF to the global BGP VPN RIB. The map applies to both IPv4 and IPv6 routes, unless the field name is preceded by IPv4 (applies the map to only IPv4 routes) or IPv6 (applies the map to only IPv6 routes). The can filter routes text appears only if the filter keyword was issued for export map.
- Global import route mapRoute map associated with the VRF that modifies routes imported to the VRF from the global BGP non-VPN RIB. The map applies to both IPv4 and IPv6 routes, unless the field name is preceded by IPv4 (applies the map to only IPv4 routes) or IPv6 (applies the map to only IPv6 routes).
- routes imported from global tableNumber of routes imported from the global BGP non-VPN RIB; also lists the maximum number of routes that can be imported
- Global export route mapRoute map associated with the VRF that modifies routes exported by the VRF to the global BGP non-VPN RIB. The map applies to both IPv4 and IPv6 routes, unless the field name is preceded by IPv4 (applies the map to only IPv4 routes) or IPv6 (applies the map to only IPv6 routes).
- Local-RIB versionNumber that is increased by one each time a route in that RIB is added, removed or modified.
- FIB versionNumber that is increased by one each time BGP updates the routes in the IP routing table based on changes in the local RIB. The FIB version matches the local-RIB version when BGP has finished updating the routes in the IP route table. The FIB version is less than the local-RIB version when BGP is still in the process of updating the IP routing table.
- NeighborBGP neighbors
- ASAS number of the peer
- VerNegotiated BGP version number
- StateState of the connection
- Up/down timeTime the connection has been up or down
- Messages sentNumber of messages sent to peer
- Messages receivedNumber of messages received from peer
- Prefixes receivedNumber of prefixes received from peer
- Rib VerLast RIB version queued to be sent to peer
- Send QNumber of messages queued to be sent to peer
- More InQStatus indicating whether any messages are waiting to be sent to peer
host1#show bgp ipv6 summaryLocal router ID 10.13.13.13, local AS 400Administrative state is StartBGP Operational state is UpShutdown in overload state is disabledDefault local preference is 100IGP synchronization is disabledDefault originate is disabledAlways compare MED is disabledCompare MED within confederation is disabledAdvertise inactive routes is disabledAdvertise best external route to internal peers is disabledEnforce first AS is disabledMissing MED as worst is disabledRoute flap dampening is disabledMaximum number of equal-cost EBGP paths is 2Maximum number of equal-cost IBGP paths is 2Log neighbor changes is disabledFast External Fallover is disabledNo maximum received AS-path lengthBGP administrative distances are 20 (ext), 200 (int), and 200 (local)Client-to-client reflection is enabledCluster ID is 10.13.13.13Route-target filter is enabledDefault IPv4-unicast is enabledRedistribution of iBGP routes is disabledGraceful restart is globally disabledGlobal graceful-restart restart time is 120 secondsGlobal graceful-restart stale paths time is 360 secondsGraceful-restart path selection defer time is 360 secondsThis platform supports only the receiver role of graceful restartRoute Distinguisher: 100:11Import route map: test2-import-mapExport route map: test1-export-map (can not filter routes)Global import route map: test3-global-import-map103 routes imported from global table (max 5000 routes allowed)Global export route map: test4-global-export-mapLocal-RIB version 7. FIB version 7.Messages Messages PrefixesNeighbor AS State Up/down time Sent Received Received11.11.11.11 400 Established 00:36:19 78 81 212.12.12.12 400 Established 00:36:21 78 78 1103.103.103.3 300 Established 00:36:34 85 80 2Example 2Status of next hop reachability checking is displayed only if you specify vpnv4. host1#show ip bgp vpnv4 all summaryLocal router ID 10.13.5.19, local AS 100Administrative state is StartBGP Operational state is Up...Default IPv4-unicast is enabledRedistribution of iBGP routes is disabledCheck reachability of next-hops for VPN routes is enabled...Example 3Status of fields related to enabling local AS numbers to be received in routes host1#show ip bgp summary fields remote-as state rib-version send-queue-length more-in-queueSend MoreNeighbor AS State RIB Ver Q InQ2.2.2.2 100 Established 2 0 noshow ip community-list
host1#show ip community-listCommunity List 1:permit 752877569 (11488:1)permit 752877570 (11488:2)permit 752877571 (11488:3)permit 752877572 (11488:4)Community List 2:permit 4294967043 (local-as)undebug ip bgp
- Use to disable the display of information about BGP logs that was previously enabled with the debug ip bgp command.
- Example
host1#undebug ip bgpThere is no no version.