cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Join Customer Connection to register!
1210
Views
10
Helpful
4
Replies
Highlighted
Frequent Contributor

Redistribute static into BGP issue

HI everyone,

 

I am occuring a issue of bgp redistribution. There is a static route on Cisco Router 7200 , commands just like as below:

#ip route 12.1.1.0 255.255.255.0  10.1.1.1 tag 10

route-map cisco per 10

 match tag 10

router bgp 12

 redistribute static route-map cisco

 

the static route can be shown in "show ip bgp" .

After i change the static route ( i add a same static route with tag 20,i think it's can cover the same static route that done before):

ip route 12.1.1.0 255.255.255.0 10.1.1.1 tag 20

 route-map cisco per 10

  no match tag 10

  match tag 20

 

router bgp 12

 redistri static route-map cisco

 

after change the config,i tried to "clear ip bgp * soft ,but there is no that route shown by "show ip bgp " command. 

So,i delete the static route,and add it again:

#no ip route 12.1.1.0 255.255.255.0 10.1.1.1 

#ip route 12.1.1.0 255.255.255.0 10.1.1.1 tag 20

Then, i tried to "clear ip bgp * soft”,the static route is shown by "show ip bgp "

 

i want to know what reason about this issue, it's a expected?

 

Thanks

4 REPLIES 4
Highlighted
Beginner

hi sir

You mean first you wrote something then changed it finally after changing that will not appear in output show ip bgp

How it related to changing ??

what is Your IOS version?

and do you sure when You changed it you did not clear of all them and verify that by

getting show run | s [bgp]

 

Highlighted
Enthusiast

I don't think clearing the protocol will do anything, you would need to be able to clear redistribution, and I don't there's any way to do that other than removing and readding the redistribute line under BGP config.

Highlighted
Frequent Contributor

Hi cisc0.ameer & cmarva

Thanks for your response!

I also think it should be remove and re adding the commands, maybe it can be work well.

BR
Highlighted

Hello

I guess if you cleared the bgb rib with a soft reset then it would have updated accordingly

 

clear ip bgp * soft 



kind regards
Paul

Please rate and mark posts accordingly if you have found any of the information provided useful.
It will hopefully assist others with similar issues in the future