Network

[BGP] best path selection_7

찍굴 2020. 12. 6. 20:22

7. lowest Originator ID

R1 기준으로 보았을 ,

R2 R5에서 ISIS metric 값을 동등하게 설정하였다.

 

*A:R1>config>router# show router isis routes

 

===============================================================================

Rtr Base ISIS Instance 0 Route Table

===============================================================================

Prefix[Flags]                     Metric     Lvl/Typ     Ver.  SysID/Hostname

  NextHop                                                MT     AdminTag/SID[F]

-------------------------------------------------------------------------------

1.1.1.1/32                        0          2/Int.      12    R1

   0.0.0.0                                                 0       0

2.2.2.2/32                        9          2/Int.      61    R2

   10.1.11.2                                               0       0

3.3.3.3/32                        20         2/Int.      61    R2

   10.1.11.2                                               0       0

4.4.4.4/32                        19         2/Int.      61    R2

   10.1.11.2                                               0       0

5.5.5.5/32                        10         2/Int.      59    R5

   10.1.21.1                                               0       0

6.6.6.6/32                        20         2/Int.      59    R5

   10.1.21.1                                               0       0

7.7.7.7/32                        20         2/Int.      59    R5

   10.1.21.1                                               0       0

10.1.11.0/24                      9          2/Int.      61    R1

   0.0.0.0                                                 0       0

10.1.12.0/24                      20         2/Int.      61    R2

   10.1.11.2                                               0       0

10.1.13.0/24                      19         2/Int.      61    R2

   10.1.11.2                                               0       0

10.1.21.0/24                      10         2/Int.      59    R1

   0.0.0.0                                                 0       0

10.1.22.0/24                      20         2/Int.      59    R5

   10.1.21.1                                               0       0

10.1.23.0/24                      20         2/Int.      59    R5

   10.1.21.1                                               0       0

30.1.1.0/24                       20         2/Int.      61    R2

   10.1.11.2                                               0       300

-------------------------------------------------------------------------------

No. of Routes: 14

 

*A:R1>config>router# show router bgp routes 20.1.11.0/24

===============================================================================

 BGP Router ID:1.1.1.1          AS:4766        Local AS:4766      

===============================================================================

 Legend -

 Status codes  : u - used, s - suppressed, h - history, d - decayed, * - valid

                 l - leaked, x - stale, > - best, b - backup, p - purge

 Origin codes  : i - IGP, e - EGP, ? - incomplete

 

===============================================================================

BGP IPv4 Routes

===============================================================================

Flag  Network                                            LocalPref   MED

      Nexthop (Router)                                   Path-Id     Label

      As-Path                                                       

-------------------------------------------------------------------------------

u*>i  20.1.11.0/24                                       100         None

      30.1.1.1                                           None        -

      500                                                            

*i    20.1.11.0/24                                       100         None

      7.7.7.7                                            None        -

      4768                                                           

-------------------------------------------------------------------------------

Routes : 2                           

===============================================================================

*A:R1>config>router#

*A:R1>config>router#

*A:R1>config>router# 

*A:R1>config>router# show router bgp routes 20.1.11.0/24 detail 

===============================================================================

 BGP Router ID:1.1.1.1          AS:4766        Local AS:4766      

===============================================================================

 Legend -

 Status codes  : u - used, s - suppressed, h - history, d - decayed, * - valid

                 l - leaked, x - stale, > - best, b - backup, p - purge

 Origin codes  : i - IGP, e - EGP, ? - incomplete

 

===============================================================================

BGP IPv4 Routes

===============================================================================

Original Attributes

 

Network        : 20.1.11.0/24

Nexthop        : 30.1.1.1

Path Id        : None                  

From           : 2.2.2.2

Res. Nexthop   : 10.1.11.2

Local Pref.    : 100                    Interface Name : Te1/1/1

Aggregator AS  : None                   Aggregator     : None

Atomic Aggr.   : Not Atomic             MED            : None

AIGP Metric    : None                  

Connector      : None                

Community      : No Community Members

Cluster        : 2.2.2.2

Originator Id  : 3.3.3.3                Peer Router Id : 2.2.2.2

Fwd Class      : None                   Priority       : None

Flags          : Used  Valid  Best  IGP 

Route Source   : Internal

AS-Path        : 500

Route Tag      : 0                     

Neighbor-AS    : 500

Orig Validation: NotFound              

Source Class   : 0                      Dest Class     : 0

Add Paths Send : Default               

Last Modified  : 00h20m52s             

 

Modified Attributes

 

Network        : 20.1.11.0/24

Nexthop        : 30.1.1.1

Path Id        : None                  

From           : 2.2.2.2

Res. Nexthop   : 10.1.11.2

Local Pref.    : 100                    Interface Name : Te1/1/1

Aggregator AS  : None                   Aggregator     : None

Atomic Aggr.   : Not Atomic             MED            : None

AIGP Metric    : None                  

Connector      : None

Community      : No Community Members

Cluster        : 2.2.2.2

Originator Id  : 3.3.3.3                Peer Router Id : 2.2.2.2

Fwd Class      : None                   Priority       : None

Flags          : Used  Valid  Best  IGP 

Route Source   : Internal

AS-Path        : 500

Route Tag      : 0                     

Neighbor-AS    : 500

Orig Validation: NotFound              

Source Class   : 0                      Dest Class     : 0

Add Paths Send : Default               

Last Modified  : 00h20m53s             

 

-------------------------------------------------------------------------------

Original Attributes

 

Network        : 20.1.11.0/24

Nexthop        : 7.7.7.7

Path Id        : None                  

From           : 5.5.5.5             

Res. Nexthop   : 10.1.21.1           

Local Pref.    : 100                    Interface Name : Te1/1/2

Aggregator AS  : None                   Aggregator     : None

Atomic Aggr.   : Not Atomic             MED            : None

AIGP Metric    : None                  

Connector      : None

Community      : No Community Members

Cluster        : No Cluster Members

Originator Id  : None                   Peer Router Id : 5.5.5.5

Fwd Class      : None                   Priority       : None

Flags          : Valid  IGP 

TieBreakReason : OriginatorID          

Route Source   : Internal

AS-Path        : 4768

Route Tag      : 0                     

Neighbor-AS    : 4768

Orig Validation: NotFound              

Source Class   : 0                      Dest Class     : 0

Add Paths Send : Default               

Last Modified  : 10h58m12s             

 

Modified Attributes

 

Network        : 20.1.11.0/24        

Nexthop        : 7.7.7.7

Path Id        : None                  

From           : 5.5.5.5

Res. Nexthop   : 10.1.21.1

Local Pref.    : 100                    Interface Name : Te1/1/2

Aggregator AS  : None                   Aggregator     : None

Atomic Aggr.   : Not Atomic             MED            : None

AIGP Metric    : None                  

Connector      : None

Community      : No Community Members

Cluster        : No Cluster Members

Originator Id  : None                   Peer Router Id : 5.5.5.5

Fwd Class      : None                   Priority       : None

Flags          : Valid  IGP 

TieBreakReason : OriginatorID          

Route Source   : Internal

AS-Path        : 4768

Route Tag      : 0                     

Neighbor-AS    : 4768

Orig Validation: NotFound              

Source Class   : 0                      Dest Class     : 0

Add Paths Send : Default               

Last Modified  : 10h58m13s             

 

-------------------------------------------------------------------------------

-------------------------------------------------------------------------------

Routes : 2