cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
645
Views
0
Helpful
5
Replies

site of origin BGP

sachin30720041
Level 1
Level 1

Hello All,

 

I am trying to understand site of origin.

R1, R2 are in AS12  and  R3, R4 are in AS34.

R1 is advertising 11.11.11.11 and R2 is advertising 22.22.22.22.

SOO 22:22 is set on R3 and R4 so that R3 does not distribute 22.22.22.22 to R1 and R4 does not distribute 11.11.11.11 to R2.

 

But I see 22.22.22.22 is distributed by R3 towards R1 and 11.11.11.11 is distributed towards R2 from R4.

Is it the correct behavior ?

 

 

R1-------(ibgp)------------------R2

|                                                         |

ebgp                                               ebgp           

100.10.30.0/24                         100.20.40.0/24

|                                                        |

R3-------(ibgp)-----------------R4

 

R1

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

ip prefix-list prefix1
seq 5 deny 22.22.22.22/32
seq 10 permit 0.0.0.0/0 ge 32

 

router bgp 12
bgp log-neighbor-changes
neighbor 2.2.2.2 remote-as 12
neighbor 2.2.2.2 update-source Loopback0
neighbor 100.10.30.3 remote-as 34
!
address-family ipv4
network 11.11.11.11 mask 255.255.255.255
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 next-hop-self
neighbor 100.10.30.3 activate
neighbor 100.10.30.3 send-community both
neighbor 100.10.30.3 weight 1000
neighbor 100.10.30.3 prefix-list prefix1 out
exit-address-family

 

R2

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

ip prefix-list prefix1

seq 5 deny 11.11.11.11/32
seq 10 permit 0.0.0.0/0 ge 32

 

router bgp 12
bgp log-neighbor-changes
neighbor 1.1.1.1 remote-as 12
neighbor 1.1.1.1 update-source Loopback0
neighbor 100.20.40.4 remote-as 34
!
address-family ipv4
network 22.22.22.22 mask 255.255.255.255
neighbor 1.1.1.1 activate
neighbor 1.1.1.1 next-hop-self
neighbor 100.20.40.4 activate
neighbor 100.20.40.4 send-community extended
neighbor 100.20.40.4 weight 1000
neighbor 100.20.40.4 prefix-list prefix1 out
exit-address-family

 

R3

--------------------
router bgp 34
bgp log-neighbor-changes
neighbor 4.4.4.4 remote-as 34
neighbor 4.4.4.4 update-source Loopback0
neighbor 100.10.30.1 remote-as 12
!
address-family ipv4
network 33.33.33.33 mask 255.255.255.255
neighbor 4.4.4.4 activate
neighbor 4.4.4.4 send-community both
neighbor 4.4.4.4 next-hop-self
neighbor 100.10.30.1 activate
neighbor 100.10.30.1 send-community both
neighbor 100.10.30.1 as-override
neighbor 100.10.30.1 soo 22:22
exit-address-family

 

R4

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

router bgp 34
bgp log-neighbor-changes
neighbor 3.3.3.3 remote-as 34
neighbor 3.3.3.3 update-source Loopback0
neighbor 100.20.40.2 remote-as 12
!
address-family ipv4
network 44.44.44.44 mask 255.255.255.255
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 send-community both
neighbor 3.3.3.3 next-hop-self
neighbor 100.20.40.2 activate
neighbor 100.20.40.2 send-community both
neighbor 100.20.40.2 as-override
neighbor 100.20.40.2 soo 22:22
exit-address-family

 

Thanks,

Sachin

5 Replies 5

HTH

https://community.cisco.com/t5/mpls/bgp-site-of-origin-attribute/m-p/1869140

Please rate this and mark as solution/answer, if this resolved your issue
Good luck
KB

HTH to you

https://community.cisco.com/t5/mpls/bgp-site-of-origin-attribute/m-p/1869140

Please rate this and mark as solution/answer, if this resolved your issue
Good luck
KB

If this is Lab environment and you are studying, try to remove the command "neighbor 2.2.2.2 next-hop-self" and see what happen.

And, redistribute is one thing but install in the data base is another thing. 

..

..