EnglishFrenchSpanish

Ad


OnWorks favicon

aggregate - Online in the Cloud

Run aggregate in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command aggregate that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


aggregate - optimise a list of route prefixes to help make nice short filters

SYNOPSIS


aggregate [-m max-length] [-o max-opt-length] [-p default-length] [-q] [-t] [-v]

DESCRIPTION


Takes a list of prefixes in conventional format on stdin, and performs two optimisations
to attempt to reduce the length of the prefix list.

The first optimisation is to remove any supplied prefixes which are superfluous because
they are already included in another supplied prefix. For example, 203.97.2.0/24 would be
removed if 203.97.0.0/17 was also supplied.

The second optimisation identifies adjacent prefixes that can be combined under a single,
shorter-length prefix. For example, 203.97.2.0/24 and 203.97.3.0/24 can be combined into
the single prefix 203.97.2.0/23.

OPTIONS


-m max-length
Sets the maximum prefix length for entries read from stdin max_length bits. The
default is 32. Prefixes with longer lengths will be discarded prior to processing.

-o max-opt-length
Sets the maximum prefix length for optimisation to max-opt-length bits. The default
is 32. Prefixes with longer lengths will not be subject to optimisation.

-p default-length
Sets the default prefix length. There is no default; without this option a prefix
without a mask length is treated as invalid. Use -p 32 -m 32 -o 32 to aggregate a
list of host routes specified as bare addresses, for example.

-q Sets quiet mode -- instructs aggregate never to generate warning messages or other
output on stderr.

-t Silently truncate prefixes that seem to have an inconsistent prefix: e.g. an input
prefix 203.97.2.226/24 would be truncated to 203.97.2.0/24. Without this option an
input prefix 203.97.2.226/24 would not be accepted, and a warning about the
inconsistent mask would be generated.

-v Sets verbose mode. This changes the output format to display the source line number
that the prefix was obtained from, together with a preceding "-" to indicate a
route that can be suppressed, or a "+" to indicate a shorter-prefix aggregate that
was added by aggregate as an adjacency optimisation. Note that verbose output
continues even if -q is selected.

DIAGNOSTICS


Aggregate exits 0 on success, and >0 if an error occurs.

EXAMPLES


The following list of prefixes:

193.58.204.0/22
193.58.208.0/22
193.193.160.0/22
193.193.168.0/22
193.243.164.0/22
194.126.128.0/22
194.126.132.0/22
194.126.134.0/23
194.151.128.0/19
195.42.240.0/21
195.240.0.0/16
195.241.0.0/16

is optimised as followed by aggregate (output shown using the -v flag):

aggregate: maximum prefix length permitted will be 24
[ 0] + 193.58.204.0/21
[ 1] - 193.58.204.0/22
[ 2] - 193.58.208.0/22
[ 3] 193.193.160.0/22
[ 4] 193.193.168.0/22
[ 5] 193.243.164.0/22
[ 0] + 194.126.128.0/21
[ 6] - 194.126.128.0/22
[ 7] - 194.126.132.0/22
[ 8] - 194.126.134.0/23
[ 9] 194.151.128.0/19
[ 10] 195.42.240.0/21
[ 0] + 195.240.0.0/15
[ 11] - 195.240.0.0/16
[ 12] - 195.241.0.0/16

Note that 193.58.204.0/22 and 193.58.208.0/22 were combined under the single prefix
193.58.204.0/21, and 194.126.134.0/23 was suppressed because it was included in
194.126.132.0/22. The number in square brackets at the beginning of each line indicates
the original line number, or zero for new prefixes that were introduced by aggregate.

The output without the -v flag is as follows:

193.58.204.0/21
193.193.160.0/22
193.193.168.0/22
193.243.164.0/22
194.126.128.0/21
194.151.128.0/19
195.42.240.0/21
195.240.0.0/15

Use aggregate online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    OrangeFox
    OrangeFox
    Fork of TeamWinRecoveryProject(TWRP)
    with many additional functions, redesign
    and more Features:Supports Treble and
    non-Treble ROMsUp-to-date Oreo kernel,
    built...
    Download OrangeFox
  • 2
    itop - ITSM  CMDB OpenSource
    itop - ITSM CMDB OpenSource
    IT Operations Portal: a complete open
    source, ITIL, web based service
    management tool including a fully
    customizable CMDB, a helpdesk system and
    a document man...
    Download itop - ITSM CMDB OpenSource
  • 3
    Clementine
    Clementine
    Clementine is a multi-platform music
    player and library organizer inspired by
    Amarok 1.4. It has a fast and
    easy-to-use interface, and allows you to
    search and ...
    Download Clementine
  • 4
    XISMuS
    XISMuS
    ATTENTION: Cumulative update 2.4.3 has
    been released!! The update works for any
    previous 2.x.x version. If upgrading
    from version v1.x.x, please download and
    i...
    Download XISMuS
  • 5
    facetracknoir
    facetracknoir
    Modular headtracking program that
    supports multiple face-trackers, filters
    and game-protocols. Among the trackers
    are the SM FaceAPI, AIC Inertial Head
    Tracker ...
    Download facetracknoir
  • 6
    PHP QR Code
    PHP QR Code
    PHP QR Code is open source (LGPL)
    library for generating QR Code,
    2-dimensional barcode. Based on
    libqrencode C library, provides API for
    creating QR Code barc...
    Download PHP QR Code
  • 7
    Cuckoo Sandbox
    Cuckoo Sandbox
    Cuckoo Sandbox uses components to
    monitor the behavior of malware in a
    Sandbox environment; isolated from the
    rest of the system. It offers automated
    analysis o...
    Download Cuckoo Sandbox
  • More »

Linux commands

  • 1
    acl_gran
    acl_gran
    rsbac-admin - Rule Set Based Access
    Control DESCRIPTION: rsbac-admin is a
    set of tool used to manage systems using
    a Rule Set Based Access Control (RSBAC)
    kern...
    Run acl_gran
  • 2
    acl_grant
    acl_grant
    rsbac-admin - Rule Set Based Access
    Control DESCRIPTION: rsbac-admin is a
    set of tool used to manage systems using
    a Rule Set Based Access Control (RSBAC)
    kern...
    Run acl_grant
  • 3
    cpupower-idle-set
    cpupower-idle-set
    cpupower idle-set - Utility to set cpu
    idle state specific kernel options
    SYNTAX: cpupower [ -c cpulist ]
    idle-info [options] DESCRIPTION: The
    cpupower idle-se...
    Run cpupower-idle-set
  • 4
    cpupower-info
    cpupower-info
    cpupower-info - Shows processor power
    related kernel or hardware
    configurations ...
    Run cpupower-info
  • 5
    g15daemon
    g15daemon
    g15daemon - provides access to extra
    keys and the LCD available on the
    logitech G15 keyboard. DESCRIPTION:
    G15Daemon allows users access to all
    extra keys by d...
    Run g15daemon
  • 6
    g15ladi
    g15ladi
    laditools - tools to control and
    monitor LADI (JACK and ladish) systems ...
    Run g15ladi
  • More »

Ad