The basic steps for configuring BGP are:
Configuring Basic BGP describes how to configure Basic BGP.
Step | Task | Command(s) |
---|---|---|
1 | In configuration command mode, enable BGP and enter BGP configuration mode, specifying the autonomous system for this router. | router bgp as-number |
2 | In BGP configuration mode, configure the BGP router-ID. | bgp router-id router-id |
3 | Optionally enter address family mode and configure the address family indicator (AFI) for BGP peers. | address-family [ipv4 | ipv6] [unicast | multicast | both] [vrf vrf-name] |
4 | In BGP configuration mode, optionally configure an aggregate by combining the characteristics of multiple routes so that a single route is advertised. | aggregate-address prefix/length [summary] [as-set] [summary-and-as-set] [suppress-map route-map] [advertise-map route-map] [attribute-map route-map] [no-reject] |
5 | In BGP configuration mode, optionally enable aggregation of routes independent of the route MED. | bgp aggregate-med |
6 | In BGP configuration mode, optionally disable deterministic processing of MEDs. | no bgp deterministic-med |
7 | In BGP configuration mode, optionally specify whether to compare MEDs when multiple routes with differing MEDs are received from peers in different Autonomous Systems. | bgp always-compare-med |
8 | In BGP configuration mode, optionally modify the local-preference of advertised routes for the router. | bgp local-pref pref-value |
9 | In BGP configuration mode, optionally modify the route selection priority given to internal or external BGP routes compared to other protocols for the router. | bgp distance {internal | external} distance |
10 | In BGP configuration mode, optionally modify the maximum number of allowed external BGP ECMP routes. | bgp max-ebgp-ecmp-routes value |
11 | In BGP configuration mode, optionally modify the maximum number of allowed internal BGP ECMP routes. | bgp max-ibgp-ecmp-routes value |
12 | In BGP configuration mode, optionally disable BGP configuration on the router. Administratively disabled BGP configuration can be reenabled using the enable command. | no enable |
13 | In BGP configuration mode, optionally disable message logging via the syslog mechanism whenever a BGP peer enters or leaves the established state. | no log-up-down |
14 | In BGP configuration mode, optionally enable the sending of BGP traps when a peer transitions to Established or a lower state. | bgp trap {peer-established | peer-degraded} |