Tools

Subnet Calculator

Explore IPv4 and IPv6 networks, prefixes, ranges and address space.

Input

/24 means 24 network bits and 8 host bits.

Quick examples

Results

192.168.1.0/24

255.255.255.0

Network (24 bits) Host (8 bits)
08162432

Usable range

192.168.1.1 – 192.168.1.254

Advanced / binary view

Tools

Uptime Calculator

Translate availability targets into real downtime — and vice versa.

Input

Enter an availability target such as 99%, 99.9%, 99.99% or 99.999%.

Quick presets

The month is the 365/12 average; the year is 365 days.

Result

Allowed downtime for 99.9% SLA

8h 45m 36s

per year

Per year

8h 45m 36s

Per month

43m 48s

Per week

10m 4.8s

Per day

1m 26.4s

Per hour

3.6s

Uptime visualization

Uptime 99.9% Downtime 0.1%

Small gains in availability lead to dramatically less allowed downtime. Moving from 99.9% to 99.99% reduces allowed downtime by 90%.

Common SLA targets

99%

3d 15h 36m

99.9%

8h 45m 36s

99.99%

52m 33.6s

99.999%

5m 15.36s

Yearly allowed downtime, from the same maths as the calculator above.


Tools

Network & Host Bits

See how a prefix splits an address into network bits and host bits — and how many addresses that leaves.

Input

An address with its prefix, e.g. 10.4.5.65/26 or 10.4.5.65 255.255.255.192.

Quick examples

How to use

See where a route's network bits end and its host bits start, then compare two routes to find the prefix-list range that matches both.

  1. Enter an address with its prefix — 10.4.4.33/27, or with a mask: 10.4.4.33 255.255.255.224.
  2. Read the rows. The address sits over the mask. The black bar is the split: network on the left, host on the right. The Network row zeroes the host bits, giving the real route — 10.4.4.32/27.
  3. Drag the slider to move the split and watch the network change.
  4. Add Address 2 to compare. The box at the top of the results gives the common bits and the range matching both — for 10.4.5.65/26, first 23 bits (10.4.4.0/23) and GE 26 LE 27, so one line covers both: ip prefix-list NAME deny 10.4.4.0/23 ge 26 le 27

Colour key

  • 1Network bit
  • 0Host bit
  • 1Mask bit / shared bit
  • 0First bit that differs

IPv6 works the same way — switch with the tab at the top.

Results

10.4.4.32/27

27 network bits 5 host bits

Common bits: first 23, which is 10.4.4.0/23

Matching both: GE 26 LE 27

Address 1 · 10.4.4.33/27

Address10.4.4.33
00001010.00000100.00000100.00100001
Mask255.255.255.224
11111111.11111111.11111111.11100000
Network10.4.4.32
00001010.00000100.00000100.00100000
Splitnetwork ends after bit 27
↑

Network address

10.4.4.32/27

Broadcast address

10.4.4.63

Subnet mask

255.255.255.224

Wildcard mask

0.0.0.31

Total addresses

32

Usable hosts

30

How the count works

  1. 32 − 27 = 5 host bits
  2. 2⁵ = 32 addresses
  3. 32 − 2 = 30 usable hosts (network and broadcast are reserved).

The split falls inside octet 4: 3 network bits and 5 host bits, so that octet's mask is 224.

Address 2 · 10.4.5.65/26

Address10.4.5.65
00001010.00000100.00000101.01000001
Mask255.255.255.192
11111111.11111111.11111111.11000000
Network10.4.5.64
00001010.00000100.00000101.01000000
Splitnetwork ends after bit 26
↑

Network 10.4.5.64/26 · 26 network bits · 6 host bits

Network 1 over network 2

Network 110.4.4.32
00001010.00000100.00000100.00100000
Network 210.4.5.64
00001010.00000100.00000101.01000000
Splitfirst 23 bits shared
↑

Tools

BGP Regular Expressions

Describe what you want to match and get the expression and the commands — or paste an expression and see what it really matches.

Input

What does the expression see?

One AS, a list (65020, 65030) or a range (64512-65534).

In path order: the neighbor first, the origin last.

Quick examples

Commands for

Results

 

    Read left to right

    Strings it accepts, for example

    Test it — one string per line, (empty) for a local route

      Configuration

        

      Verification