14.3.4 Checking routes received by BGP4 (before learned route filtering) [SL-L3A]
To check routes received by the BGP4 protocol, use the show ip bgp operation command with the received-routes parameter specified.
> show ip bgp received-routes Date 20XX/07/14 12:00:00 UTC BGP Peer: 177.7.7.145 , Remote AS: 1000 Local AS: 200, Local Router ID: 200.201.202.203 Status Codes: d dampened, * valid, > active, S Stale, r RIB failure Origin Codes: i - IGP, e - EGP, ? - incomplete Network Next Hop MED LocalPref Path *> 200.1/24 192.168.1.145 - - 1000 i * 200.200.1/24 192.168.1.145 - - 1000 i |
- Notes
-
The command output does not include routes that are excluded by learned route filtering or do not have priority under BGP4.
To include detailed information about route attributes in the command output, use the show ip bgp operation command with the received-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 received-routes -F Date 20XX/07/14 12:00:00 UTC BGP Peer: 192.168.1.145 , Remote AS: 1000 Local AS: 200, Local Router ID: 192.168.1.1 Status Codes: d dampened, * valid, > active, S Stale, r RIB failure Route 200.1/24 *> Next Hop 192.168.1.145 MED: -, LocalPref: -, Type: External route Origin: IGP Path: 1000 Next Hop Attribute: 192.168.1.145 Communities: 120:200 Route 200.200.1/24 * Next Hop 192.168.1.145 MED: -, LocalPref: -, Type: External route Origin: IGP Path: 1000 Next Hop Attribute: 192.168.1.145 Communities: 120:200 |
- Notes
-
The command output does not include routes that are excluded by learned route filtering or do not have priority under BGP4.