04-19-2022 10:53 PM
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
04-19-2022 11:04 PM
HTH
https://community.cisco.com/t5/mpls/bgp-site-of-origin-attribute/m-p/1869140
04-19-2022 11:05 PM
HTH to you
https://community.cisco.com/t5/mpls/bgp-site-of-origin-attribute/m-p/1869140
04-20-2022 04:49 AM - edited 04-20-2022 04:49 AM
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.
04-20-2022 05:15 AM - edited 04-23-2022 02:32 AM
..
04-20-2022 05:52 AM - edited 04-23-2022 02:32 AM
..
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide