sipcalc утилита для IPv4/IPv6 адресов

Что: bcced9e801fab9bb0d0fe29eae35be8f61706e28

Когда: 2019-07-14 15:39:18+03:00

Темы: ipv6 tip

sipcalc утилита для IPv4/IPv6 адресов

http://www.routemeister.net/projects/sipcalc/index.html
Узнал тут что много людей никаких утилит не знают для помощи с расчётами
IP-адресов/сетей. Вот часто хочется быстро и просто понять какой диапазон
полезных адресов будет в IPv4/IPv6-сети с заданной маской. Я уже тьмищу
лет обязательно всегда ставлю sipcalc утилиту. Есть в FreeBSD/Debian
пакетах, да и собирается тривиально. Никогда не использовал ничего
большего чем просто ввод IPv[46] адреса, возможно вместе с маской, но
это всего с лихвой хватает:

    % sipcalc 77.51.181.209/28
    [CIDR]
    Host address            - 77.51.181.209
    Host address (decimal)  - 1295234513
    Host address (hex)      - 4D33B5D1
    Network address         - 77.51.181.208
    Network mask            - 255.255.255.240
    Network mask (bits)     - 28
    Network mask (hex)      - FFFFFFF0
    Broadcast address       - 77.51.181.223
    Cisco wildcard          - 0.0.0.15
    Addresses in network    - 16
    Network range           - 77.51.181.208 - 77.51.181.223
    Usable range            - 77.51.181.209 - 77.51.181.222

    % sipcalc 2001:470:1f13:aa9::2/126
    [IPV6 INFO]
    Expanded Address        - 2001:0470:1f13:0aa9:0000:0000:0000:0002
    Compressed address      - 2001:470:1f13:aa9::2
    Subnet prefix (masked)  - 2001:470:1f13:aa9:0:0:0:0/126
    Address ID (masked)     - 0:0:0:0:0:0:0:2/126
    Prefix address          - ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc
    Prefix length           - 126
    Address type            - Aggregatable Global Unicast Addresses
    Network range           - 2001:0470:1f13:0aa9:0000:0000:0000:0000 -
                              2001:0470:1f13:0aa9:0000:0000:0000:0003

и пример выхопа с сайта самой утилиты:

    sipcalc -d -bcix -n 4 -e -r -t lo 213.180.68.64/28 -6 www.6bone.net
    -[ipv6 : 3ffe:b00:c18:1::10] - 0

    [IPV6 INFO]
    Expanded Address        - 3ffe:0b00:0c18:0001:0000:0000:0000:0010
    Compressed address      - 3ffe:b00:c18:1::10
    Subnet prefix (masked)  - 3ffe:b00:c18:1:0:0:0:10/128
    Address ID (masked)     - 0:0:0:0:0:0:0:0/128
    Prefix address          - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
    Prefix length           - 128
    Address type            - Aggregatable Global Unicast Addresses
    Network range           - 3ffe:0b00:0c18:0001:0000:0000:0000:0010 -
                              3ffe:0b00:0c18:0001:0000:0000:0000:0010

    [V4INV6]
    Expanded v4inv6 address - 3ffe:0b00:0c18:0001:0000:0000:000.000.000.016
    Compr. v4inv6 address   - 3ffe:b00:c18:1::0.0.0.16

    [IPV6 DNS]
    Reverse DNS (ip6.arpa)   -
    0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.0.0.8.1.c.0.0.0.b.0.e.f.f.3.ip6.arpa.

    -
    -[int-ipv4 : lo] - 0

    [Classfull]
    Host address            - 127.0.0.1
    Host address (decimal)  - 2130706433
    Host address (hex)      - 7F000001
    Network address         - 127.0.0.0
    Network class           - A
    Network mask            - 255.0.0.0
    Network mask (hex)      - FF000000
    Broadcast address       - 127.255.255.255

    [CIDR]
    Host address            - 127.0.0.1
    Host address (decimal)  - 2130706433
    Host address (hex)      - 7F000001
    Network address         - 127.0.0.0
    Network mask            - 255.0.0.0
    Network mask (bits)     - 8
    Network mask (hex)      - FF000000
    Broadcast address       - 127.255.255.255
    Cisco wildcard          - 0.255.255.255
    Addresses in network    - 16777216
    Network range           - 127.0.0.0-127.255.255.255
    Usable range            - 127.0.0.1-127.255.255.254

    [Classfull bitmaps]
    Network address         - 01111111.00000000.00000000.00000000
    Network mask            - 11111111.00000000.00000000.00000000

    [CIDR bitmaps]
    Host address            - 01111111.00000000.00000000.00000001
    Network address         - 01111111.00000000.00000000.00000000
    Network mask            - 11111111.00000000.00000000.00000000
    Broadcast address       - 01111111.11111111.11111111.11111111
    Cisco wildcard          - 00000000.11111111.11111111.11111111
    Network range           - 01111111.00000000.00000000.00000000 -
                              01111111.11111111.11111111.11111111
    Usable range            - 01111111.00000000.00000000.00000001 -
                              01111111.11111111.11111111.11111110

    [Networks]
    Network                 - 127.0.0.0       - 127.255.255.255 (current)
    Network                 - 128.0.0.0       - 128.255.255.255
    Network                 - 129.0.0.0       - 129.255.255.255
    Network                 - 130.0.0.0       - 130.255.255.255

    -
    -[ipv4 : 213.180.68.64/28] - 0

    [Classfull]
    Host address            - 213.180.68.64
    Host address (decimal)  - 3585360960
    Host address (hex)      - D5B44440
    Network address         - 213.180.68.0
    Network class           - C
    Network mask            - 255.255.255.0
    Network mask (hex)      - FFFFFF00
    Broadcast address       - 213.180.68.255

    [CIDR]
    Host address            - 213.180.68.64
    Host address (decimal)  - 3585360960
    Host address (hex)      - D5B44440
    Network address         - 213.180.68.64
    Network mask            - 255.255.255.240
    Network mask (bits)     - 28
    Network mask (hex)      - FFFFFFF0
    Broadcast address       - 213.180.68.79
    Cisco wildcard          - 0.0.0.15
    Addresses in network    - 16
    Network range           - 213.180.68.64-213.180.68.79
    Usable range            - 213.180.68.65-213.180.68.78

    [Classfull bitmaps]
    Network address         - 11010101.10110100.01000100.00000000
    Network mask            - 11111111.11111111.11111111.00000000

    [CIDR bitmaps]
    Host address            - 11010101.10110100.01000100.01000000
    Network address         - 11010101.10110100.01000100.01000000
    Network mask            - 11111111.11111111.11111111.11110000
    Broadcast address       - 11010101.10110100.01000100.01001111
    Cisco wildcard          - 00000000.00000000.00000000.00001111
    Network range           - 11010101.10110100.01000100.01000000 -
                              11010101.10110100.01000100.01001111
    Usable range            - 11010101.10110100.01000100.01000001 -
                              11010101.10110100.01000100.01001110

    [Networks]
    Network                 - 213.180.68.64   - 213.180.68.79 (current)
    Network                 - 213.180.68.80   - 213.180.68.95
    Network                 - 213.180.68.96   - 213.180.68.111
    Network                 - 213.180.68.112  - 213.180.68.127

оставить комментарий

Сгенерирован: SGBlog 0.34.0