Advanced Configuration and Management Guide
Displaying the Best BGP4 Routes
To display all the BGP4 routes in the routing switch’s BGP4 route table that are the best routes to their destinations, enter a command such as the following at any level of the CLI:
|
|
| |||||
Searching for matching | routes, use ^C to quit... |
|
|
| |||
Status | A:AGGREGATE B:BEST |
| |||||
| H:HISTORY I:IBGP L:LOCAL M:MULTIPATH S:SUPPRESSED |
|
| ||||
| Network | ML Next Hop | Metric | LocPrf | Weight Status | ||
1 | 4.2.42.0 | 24 | 192.168.4.211 |
| 101 | 0 | B |
2 | 4.2.43.0 | 24 | 192.168.4.211 |
| 101 | 0 | B |
3 | 7.7.7.0 | 24 | 192.168.4.211 | 0 | 101 | 0 | b |
4 | 38.38.38.0 | 24 | 192.168.4.211 | 0 | 101 | 0 | B |
13 | 102.0.0.0 | 24 | 200.1.1.10 | 12 | 101 | 32768 | BL |
Syntax: show ip bgp routes best
For information about the fields in this display, see Table 10.9 on page
Displaying Those Best BGP4 Routes that Are Nonetheless Not in the IP Route Table
When the routing switch has multiple routes to a destination from different sources (such as BGP4, OSPF, RIP, or static routes), the routing switch selects the route with the lowest administrative distance as the best route, and installs that route in the IP route table.
To display the BGP4 routes are the “best” routes to their destinations but are not installed in the routing switch’s IP route table, enter a command such as the following at any level of the CLI:
bgp routes |
|
| ||||||
Searching for matching routes, use | ^C to quit... |
|
|
| ||||
Status A:AGGREGATE B:BEST |
| |||||||
| H:HISTORY I:IBGP L:LOCAL M:MULTIPATH S:SUPPRESSED |
|
| |||||
| Network | ML Next Hop |
| Metric | LocPrf | Weight Status | ||
1 | 7.7.7.0 | 24 | 192.168.4.211 | 0 | 101 | 0 | b |
Each of the displayed routes is a valid path to its destination, but the routing switch received another path from a different source (such as OSPF, RIP, or a static route) that has a lower administrative distance. The routing switch always selects the path with the lowest administrative distance to install in the IP route table.
Notice that the route status in this example is the new status, “b”. See Table 10.9 on page
Syntax: show ip bgp routes
For information about the fields in this display, see Table 10.9 on page
NOTE: To display the routes that the routing switch has selected as the best routes and installed in the IP route table, display the IP route table using the show ip route command.
Displaying BGP4 Routes Whose Destinations Are Unreachable
To display BGP4 routes whose destinations are unreachable using any of the BGP4 paths in the BGP4 route table, enter a command such as the following at any level of the CLI:
bgp routes unreachable |
| ||||||
Searching for matching routes, use | ^C to quit... |
|
| ||||
Status A:AGGREGATE B:BEST | |||||||
| H:HISTORY I:IBGP L:LOCAL M:MULTIPATH S:SUPPRESSED |
| |||||
| Network | ML Next Hop |
| Metric | LocPrf | Weight Status | |
1 | 8.8.8.0 | 24 | 192.168.5.1 | 0 | 101 | 0 |
Syntax: show ip bgp routes unreachable
10 - 104