Skip to content

Instantly share code, notes, and snippets.

View skipster2k2's full-sized avatar

Ian Ames skipster2k2

View GitHub Profile
3rd octet -> 128 64 32 16 8 4 2 1 4th octet -> 128 64 32 16 8 4 2 1
network 1 start address 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
network 1 end address 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0
network 2 start address 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1
network 2 end address 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
network 3 start address 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
network 3 end address 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0
network 4 start address 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1
network 4 end address 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
@skipster2k2
skipster2k2 / network_range.csv
Created February 5, 2019 21:22
bits assigned to hosts in a network range
128 64 32 16 8 4 2 1 4th octet -> 128 64 32 16 8 4 2 1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
etc etc etc etc etc etc etc etc etc etc etc etc etc etc etc etc
0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0
0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1
@skipster2k2
skipster2k2 / binary_decimal_table_example4.csv
Last active February 5, 2019 21:11
An example of calculating the decimal representation of a binary number for this medium article: https://medium.com/p/fd8ea23f6608
128 64 32 16 8 4 2 1
0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0
1 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0
@skipster2k2
skipster2k2 / binary_decimal_table_example3.csv
Last active February 5, 2019 20:53
An example of calculating the decimal representation of a binary number for this medium article: https://medium.com/p/fd8ea23f6608
1 1 0 0 0 0 0 0
2^7 2^6 2^5 2^4 2^3 2^2 2^1 2^0
128 64 32 16 8 4 2 1
@skipster2k2
skipster2k2 / binary_decimal_table_example2.csv
Last active February 5, 2019 20:53
An example of calculating the decimal representation of a binary number for this medium article: https://medium.com/p/fd8ea23f6608
2^7 2^6 2^5 2^4 2^3 2^2 2^1 2^0
128 64 32 16 8 4 2 1
@skipster2k2
skipster2k2 / binary_decimal_table_example1.csv
Last active February 5, 2019 20:54
An example of calculating the decimal representation of a binary number for this medium article: https://medium.com/p/fd8ea23f6608
1 1 1 1 1 1 1 1
2^7 2^6 2^5 2^4 2^3 2^2 2^1 2^0
128 64 32 16 8 4 2 1
@skipster2k2
skipster2k2 / subnet_masks.csv
Last active February 5, 2019 20:52
table of subnet mask classes for purposes of medium article: https://medium.com/p/fd8ea23f6608
subnet mask notation CIDR notation available hosts class
0.0.0.0 /0 4294967294 the internet
255.0.0.0 /8 16777214 Class A
255.255.0.0 /16 65533 Class B
255.255.255.0 /24 254 Class C