Section 7 Flashcards
IPv4 addresses
are written as 4 octets, such as 192.168.4.12
Dotted Decimal notation
a shorthand to represent 32 0’s and 1’s (256 combos)
Each octet is valued between 0 and 255
To convert from binary to dotted decimal add the values of the 1’s. Far left is 128 and half for each # going right. 128, 64, 32, 16, 8, 4, 2, 1.
ARP (Address Resolution Protocol)
resolves MAC addresses from IP addresses. Type arp -a to see the ARP cache
Class Licenses: Class A 0-126 /8, Class B 128-191 /16, Class C 192-223 /24
Classful subnetting was the first effort to divide networks IDs
Subnetting divides Network IDs into two or more networks
Regular IP addresses cannot end in 0 or 255 but subnets can
Subnets don’t have to be on the dots
Computers on a network all have the same Network ID but different Host IDs
Cannot use 0-255 for the Host ID
The Subnet mask is only used by the computer- it is never sent out
The default gateway will figure out where to forward the message
Host uses the subnet mask to know if the destination is on the local network or a remote network
Classless Inter-Domain Routing (CIDR)
can go past a /24 where that extra # can be a 1 or 0. In the Network ID if it is a 0 the Host ID can be from 1-126. If it is a 1 then the host id can be from 129 to 254.
2 subnets, 126 host per subnet
4 subnets, 62 host per subnet
DHCP- Dynamic Host Configuration Protocol
Each broadcast domain must have only one DHCP server
DHCP server has to be run with broadcast domain
DHCP Relay enables a single DHCP server to service more than one broadcast domain
APIPA - Automatic Private IP Addressing
APIPA addresses always start with 169.254
Rogue DHCP servers
Two DHCP servers going simultaneously
If you get an IP address other than your correct network ID
10.x.x.x
private IP addresses
172.16.x.x - 172.31.x.x
private IP addresses
192.168.x.x
private IP addresses
NAT device
hides you from the Internet
Loopback address
Loopback adapter you plug in and connect to yourself (IPv4 loopback - 127.0.0.1)
IPv6 loopback- ::1
APIPA- 169.254.x.x
IP addressing scenarios:
Duplicate IP addresses- Know your network, run commands
Duplicate MAC addresses-
Incorrect gateway- Man in the middle attack
Incorrect subnet mask- all computers within the same broadcast domain will always have the same subnet mask
Expired IP address-