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., 188.8.131.52/24 would be removed if 184.108.40.206/17 was also supplied), and identifies adjacent prefixes that can be combined under a single, shorter-length prefix (e.g., 220.127.116.11/24 and 18.104.22.168/24 can be combined into the single prefix 22.214.171.124/23).