R3
router bgp 101
neighbor 4.4.4.4 remote-as 201
neighbor 4.4.4.4 ebgp-multihop 255
neighbor 4.4.4.4 update-source Loopback0
neighbor 4.4.4.4 send-community
neighbor 4.4.4.4 route-map localp in
route-map localp permit 10
match ip address prefix-list dottwo
set local-preference 300
!
route-map localp permit 20
Sh ip bgp
Network Next Hop Metric LocPrf Weight Path
*>i 40.1.1.0/24 28.0.0.8 0 200 0 201 i
{local Pref 200 preferred , this is preferred from R8}
* 4.4.4.4 0 0 201 i
* i 40.1.2.0/24 28.0.0.8 0 100 0 201 i
*> 4.4.4.4 0 300 0 201 i
{local Pref 300 is preferred , This is preferred from R4}
* i 40.1.3.0/24 28.0.0.8 0 100 0 201 i
*> 4.4.4.4 0 0 201 i
* i 40.1.4.0/24 28.0.0.8 0 100 0 201 i
*> 4.4.4.4 0 0 201 i
* i 44.4.4.4/32 28.0.0.8 0 100 0 201 i
*> 4.4.4.4 0 0 201 i
R2
R2#sh run | sec bgp
router bgp 101
bgp log-neighbor-changes
neighbor 28.0.0.8 remote-as 201
neighbor 28.0.0.8 route-map localp in
*>i 40.1.1.0/24 28.0.0.8 0 200 0 201 i
{local Pref 200 preferred , this is preferred from R8}
* 4.4.4.4 0 0 201 i
* i 40.1.2.0/24 28.0.0.8 0 100 0 201 i
*> 4.4.4.4 0 300 0 201 i
{local Pref 300 is preferred , This is preferred from R4}
* i 40.1.3.0/24 28.0.0.8 0 100 0 201 i
*> 4.4.4.4 0 0 201 i
* i 40.1.4.0/24 28.0.0.8 0 100 0 201 i
*> 4.4.4.4 0 0 201 i
* i 44.4.4.4/32 28.0.0.8 0 100 0 201 i
*> 4.4.4.4 0 0 201 i
R2
R2#sh run | sec bgp
router bgp 101
bgp log-neighbor-changes
neighbor 28.0.0.8 remote-as 201
neighbor 28.0.0.8 route-map localp in
ip prefix-list dotone seq 5 permit 40.1.1.0/24
route-map localp permit 10
match ip address prefix-list dotone
set local-preference 200
!
route-map localp permit 20
!
Sh ip bgp
*> 40.1.1.0/24 28.0.0.8 200 0 201 i { from R8}
*>i 40.1.2.0/24 4.4.4.4 0 300 0 201 i { from R4}
* 28.0.0.8 0 201 i
* i 40.1.3.0/24 4.4.4.4 0 100 0 201 i
*> 28.0.0.8 0 201 i
* i 40.1.4.0/24 4.4.4.4 0 100 0 201 i
*> 28.0.0.8 0 201 i
R1
*>i 40.1.1.0/24 2.2.2.2 0 200 0 201 i { from R2}
*>i 40.1.2.0/24 3.3.3.3 0 300 0 201 i {from R3}
* i 40.1.3.0/24 2.2.2.2 0 100 0 201 i
*>i 3.3.3.3 0 100 0 201 i
* i 40.1.4.0/24 2.2.2.2 0 100 0 201 i
*>i 3.3.3.3 0 100 0 201 i
No comments:
Post a Comment