5a715617999450440ca2c90fab694190b627bc94
technology/networking/subnet_cheatsheet.md
| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | |
| 3 | 3 | https://oav.net/mirrors/cidr.html |
| 4 | 4 | |
| 5 | +``` |
|
| 5 | 6 | Netmask Netmask (binary) CIDR Notes |
| 6 | 7 | _____________________________________________________________________________ |
| 7 | 8 | 255.255.255.255 11111111.11111111.11111111.11111111 /32 Host (single addr) |
| ... | ... | @@ -40,7 +41,9 @@ _____________________________________________________________________________ |
| 40 | 41 | 192.0.0.0 11000000.00000000.00000000.00000000 /2 |
| 41 | 42 | 128.0.0.0 10000000.00000000.00000000.00000000 /1 |
| 42 | 43 | 0.0.0.0 00000000.00000000.00000000.00000000 /0 IP space |
| 44 | +``` |
|
| 43 | 45 | |
| 46 | +``` |
|
| 44 | 47 | Net Host Total |
| 45 | 48 | Net Addr Addr Addr Number |
| 46 | 49 | Class Range NetMask Bits Bits of hosts |
| ... | ... | @@ -59,8 +62,10 @@ K 222-223 255.255.255.254 31 1 2 (reserved) |
| 59 | 62 | (ref: RFC1375 & http://www.iana.org/assignments/ipv4-address-space ) |
| 60 | 63 | ( http://www.iana.org/numbers.htm ) |
| 61 | 64 | ---------------------------------------------------------- |
| 65 | +``` |
|
| 62 | 66 | |
| 63 | 67 | The current list of special use prefixes: |
| 68 | +``` |
|
| 64 | 69 | 0.0.0.0/8 |
| 65 | 70 | 127.0.0.0/8 |
| 66 | 71 | 192.0.2.0/24 |
| ... | ... | @@ -69,14 +74,16 @@ The current list of special use prefixes: |
| 69 | 74 | 192.168.0.0/16 |
| 70 | 75 | 169.254.0.0/16 |
| 71 | 76 | all D/E space |
| 72 | -(ref: RFC1918 http://www.rfc-editor.org/rfc/rfc1918.txt ) |
|
| 73 | -( or ftp://ftp.isi.edu/in-notes/rfc1918.txt ) |
|
| 74 | -(rfc search: http://www.rfc-editor.org/rfcsearch.html ) |
|
| 75 | -( http://www.ietf.org/ietf/1id-abstracts.txt ) |
|
| 76 | -( http://www.ietf.org/shadow.html ) |
|
| 77 | +``` |
|
| 78 | +- (ref: RFC1918 http://www.rfc-editor.org/rfc/rfc1918.txt ) |
|
| 79 | +- ( or ftp://ftp.isi.edu/in-notes/rfc1918.txt ) |
|
| 80 | +- (rfc search: http://www.rfc-editor.org/rfcsearch.html ) |
|
| 81 | +- ( http://www.ietf.org/ietf/1id-abstracts.txt ) |
|
| 82 | +- ( http://www.ietf.org/shadow.html ) |
|
| 77 | 83 | |
| 78 | 84 | |
| 79 | 85 | Martians: (updates at: www.iana.org/assignments/ipv4-address-space ) |
| 86 | +``` |
|
| 80 | 87 | no ip source-route |
| 81 | 88 | access-list 100 deny ip host 0.0.0.0 any |
| 82 | 89 | 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 ) |
| 114 | 121 | deny ip 224.0.0.0 15.255.255.255 any log ! unless MBGP-learned routes |
| 115 | 122 | deny ip 224-239/8 0.255.255.255 any log ! IANA - Multicast |
| 116 | 123 | deny ip 240-255/8 0.255.255.255 any log ! IANA - Reserved |
| 124 | +``` |
|
| 117 | 125 | |
| 126 | +``` |
|
| 118 | 127 | filtered source addresses |
| 119 | 128 | 0/8 ! broadcast |
| 120 | 129 | 10/8 ! RFC 1918 private |
| ... | ... | @@ -127,8 +136,10 @@ filtered source addresses |
| 127 | 136 | 240.0.0.0/5 ! class E reserved |
| 128 | 137 | 248.0.0.0/5 ! reserved |
| 129 | 138 | 255.255.255.255/32 ! broadcast |
| 139 | +``` |
|
| 130 | 140 | |
| 131 | 141 | ARIN administrated blocks: (http://www.arin.net/regserv/IPStats.html) |
| 142 | +``` |
|
| 132 | 143 | 24.0.0.0/8 (portions of) |
| 133 | 144 | 63.0.0.0/8 |
| 134 | 145 | 64.0.0.0/8 |
| ... | ... | @@ -145,16 +156,18 @@ ARIN administrated blocks: (http://www.arin.net/regserv/IPStats.html) |
| 145 | 156 | 208.0.0.0/8 |
| 146 | 157 | 209.0.0.0/8 |
| 147 | 158 | 216.0.0.0/8 |
| 159 | +``` |
|
| 148 | 160 | ---------------------------------------------------------- |
| 149 | 161 | |
| 150 | 162 | well known ports: (rfc1700.txt) |
| 151 | - www.iana.org/assignments/port-numbers |
|
| 163 | + - www.iana.org/assignments/port-numbers |
|
| 152 | 164 | |
| 153 | 165 | protocol numbers: |
| 154 | - www.iana.org/assignments/protocol-numbers |
|
| 155 | - www.iana.org/numbers.htm |
|
| 166 | + - www.iana.org/assignments/protocol-numbers |
|
| 167 | + - www.iana.org/numbers.htm |
|
| 156 | 168 | |
| 157 | 169 | ICMP(Types/Codes) |
| 170 | +``` |
|
| 158 | 171 | Testing Destination Reachability & Status |
| 159 | 172 | (0/0) Echo-Reply |
| 160 | 173 | (8/0) Echo |
| ... | ... | @@ -205,12 +218,14 @@ ICMP(Types/Codes) |
| 205 | 218 | (30/0) Traceroute |
| 206 | 219 | (31/0) Conversion-Error |
| 207 | 220 | (32/0) Mobile-Redirect |
| 221 | +``` |
|
| 208 | 222 | |
| 209 | 223 | Ref: [RFC 792] [RFC 896] [RFC 950] [RFC 1016] |
| 210 | 224 | www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/sw_5_3/cofigide/qos.htm#19774 |
| 211 | 225 | |
| 212 | 226 | |
| 213 | 227 | |
| 228 | +``` |
|
| 214 | 229 | Decimal system Prefix's |
| 215 | 230 | Factor Exponent Prefix |
| 216 | 231 | --------------------------------------------------- |
| ... | ... | @@ -236,9 +251,10 @@ Decimal system Prefix's |
| 236 | 251 | 0.000 000 000 000 000 000 000 001...10^-24...yocto |
| 237 | 252 | --------------------------------------------------- |
| 238 | 253 | |
| 239 | -Convert Fahrenheit <> Celsius: |
|
| 240 | - Celsius = (Fahrenheit - 32) / 1.8 |
|
| 241 | - Fahrenheit = (Celsius * 1.8) + 32 |
|
| 254 | +``` |
|
| 255 | +- Convert Fahrenheit <> Celsius: |
|
| 256 | + - Celsius = (Fahrenheit - 32) / 1.8 |
|
| 257 | + - Fahrenheit = (Celsius * 1.8) + 32 |
|
| 242 | 258 | |
| 243 | 259 | |
| 244 | 260 | last updated: 4jul02 |