08-23-2006 07:21 AM - edited 03-03-2019 01:44 PM
Hi all,
I am having the following problem in Redistributing static routes into BGP .
Consider eBGP between R2 and R3.
Configurations are :
R2 configs :
hostname R2
ip route 150.1.1.0/24 10.1.1.20
route-map Set_Map permit 20
set origin egp
router bgp 100
redistribute static route-map Set_Map
neighbor 40.1.1.30 remote-as 200
R3 configs :
router bgp 200
neighbor 40.1.1.20 remote-as 100
When I do 'show ip bgp' in R3, it shows as below :
*> 150.1.1.0/24 40.1.1.20 100 100 ?
Why it's not changing to 'e'.
Thanks,
Vijaybabu
08-23-2006 10:53 AM
I duplicated your config and it's working here.
My config:
Router 1
router bgp 2
no synchronization
bgp log-neighbor-changes
redistribute connected route-map bgporigin
redistribute static route-map Set_Map
neighbor 172.25.1.1 remote-as 1
neighbor 172.25.1.1 ebgp-multihop 10
default-information originate
no auto-summary
ip route 10.150.1.0 255.255.255.0 Null0
route-map Set_Map permit 20
set origin egp 2
Router 2:
#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 0.0.0.0 172.25.1.2 0 0 2 e
*> 10.40.0.0/16 172.25.1.2 0 0 2 e
*> 10.45.0.0/16 172.25.1.2 0 0 2 e
*> 10.50.0.0/16 172.25.1.2 0 0 2 e
*> 10.55.0.0/16 172.25.1.2 0 0 2 e
*> 10.150.1.0/24 172.25.1.2 0 0 2 e
The only thing I see missing from you is the AS # under the route-map
For instance
it should be
route-map Set_Map permit 20
set origin egp 100
Please rate helpful posts.
Thanks
08-23-2006 09:37 PM
Hi Edison,
Thanks for your extensive help.
I will check my configs.
Thanks,
Vijaybabu
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