Mukezh

Session IP and Binary Digit

Apr 1st, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. IPV4 VS IPV6
  2. ================
  3. IPv4 uses a 32-bit address scheme allowing for a total of 2^32 addresses (just over 4 billion addresses)
  4. IPv6 addresses are 128-bit IP address written in hexadecimal and separated by colons.
  5.  
  6. 172.16.149.1
  7.  
  8. 00000000.00000000.00000000.00000000 = 32 bit
  9.  
  10.  
  11.  
  12. 2^2 2^1 2^0
  13. 0 0 0 0 000
  14. 1 0 0 1 001
  15. 2 0 1 0 010
  16. 3 0 1 1 011
  17. 4 1 0 0 100
  18. 5 1 0 1 101
  19. 6 1 1 0 110
  20. 7 1 1 1 111
  21.  
  22.  
  23.  
  24. 192 = 11000000
  25. 168 = 10101000
  26.  
  27.  
  28. 128 64 32 16 8 4 2 1
  29. 192= 1 1 0 0 0 0 0 0
  30. 168= 1 0 1 0 1 0 0 0
  31.  
  32. Subnetting
  33.  
  34. 192.168.0.1/23
  35.  
  36. 11000000.10101000.00000000.00000001
  37.  
  38.  
  39. IP Classes in decimal notation
  40. Class A addresses range from 1-126 -- 255.0.0.0 126.0.0.0
  41. Class B addresses range from 128-191 --- 255.255.0.0
  42. Class C addresses range from 192-223 --- 255.255.255.0
  43. Class D addresses range from 224-239
  44. Class E addresses range from 240-254
  45.  
  46. 127.0.0.1--> loopback address
  47.  
  48. 00000000.00000000.00000000.00000000 --- 11111111.11111111.11111111.11111111
  49. 0.0.0.0 --- 255.255.255.255
  50.  
  51.  
  52.  
  53. Class A: 255.0.0.0 (2^N-2) HOSTS
  54. --- -----
  55. NI HI
  56. Class B: 255.255.0.0
  57. Class C: 255.255.255.0
  58.  
  59.  
  60.  
  61. 172.16.0.1 - 172.16.0.255 ---->
  62. 172.16.1.0 - 172.16.1.255 ---->
  63. 172.16.2.0 - 172.16.2.255 ---->
  64.  
  65.  
  66. 172.16.0.54
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73. NAT - Network Address Translation
  74. ==================================
  75.  
  76. This is a function which converts my Public IP Address to my Private IP Address and vice versa.
  77.  
  78.  
  79.  
  80.  
  81. 172.168.10.0 - 172.168.10.255
  82. 172.168.11.0 - 172.168.11.255
  83.  
  84. TASKS:
  85. IPV5
Add Comment
Please, Sign In to add comment