14.3.9 Checking BGP4 advertised routes [SL-L3A]
To check which routes are advertised by BGP4, execute the show ip bgp operation command with the advertised-routes parameter specified.
> show ip bgp advertised-routes Date 20XX/07/14 12:00:00 UTC BGP Peer: 177.7.7.145 , Remote AS: 2000 Local AS: 1000, Local Router ID: 192.168.1.1 Origin Codes: i - IGP, e - EGP, ? - incomplete Network Next Hop MED LocalPref Path 200.1/24 177.2.2.1 0 - 1000 2100 i 200.200.1/24 177.2.2.1 0 - 1000 2100 i |
To include detailed information about route attributes in the command output, use the show ip bgp operation command with the advertised-routes and -F parameters specified. Use this method to check the ORIGIN, AS_PATH, MED, LOCAL_PREF, and COMMUNITIES attributes of the routes.
> show ip bgp advertised-routes -F Date 20XX/07/14 12:00:00 UTC BGP Peer: 177.7.7.145 , Remote AS: 2000 Local AS: 1000, Local Router ID: 192.168.1.1 Status Codes: d dampened, * valid, > active, S Stale, r RIB failure Route 200.1/24 *> Next Hop 177.2.2.1 MED:0, LocalPref: -, Type: External route Origin: IGP Path: 1000 2100 Next Hop Attribute: 177.2.2.1 Communities: 1020:1200 Route 110.10/24 *> Next Hop 2.2.2.2 MED: 0, LocalPref: -, Type: External route Origin: IGP Path: 1000 2100 Next Hop Attribute: 177.2.2.1 Communities: 1020:1200 |