job / aggregate6

IPv4 and IPv6 prefix aggregation tool
BSD 2-Clause "Simplified" License
144 stars 20 forks source link

question regarding -t #19

Closed kaoscoach closed 1 year ago

kaoscoach commented 1 year ago

Great tool. Very helpful. Can you explain what the -t option does? I have tried using it multiple times with and without it and it returns the same output. Just confused on what you mean by "truncate IP/mask to network/mask"?

thanks,

job commented 1 year ago

See this example without and with -t:

$ echo 10.1.2.3/24 | aggregate6    
ERROR: '10.1.2.3/24' is not a valid IP network, ignoring.

$ echo 10.1.2.3/24 | aggregate6 -t 
10.1.2.0/24

the -t option converts host addresses into network addresses