cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3587
Views
10
Helpful
18
Replies

Update BGP routing table after advertised new subnet?

tinhnho123
Level 2
Level 2

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.

 

 

18 Replies 18

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. 

@MHM Cisco World ,

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,

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

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. 

You are very welcome @tinhnho123 . Glad that it worked for you.

Regards,
Harold Ritter, CCIE #4168 (EI, SP)