IP Addressing Flashcards
What is an IP address?
The network layer move traffic from one device to another on the internet, which means that each device must have an IP address
An IP address consists out of 4 numbers (1.1.1.1), each number can be between 0 - 255
each number is constructed out of an octet (8 bit) binary number, making it a 32-bit address
The first three numbers are the network portion, and the last number is the host portion
How do we identify the network and host portions of an IP address?
d
Classless Addressing
The network and host portion of the address is determined by the subnet mask
Classful Addressing
Network and Host portion is determined by Classes as opposed a subnet-mask.
Classes
A 0.0.0.0 - 127.255.255.255 (network portion is the first 8 bits)
B. 128.0.0.0 - 191.255.255.255(network portion is the first 16 bits)
C. 192.0.0.0 - 223.255.255.255(network portion is the first 24 bits)
D. 224.0.0.0 - 239.255.255.255(network portion is all 32 bits, there is no host portion)
E, 240.0.0.0 - 255.255.255.255 (experimental range, not used in reality)
Classes ABC are unicast addresses, which are used to connect individual devices with one another
Class D is a multicast address, which is used for connecting one too many devices
Different types of IP addresses
- Network Address
- Identifier for a group of devices, or area of ip addresses
- AKA “network prefix” - Broadcast address
- Identifier for all devices on a network - Host Address
- Identifies unique device on a network
How to identify a network address?
Need the IP address and subnet mask to identify the host portion of address
The host portion will have all binary zeros
If host portion is all binary zeros, then it will ALWAYS be a network address
How to identify a broadcast address?
Use a subnet mask to Identify the host portion of the address
if host portion is all binary 1’s then it is a broadcast address
How to identify a host address?
Use the subnet mask to identify the host portion of the ip
if the host is neither all zeros or all ones, then it is a host address
CIDR notation
Classless InterDomain Routing
instead of 255.255.255.0 the length of the network prefix is indicated with a /24 (bits) which is added behind the IP address
Private IP address Ranges
Ranges within the ABC classes that cannot be used in public networks, but only on private networks
A: 10.0.0.0 - 10.255.255.255 /8
B: 172.16.0.0 - 172.31.255.255 /12
C 192.168.0.0 - 192.168.255.255 /16
APIPA address
Used for automatic configuration of IP addresses
169.254.0.0/16
often fails, if a device has this address, there is a high chance that something is wrong in your network
127.0.0.1
Loopback or home address
used ot see if tcp stack on opperating system is working correctly
Used for testing on local system
PING
Packet InterNet Groper
Used to test connections
for two divice to communicate with one another directly, they must be on the same IP network address, if they are not, then communication will have to be facilitated through a third device, like a router
What does it mean when PING returns message “transmit failed. General Failure.”
it means the devices are not on the same IP network, and there are no routers configured
Default Gateway
Router IP address