0% found this document useful (0 votes)
8 views2 pages

Show Ip BGP Explained

The document explains the 'show ip bgp' command, detailing its components such as prefix, status codes, next hop, and various metrics that influence BGP path selection. It outlines the BGP path selection order and methods to influence it, including adjusting weight, local preference, and AS path prepending. An example scenario illustrates how to prefer one ISP over another using local preference settings.

Uploaded by

SHASHANK KUMAR
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

Show Ip BGP Explained

The document explains the 'show ip bgp' command, detailing its components such as prefix, status codes, next hop, and various metrics that influence BGP path selection. It outlines the BGP path selection order and methods to influence it, including adjusting weight, local preference, and AS path prepending. An example scenario illustrates how to prefer one ISP over another using local preference settings.

Uploaded by

SHASHANK KUMAR
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Understanding "show ip bgp" Command

1. Prefix / Network

Shows the destination subnet being advertised (e.g., 10.10.10.0/24).

2. Status Codes

*> = Valid and best path. * = Valid. > = Best. i = Originated from IGP, ? = Incomplete, e = EGP.

3. Next Hop

IP of the next router. Must be reachable for the route to be valid.

4. Metric (MED)

Multi-Exit Discriminator. Lower is better. Used between same-AS routes.

5. Local Preference

Higher is better. Used within AS to decide exit points. Default is 100.

6. Weight

Cisco-specific. Higher is better. Local to the router. Default: 32768 (local), 0 (received).

7. AS Path

Shows the path through autonomous systems. Shorter AS path is preferred.

8. Origin Code

i = IGP (best), e = EGP, ? = redistributed.

BGP Path Selection Order

1. Highest Weight
2. Highest Local Preference
3. Local originated
4. Shortest AS Path
5. Lowest origin type (i < e < ?)
6. Lowest MED
7. eBGP over iBGP
8. Lowest IGP metric
9. Oldest path
10. Lowest router ID

Influencing BGP Path Selection


Understanding "show ip bgp" Command
- Weight: set via 'neighbor x.x.x.x weight y'
- Local Preference: use route-map to set with 'set local-preference'
- AS Path Prepending: 'set as-path prepend'
- MED: 'set metric'
- Next-Hop-Self: 'neighbor x.x.x.x next-hop-self'
- Ensure next hop is reachable using IGP or static route

Example Scenario: Prefer ISP1 over ISP2

ISP1: Set local-pref to 200


ISP2: Set local-pref to 100
Use route-maps applied to incoming updates.

You might also like