Skip to main content
Notes by Peter Galonza(Пётр Галонза)
GitHub Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Network

IPv4

Special Addresses

IPv4 address = 4 byte = 32 bit Network mask = 4 byte = 32 bit 255.255.255.0 = /24(the sum of the units in the binary system)

1st Octet2nd Octet3rd Octet4th Octet
19216800
2552552550
1byte1byte1byte1byte
11000000101010000000000000000000
11111111111111111111111100000000
  • Network: 192.168.0.0 = 11000000.10101000.00000000.00000000
  • Start host: 192.168.0.1 = 11000000.10101000.00000000.00000001
  • End host: 192.168.0.254 = 11000000.10101000.00000000.11111110
  • Broadcast: 192.168.0.255 = 11000000.10101000.00000000.11111111

Calculating the number of hosts by mask

2^(32 - <subnet mask>)

IPv6

IPv4 address = 16 byte = 128 bit

1st Hexctet2nd Hexctet3rd Hexctet4th Hexctet5th Hexctet6th Hexctet8th Hexctet
20010db812340000000000000000
2byte2byte2byte2byte2byte2byte2byte

MAC

MAC address = 6 byte = 48 bit