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