Install aggregate by entering the following commands in the terminal:
sudo apt update sudo apt install aggregate
ipv4 cidr prefix aggregator
takes a list of prefixes in conventional format on stdin, and performs two optimisations to reduce the length of the prefix list. It removes any supplied prefixes which are supurfluous because they are already included in another supplied prefix (e.g., 22.214.171.124/24 would be removed if 126.96.36.199/17 was also supplied), and identifies adjacent prefixes that can be combined under a single, shorter-length prefix (e.g., 188.8.131.52/24 and 184.108.40.206/24 can be combined into the single prefix 220.127.116.11/23).