grimoire

personal wiki
git clone git://git.pyratebeard.net/grimoire.git
Log | Files | Refs

commit 002c000e52286a60b436b94a392abd80fae44278
parent e55a71898e909f97fed5ff163391dcc3b5606fd0
Author: pyratebeard <root@pyratebeard.net>
Date:   Wed,  5 Jun 2019 12:47:32 +0100

updated formatting

Diffstat:
Mtechnology/networking/subnet_cheatsheet.md | 38+++++++++++++++++++++++++++-----------
1 file changed, 27 insertions(+), 11 deletions(-)

diff --git a/technology/networking/subnet_cheatsheet.md b/technology/networking/subnet_cheatsheet.md @@ -2,6 +2,7 @@ https://oav.net/mirrors/cidr.html +``` Netmask Netmask (binary) CIDR Notes _____________________________________________________________________________ 255.255.255.255 11111111.11111111.11111111.11111111 /32 Host (single addr) @@ -40,7 +41,9 @@ _____________________________________________________________________________ 192.0.0.0 11000000.00000000.00000000.00000000 /2 128.0.0.0 10000000.00000000.00000000.00000000 /1 0.0.0.0 00000000.00000000.00000000.00000000 /0 IP space +``` +``` Net Host Total Net Addr Addr Addr Number Class Range NetMask Bits Bits of hosts @@ -59,8 +62,10 @@ K 222-223 255.255.255.254 31 1 2 (reserved) (ref: RFC1375 & http://www.iana.org/assignments/ipv4-address-space ) ( http://www.iana.org/numbers.htm ) ---------------------------------------------------------- +``` The current list of special use prefixes: +``` 0.0.0.0/8 127.0.0.0/8 192.0.2.0/24 @@ -69,14 +74,16 @@ The current list of special use prefixes: 192.168.0.0/16 169.254.0.0/16 all D/E space -(ref: RFC1918 http://www.rfc-editor.org/rfc/rfc1918.txt ) -( or ftp://ftp.isi.edu/in-notes/rfc1918.txt ) -(rfc search: http://www.rfc-editor.org/rfcsearch.html ) -( http://www.ietf.org/ietf/1id-abstracts.txt ) -( http://www.ietf.org/shadow.html ) +``` +- (ref: RFC1918 http://www.rfc-editor.org/rfc/rfc1918.txt ) +- ( or ftp://ftp.isi.edu/in-notes/rfc1918.txt ) +- (rfc search: http://www.rfc-editor.org/rfcsearch.html ) +- ( http://www.ietf.org/ietf/1id-abstracts.txt ) +- ( http://www.ietf.org/shadow.html ) Martians: (updates at: www.iana.org/assignments/ipv4-address-space ) +``` no ip source-route access-list 100 deny ip host 0.0.0.0 any deny ip 0.0.0.0 0.255.255.255 any log ! antispoof @@ -114,7 +121,9 @@ Martians: (updates at: www.iana.org/assignments/ipv4-address-space ) deny ip 224.0.0.0 15.255.255.255 any log ! unless MBGP-learned routes deny ip 224-239/8 0.255.255.255 any log ! IANA - Multicast deny ip 240-255/8 0.255.255.255 any log ! IANA - Reserved +``` +``` filtered source addresses 0/8 ! broadcast 10/8 ! RFC 1918 private @@ -127,8 +136,10 @@ filtered source addresses 240.0.0.0/5 ! class E reserved 248.0.0.0/5 ! reserved 255.255.255.255/32 ! broadcast +``` ARIN administrated blocks: (http://www.arin.net/regserv/IPStats.html) +``` 24.0.0.0/8 (portions of) 63.0.0.0/8 64.0.0.0/8 @@ -145,16 +156,18 @@ ARIN administrated blocks: (http://www.arin.net/regserv/IPStats.html) 208.0.0.0/8 209.0.0.0/8 216.0.0.0/8 +``` ---------------------------------------------------------- well known ports: (rfc1700.txt) - www.iana.org/assignments/port-numbers + - www.iana.org/assignments/port-numbers protocol numbers: - www.iana.org/assignments/protocol-numbers - www.iana.org/numbers.htm + - www.iana.org/assignments/protocol-numbers + - www.iana.org/numbers.htm ICMP(Types/Codes) +``` Testing Destination Reachability & Status (0/0) Echo-Reply (8/0) Echo @@ -205,12 +218,14 @@ ICMP(Types/Codes) (30/0) Traceroute (31/0) Conversion-Error (32/0) Mobile-Redirect +``` Ref: [RFC 792] [RFC 896] [RFC 950] [RFC 1016] www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/sw_5_3/cofigide/qos.htm#19774 +``` Decimal system Prefix's Factor Exponent Prefix --------------------------------------------------- @@ -236,9 +251,10 @@ Decimal system Prefix's 0.000 000 000 000 000 000 000 001...10^-24...yocto --------------------------------------------------- -Convert Fahrenheit <> Celsius: - Celsius = (Fahrenheit - 32) / 1.8 - Fahrenheit = (Celsius * 1.8) + 32 +``` +- Convert Fahrenheit <> Celsius: + - Celsius = (Fahrenheit - 32) / 1.8 + - Fahrenheit = (Celsius * 1.8) + 32 last updated: 4jul02