12-11-2020 03:52 PM
Hi Network Gurus,
Can you kindly help, google did not help much, is there a way to summarize received BGP from the neighbor, aware of summarized routes that can be send, but can't find anyway i can summarized received routes.
example
If i'm receiving a flood of prefix from AS2000 and want to summarize only on AS1000
B 192.100.100.0/24 [20/0] via 172.168.11.1, 00:00:15
B 192.168.11.0/24 [20/0] via 172.168.11.1, 00:00:15
B 192.168.12.0/24 [20/0] via 172.168.11.1, 00:00:15
B 192.168.13.0/24 [20/0] via 172.168.11.1, 00:00:15
B 192.168.14.0/24 [20/0] via 172.168.11.1, 00:00:15
B 192.168.15.0/24 [20/0] via 172.168.11.1, 00:00:15
B 192.168.16.0/24 [20/0] via 172.168.11.1, 00:00:15
B 192.168.17.0/24 [20/0] via 172.168.11.1, 00:00:15
B 192.168.18.0/24 [20/0] via 172.168.11.1, 00:00:15
B 192.168.19.0/24 [20/0] via 172.168.11.1, 00:00:15
B 192.168.20.0/24 [20/0] via 172.168.11.1, 00:00:15
Thanks in advance, appreciated.
12-12-2020 01:01 AM
Look at the example below and understand the concept :
here is an example for you to fix things :
router bgp 100
bgp log-neighbor-changes
network 172.16.0.0 mask 255.255.254.0
neighbor XXXX remote-as YYYYY
!
ip route 172.16.0.0 255.255.254.0 Null0
12-15-2020 07:39 AM - edited 12-15-2020 07:40 AM
Hello @TsepoLeribe ,
bgp aggregate-address summary-only can be used for this
you can aggregate routes that share a common part of the network portion in binary for example
192.168.16.0/24
192.168.17.0/24
192.168.18.0/24
192.168.19.0/24
can be aggregated in
192.168.16.0/22
router bgp 1000
aggregate-address 192.168.16.0 255.255.252.0 summary-only
be careful in creating summary routes that include component routes that do no exist.
Hope to help
Giuseppe
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