# Setting the Default BGP Routing Table Output Fields

#### Purpose

Specify fields that are displayed by default by any subsequently issued show ip bgp command that displays the BGP routing table.

You can 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.

#### Action

To specify the default output fields while displaying the BGP routes:

    host1:pe2(config-router)#default-fields route intro next-hop med loc-pref
    weight as-path
    host1:pe2#show ip bgp vpnv4 all
    Local BGP identifier 2.2.2.2, local AS 100
     6 routes (388 bytes)
     7 destinations (560 bytes) of which 0 have a route
     0 routes selected for route table installation
     6 path attribute entries (936 bytes)
     Local-RIB version 74. FIB version 74.

    Prefix           Next-hop   MED  LocPrf  Weight  AS-path
    99.99.99.11/32   1.1.1.1    1    100     0       65011
    99.99.99.12/32   1.1.1.1    0    100     0       empty
    99.99.99.13/32   1.1.1.1    2    100     0       empty
    99.99.99.21/32   21.21.21.2 1    0               65021
    99.99.99.22/32   22.22.22.2 0    32768           empty
    99.99.99.23/32   23.23.23.2 2    32768           empty

#### Meaning

Table 23 lists the show ip bgp command output fields.

Table 23: show ip bgp Output Fields

Field Name | Field Description
--- | ---
Local BGP identifier | BGP router ID of the local router
local AS | Local autonomous system number
routes | Total 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.
destinations | Number 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 installation | Number 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.
path attribute entries | Number 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 version | Number that is increased by one each time a route in that RIB is added, removed or modified.
FIB version | Number 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.
Prefix | Prefix for the routing table entry
Peer | Peer from which route was learned
Next hop IP address | IP address of the next router that is used when a packet is forwarded to the destination network
MED | Multiexit discriminator for the route
LocPrf | Local preference for the route
Weight | Weight of the route
Origin | Origin of the route
AS path | AS path through which this route has been advertised
Communities | Community number associated with the route
Stale | Routes that have gone stale due to peer restart
unicast/multicast routes selected for route table installation | Number 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 installation | Number 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 installation | Number of routes in the BGP routing table that have been inserted into the IP tunnel routing table
path attribute entries | Number 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.
Statistics baseline set | Timestamp indicating when the statistics baseline was last set

#### Related Documentation

- Monitoring the BGP Routing Table
- default-fields route