12-22-2022 02:07 PM - last edited on 12-25-2022 09:42 PM by Translator
Hi Guys,
After I add a subnet 192.168.20.0/24 into BGP, should I use
clear ip bgp *
or
clear ip bgp * soft
to update the bgp route to the neighbors?
router bgp xxxx
bgp log-neighbor-changes
neighbor 10.0.0.1 remote-as 123
neighbor 10.0.0.1 version 4
!
address-family ipv4
network 192.168.20.0 mask 255.255.255.0
network 172.16.0.0 mask 255.255.255.0
exit-address-family
Thanks.
Solved! Go to Solution.
12-22-2022 04:27 PM
I think he receive both in same time (check last update time)
and since /24 is withdraw the RIB select the /16 as best path.
12-22-2022 04:31 PM - edited 12-22-2022 05:08 PM
It does not matter since the second route is a /16. What we want the original poster to investigate is why there is no 192.168.20.0/24 in the local RIB. Until that happens, the network statement is useless and the route will not be advertised to the peer in AS123 (10.0.0.1).
Regards,
12-22-2022 10:00 PM
Thanks guys. I add a route 192.168.20.0/24 into my local router RIB then it works. The local route is advertising the correct subnet 192.168.20.0/24 to its BGP's neighbor.
12-22-2022 10:10 PM
You are very welcome @tinhnho123 . Glad that it worked for you.
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