bgp-orr with local-preference set
vRR1 | R2 | R3 | R4 |
---|---|---|---|
Befor root@vRR1> show route 51.148.72.88/31 extensive inet.0: 14 destinations, 24 routes (14 active, 0 holddown, 0 hidden) 51.148.72.88/31 (2 entries, 2 announced) TSI: KRT in-kernel 51.148.72.88/31 -> {indirect(1048574)} Page 0 idx 0, (group bgp-orr type Internal) Type 1 val 0xb20c2b4 (adv_entry) Advertised metrics: Nexthop: 14.14.14.14 Localpref: 100 <<<<<<<<<<<<< Default LP AS path: [65432] I Communities: Cluster ID: 11.11.11.11 Originator ID: 14.14.14.14 Path 51.148.72.88 from 14.14.14.14 Vector len 4. Val: 0 *BGP Preference: 170/-101 Next hop type: Indirect, Next hop index: 0 Address: 0xc6327d0 Next-hop reference count: 7 Source: 13.13.13.13 Next hop type: Router, Next hop index: 581 Next hop: 20.11.13.13 via em1.20, selected Session Id: 0x141 Protocol next hop: 13.13.13.13 Indirect next hop: 0xb23e200 1048574 INH Session ID: 0x142 State: <Active Int Ext> Local AS: 65432 Peer AS: 65432 Age: 29:53 Metric2: 1000 Validation State: unverified ORR Generation-ID: 1 Task: BGP_65432.13.13.13.13+179 Announcement bits (2): 0-KRT 4-Resolve tree 4 AS path: I Accepted Localpref: 100 Router ID: 13.13.13.13 Indirect next hops: 1 Protocol next hop: 13.13.13.13 Metric: 1000 Indirect next hop: 0xb23e200 1048574 INH Session ID: 0x142 Indirect path forwarding next hops: 1 Next hop type: Router Next hop: 20.11.13.13 via em1.20 Session Id: 0x141 13.13.13.13/32 Originating RIB: inet.0 Metric: 1000 Node path count: 1 Forwarding nexthops: 1 Nexthop: 20.11.13.13 via em1.20 Session Id: 141 BGP Preference: 170/-101 Next hop type: Indirect, Next hop index: 0 Address: 0xc632ad0 Next-hop reference count: 5 Source: 14.14.14.14 Next hop type: Router, Next hop index: 0 Next hop: 10.11.12.12 via em1.10, selected Session Id: 0x0 Next hop: 20.11.13.13 via em1.20 Session Id: 0x0 Protocol next hop: 14.14.14.14 Indirect next hop: 0xb23e380 - INH Session ID: 0x0 State: <NotBest Int Ext> Inactive reason: Not Best in its group - IGP metric Local AS: 65432 Peer AS: 65432 Age: 29:06 Metric2: 2000 Validation State: unverified ORR Generation-ID: 1 Task: BGP_65432.14.14.14.14+179 Announcement bits (1): 3-BGP_RT_Background AS path: I Accepted Localpref: 100 Router ID: 14.14.14.14 Indirect next hops: 1 Protocol next hop: 14.14.14.14 Metric: 2000 Indirect next hop: 0xb23e380 - INH Session ID: 0x0 Indirect path forwarding next hops: 2 Next hop type: Router Next hop: 10.11.12.12 via em1.10 Session Id: 0x0 Next hop: 20.11.13.13 via em1.20 Session Id: 0x0 14.14.14.14/32 Originating RIB: inet.0 Metric: 2000 Node path count: 1 Forwarding nexthops: 2 Nexthop: 10.11.12.12 via em1.10 Session Id: 0 Nexthop: 20.11.13.13 via em1.20 Session Id: 0 root@vRR1> | Before root@vRR3# run show route table inet.0 advertising-protocol bgp 11.11.11.11 51.148.72.88/31 detail inet.0: 15 destinations, 15 routes (15 active, 0 holddown, 0 hidden) * 51.148.72.88/31 (1 entry, 1 announced) BGP group iBGP type Internal Nexthop: Self Localpref: 100 <<<<<<<<<<<<<<<<<<<<<<<<<<<<< Default AS path: [65432] I | ||
change of policy set local-preference 200 | |||
After [edit policy-options policy-statement from_static_2_iBGP term term2 then] root@vRR3# run show route table inet.0 advertising-protocol bgp 11.11.11.11 51.148.72.88/31 detail inet.0: 15 destinations, 15 routes (15 active, 0 holddown, 0 hidden) * 51.148.72.88/31 (1 entry, 1 announced) BGP group iBGP type Internal Nexthop: Self Localpref: 200 <<<<<<<<<<<<<<<<<<<<<<< modify to LP= 200 AS path: [65432] I | |||
adv to R2 root@vRR1> show route table inet.0 advertising-protocol bgp 12.12.12.12 51.148.72.88/31 detail inet.0: 14 destinations, 24 routes (14 active, 0 holddown, 0 hidden) * 51.148.72.88/31 (2 entries, 1 announced) BGP group bgp-orr type Internal Nexthop: 13.13.13.13 Localpref: 200 <<<<<<<<<<<<<< LP=200 AS path: [65432] I Cluster ID: 11.11.11.11 Originator ID: 13.13.13.13 After root@vRR1> show route 51.148.72.88/31 extensive inet.0: 14 destinations, 24 routes (14 active, 0 holddown, 0 hidden) 51.148.72.88/31 (2 entries, 1 announced) TSI: KRT in-kernel 51.148.72.88/31 -> {indirect(1048574)} Page 0 idx 0, (group bgp-orr type Internal) Type 1 val 0xb20c2b4 (adv_entry) Advertised metrics: Nexthop: 13.13.13.13 Localpref: 200 <<<<<<<<< LP=200 AS path: [65432] I Communities: Cluster ID: 11.11.11.11 Originator ID: 13.13.13.13 Path 51.148.72.88 from 13.13.13.13 Vector len 4. Val: 0 *BGP Preference: 170/-201 Next hop type: Indirect, Next hop index: 0 Address: 0xc6327d0 Next-hop reference count: 7 Source: 13.13.13.13 Next hop type: Router, Next hop index: 581 Next hop: 20.11.13.13 via em1.20, selected Session Id: 0x141 Protocol next hop: 13.13.13.13 Indirect next hop: 0xb23e200 1048574 INH Session ID: 0x142 State: <Active Int Ext> Local AS: 65432 Peer AS: 65432 Age: 10:46 Metric2: 1000 Validation State: unverified ORR Generation-ID: 1 Task: BGP_65432.13.13.13.13+179 Announcement bits (3): 0-KRT 3-BGP_RT_Background 4-Resolve tree 4 AS path: I Accepted Localpref: 200 Router ID: 13.13.13.13 Indirect next hops: 1 Protocol next hop: 13.13.13.13 Metric: 1000 Indirect next hop: 0xb23e200 1048574 INH Session ID: 0x142 Indirect path forwarding next hops: 1 Next hop type: Router Next hop: 20.11.13.13 via em1.20 Session Id: 0x141 13.13.13.13/32 Originating RIB: inet.0 Metric: 1000 Node path count: 1 Forwarding nexthops: 1 Nexthop: 20.11.13.13 via em1.20 Session Id: 141 BGP Preference: 170/-101 Next hop type: Indirect, Next hop index: 0 Address: 0xc632ad0 Next-hop reference count: 5 Source: 14.14.14.14 Next hop type: Router, Next hop index: 0 Next hop: 10.11.12.12 via em1.10, selected Session Id: 0x0 Next hop: 20.11.13.13 via em1.20 Session Id: 0x0 Protocol next hop: 14.14.14.14 Indirect next hop: 0xb23e380 - INH Session ID: 0x0 State: <Int Ext> Inactive reason: Local Preference Local AS: 65432 Peer AS: 65432 Age: 46:49 Metric2: 2000 Validation State: unverified ORR Generation-ID: 1 Task: BGP_65432.14.14.14.14+179 AS path: I Accepted Localpref: 100 Router ID: 14.14.14.14 Indirect next hops: 1 Protocol next hop: 14.14.14.14 Metric: 2000 Indirect next hop: 0xb23e380 - INH Session ID: 0x0 Indirect path forwarding next hops: 2 Next hop type: Router Next hop: 10.11.12.12 via em1.10 Session Id: 0x0 Next hop: 20.11.13.13 via em1.20 Session Id: 0x0 14.14.14.14/32 Originating RIB: inet.0 Metric: 2000 Node path count: 1 Forwarding nexthops: 2 Nexthop: 10.11.12.12 via em1.10 Session Id: 0 Nexthop: 20.11.13.13 via em1.20 Session Id: 0 root@vRR1> | After change root@vRR2> show route 51.148.72.88 inet.0: 14 destinations, 14 routes (14 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 51.148.72.88/31 *[BGP/170] 00:28:00, localpref 200, from 11.11.11.11 AS path: I, validation-state: unverified > to 10.11.12.11 via em1.10 to 40.12.14.14 via em1.40 change root@vRR2> show route protocol bgp detail inet.0: 14 destinations, 14 routes (14 active, 0 holddown, 0 hidden) 51.148.72.88/31 (1 entry, 1 announced) *BGP Preference: 170/-101 Next hop type: Indirect, Next hop index: 0 Address: 0xc6324d0 Next-hop reference count: 2 Source: 11.11.11.11 Next hop type: Router, Next hop index: 581 Next hop: 40.12.14.14 via em1.40, selected Session Id: 0x142 Protocol next hop: 14.14.14.14 Indirect next hop: 0xb23e380 1048575 INH Session ID: 0x143 State: <Active Int Ext> Local AS: 65432 Peer AS: 65432 Age: 31:21 Metric2: 1000 Validation State: unverified ORR Generation-ID: 0 Task: BGP_65432.11.11.11.11+179 Announcement bits (2): 0-KRT 4-Resolve tree 4 AS path: I (Originator) Cluster list: 11.11.11.11 Originator ID: 14.14.14.14 Accepted Localpref: 100 Router ID: 11.11.11.11 iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) inet6.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) root@vRR2> show route protocol bgp detail inet.0: 14 destinations, 14 routes (14 active, 0 holddown, 0 hidden) 51.148.72.88/31 (1 entry, 1 announced) *BGP Preference: 170/-201 Next hop type: Indirect, Next hop index: 0 Address: 0xc632470 Next-hop reference count: 2 Source: 11.11.11.11 Next hop type: Router, Next hop index: 0 Next hop: 10.11.12.11 via em1.10, selected Session Id: 0x0 Next hop: 40.12.14.14 via em1.40 Session Id: 0x0 Protocol next hop: 13.13.13.13 Indirect next hop: 0xb23e200 1048576 INH Session ID: 0x144 State: <Active Int Ext> Local AS: 65432 Peer AS: 65432 Age: 11 Metric2: 2000 Validation State: unverified ORR Generation-ID: 0 Task: BGP_65432.11.11.11.11+179 Announcement bits (2): 0-KRT 4-Resolve tree 4 AS path: I (Originator) Cluster list: 11.11.11.11 Originator ID: 13.13.13.13 Accepted Localpref: 200 Router ID: 11.11.11.11 iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) inet6.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) root@vRR2> | ||