07-24-2004 08:45 PM - edited 03-02-2019 05:17 PM
router bgp 29988
no synchronization
network 212.79.128.0
network 212.79.129.0
network 212.79.130.0
network 212.79.131.0
network 212.79.132.0
network 212.79.133.0
network 212.79.134.0
network 212.79.135.0
network 212.79.136.0
network 212.79.137.0
network 212.79.138.0
network 212.79.139.0
network 212.79.140.0
network 212.79.141.0
network 212.79.142.0
network 212.79.143.0
aggregate-address 212.79.128.0 255.255.240.0 summary-only
!
!
neighbor 203.115.224.11 remote-as 7018
neighbor 203.115.224.11 update-source Loopback0
neighbor 203.115.224.11 ebgp-multihop 255
neighbor 203.115.224.11 soft-reconfiguration inbound
neighbor 203.115.224.11 route-map ISP_Mango in
neighbor 203.115.224.11 route-map Mango_ISP out
!
route-map ISP_Mango permit 10
match as-path 102
set local-preference 150
!
route-map Mango_ISP permit 10
match ip address prefix-list Mango-outfilter
!
ip as-path access-list 102 permit .*
!
!
ip prefix-list Mango-outfilter description network announce to ISP
ip prefix-list Mango-outfilter seq 1 permit 202.70.128.0/20
!
Is my configuration alright? Do I really need to break my /20 into multiple network ****/24? Or can I just aggregate it to /20?
07-24-2004 11:07 PM
Hello,
you do not need all the network statements, since you are announcing an aggregate with the summary-only option. This will announce only the aggregate address to your neighbor, the more specific routes are suppressed. If you want to keep using the aggregate-address statement, you need at least one of the network statements in your configuration, because otherwise there will be nothing in the routing table from which BGP can make the aggregate. An easier way to accomplish the same is to add a static route to 212.79.128.0 255.255.240.0 and then to announce only that network:
router bgp 29988
no synchronization
network 212.79.128.0 mask 255.255.240.0
neighbor 203.115.224.11 remote-as 7018
neighbor 203.115.224.11 update-source Loopback0
neighbor 203.115.224.11 ebgp-multihop 255
neighbor 203.115.224.11 soft-reconfiguration inbound
!
ip route 212.79.128.0 255.255.240.0 null 0
Also, if this router is your only connection to your ISP, you do not need the local preference (and hence the entire route map), since the local preference attribute is only useful to distinguish between different exit points. Unless, of course, this is a lab exercise where you are required to change the local preference...:)
So, I would change the entire configuration as following:
router bgp 29988
no synchronization
network 212.79.128.0 mask 255.255.240.0
neighbor 203.115.224.11 remote-as 7018
neighbor 203.115.224.11 update-source Loopback0
neighbor 203.115.224.11 ebgp-multihop 255
neighbor 203.115.224.11 soft-reconfiguration inbound
!
ip route 212.79.128.0 255.255.240.0 null 0
HTH,
Georg
07-25-2004 08:47 AM
Thank you very much
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