This command displays the list of IPv4 routes received from a specific neighbor. The list includes either all routes received from the neighbor, received routes that passed inbound policy, or routes rejected by inbound policy. If a VRF instance is specified, the routes information is displayed for the neighbors in the VRF instance.
| Format | show ip bgp [vrf vrf-name] neighbors [ip-address {received-routes | routes | rejected- routes}] |
| Mode | Privileged EXEC |
| Parameter | Description |
|---|---|
| vrf-name | (Optional) Display the routes belonging to communities within a VRF instance. |
| ip-address | (Optional) The IP address of a neighbor. |
| received-routes | Display all routes received from this neighbor, regardless of if the routes passed inbound policy |
| routes | Display only routes that passed inbound policy. |
| rejected-routes | Display only routes rejected by inbound policy. |
The command output displays the following information.
| Parameter | Description |
|---|---|
| Network | Destination prefix |
| Next Hop | The BGP NEXT HOP as advertised by the peer. |
| Metric | The value of the Multi Exit Discriminator, if a MED is received from the peer. |
| Local Pref | The local preference received from the peer. |
| Path | The AS path as received from the peer |
| Origin | The value of the Origin attribute as received from the peer |
Example: The following shows example CLI display output for the command.
(Routing) #show ip bgp neighbors 172.20.101.100 received-routes local router ID is 20.1.1.1 Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric Local Pref Path Origin 172.20.1.0/24 172.20.101.1 10 100 20 10 i 20.1.1.0/24 172.20.101.1 100 20 ?