cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1880
Views
5
Helpful
3
Replies

bgp as prepend

burhanburhan
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

Francesco Molino
VIP Alumni
VIP Alumni

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


Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

View solution in original post

3 Replies 3

Francesco Molino
VIP Alumni
VIP Alumni

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


Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

hi supportlan, it's working now, thansk a lot.

Hi burhanburhan

No problem, you're very welcome


Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question