08-19-2016 05:46 AM - edited 03-05-2019 04:32 AM
Hi,
I have two subnets and configure as-path prepend one of them. I can see the subnet that i configure prepend but can't see another subnet that i didn't configure prepend.am i doing wrong something?
R1
router bgp XXXX
no synchronization
bgp log-neighbor-changes
neighbor 192.168.1.2 remote-as YYYY
neighbor 192.168.1.2 soft-reconfiguration inbound
no auto-summary
R2
router bgp YYYY
no synchronization
bgp log-neighbor-changes
network AAA.BBB.CCC.0 mask 255.255.255.0
network PPP.PPP.PPP.0 mask 255.255.255.0
neighbor 192.168.1.1 remote-as XXXX
neighbor 192.168.1.1 soft-reconfiguration inbound
neighbor 192.168.1.1 route-map PREPEND out
no auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
ip access-list standard PREPEND
permit AAA.BBB.CCC.0 0.0.0.255
!
no cdp log mismatch duplex
route-map PREPEND permit 10
match ip address PREPEND
set as-path prepend YYYY YYYY YYYY
!
R1#sh ip bgp
BGP table version is 6, local router ID is 192.168.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> AAA.BBB.CCC.0/24 192.168.1.2 0 0 YYYY YYYY YYYY YYYY i
Solved! Go to Solution.
08-19-2016 06:23 AM
Hi
You should add another route-map statement like:
route-map PREPEND permit 20
If you don't want to modify anything for other subnets, just add the command above without anything else. You need it to say all other subnets except PREPEND acl should be there without specific treatment.
Thanks
PS: Please don't forget to rate and mark as correct answer if this answered your question
08-19-2016 06:23 AM
Hi
You should add another route-map statement like:
route-map PREPEND permit 20
If you don't want to modify anything for other subnets, just add the command above without anything else. You need it to say all other subnets except PREPEND acl should be there without specific treatment.
Thanks
PS: Please don't forget to rate and mark as correct answer if this answered your question
08-19-2016 09:45 AM
hi supportlan, it's working now, thansk a lot.
08-19-2016 11:59 AM
Hi burhanburhan
No problem, you're very welcome
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