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