Chapter 6: TCP/IP Basics

124 flashcardsby Manethel
Study these flashcardsFree · spaced repetition · iPhone, Android, Mac & web

All cards

1
What is CIDR?
Classless Inter-Domain Routing; a flexible IP addressing method that replaces classful networking.

Allows subnetting by varying the subnet mask length (e.g., /24, /25).
2
How does CIDR improve efficiency?
Enables variable-length subnet masking (VLSM), letting ISPs allocate exact-sized blocks (e.g., /25 for 126 hosts, /26 for 62 hosts).
3
What happens when you change a /24 to a /25?
Splits one network into two subnets, each with half the hosts (e.g., 208.25.160.0/24 → 208.25.160.0/25 and 208.25.160.128/25).
4
What is the host range for 208.25.160.64/26?
65–126 (64 total addresses, minus network ID 64 and broadcast 127).
5
Why can’t subnet masks have alternating 1s and 0s?What is the range of Class A IP addresses?Why can’t a subnet mask be 255.255.255.240.0?
Subnet masks must be contiguous 1s followed by 0s (e.g., 11111111.11111111.11111111.10000000 for /25).
6
What’s the trade-off of subnetting?
More subnets = fewer hosts per subnet (e.g., /24 = 254 hosts, /26 = 62 hosts).
7
Who typically performs subnetting?
ISPs, to allocate customized address blocks to customers.
8
What is the subnet mask for /24 and /25?
/24 → 255.255.255.0

/25 → 255.255.255.128
9
What is the subnet mask for /26?
255.255.255.192
10
How many usable hosts does a /26 subnet support?
62 (2⁶ - 2)
11
Why are the last two addresses in a subnet not usable for hosts?
One is the network address, and the other is the broadcast address.
12
What is ARP used for?
To resolve a known IP address to its corresponding MAC address on the same local network.
13
How does ARP work?
The sender broadcasts an ARP request: "Who has [IP]? Tell [My IP]."

Only the device with the matching IP replies with its MAC address.
14
What command shows the ARP cache?
arp -a (displays dynamic and static IP-to-MAC mappings).
15
Why does ARP use broadcasting?
Because the sender doesn’t know the target’s MAC, so it asks all devices on the network.
16
What’s the difference between dynamic and static ARP entries?
Dynamic: Learned via ARP, expire after a timeout.

Static: Manually configured, permanent (rarely used).
17
When is ARP not needed?
For remote networks (ARP is only for local communication; routers handle cross-network traffic).
18
What does ARP stand for?
Address Resolution Protocol.
19
Why can’t a computer send just an IP packet over Ethernet?
Ethernet requires the destination’s MAC address to form a complete Ethernet frame.
20
How does a computer avoid repeatedly sending ARP requests?
It stores known IP-to-MAC mappings in the ARP cache.
21
What does a dynamic ARP entry mean?
It was learned automatically and will expire after a short period.
22
What happens if your ARP cache is empty?
You may need to ping or connect to other devices to populate it.
23
Why is ARP important for the Network+ exam?
It's a fundamental part of how local devices communicate on Ethernet networks, and arp -a is a common command-line tool to verify it.
24
What does a subnet mask determine?
Whether an IP address is local (same subnet) or remote (different subnet).
25
How does a host decide to use ARP vs. the default gateway?
Compares destination IP to its own network ID (using subnet mask).

Match: ARP for local MAC.

No match: Forward to default gateway.
26
What is the binary form of 255.255.255.0?
11111111.11111111.11111111.00000000 (or /24).
27
Why is VLSM more efficient than FLSM?
VLSM assigns smaller subnets to small networks (e.g., /28 for 8 hosts), avoiding IP waste.
28
What happens if a subnet mask is misconfigured?
Hosts may incorrectly classify remote IPs as local (or vice versa), causing communication failures.
29
What’s the purpose of the default gateway?
To route traffic outside the local subnet (e.g., to the internet).
30
What is the purpose of a subnet mask?
To separate the network ID from the host ID in an IP address.
31
What does /24 mean in CIDR notation?
24 bits are used for the network portion; equivalent to 255.255.255.0.
32
How does a computer determine if an IP is local or remote?
It compares its own IP and the target IP using the subnet mask.
33
What does a computer do if the destination IP is not in its subnet?
It ARPs for the default gateway (router) and sends the packet there.
34
What are the required TCP/IP settings on every host?
An IP address, a subnet mask, and a default gateway.
35
What is FLSM (Fixed Length Subnet Masking)?
Every subnet has the same subnet mask, regardless of size.
36
What is VLSM (Variable Length Subnet Masking)?
Subnets use different masks to better fit the number of required hosts.
37
Which subnet mask allows for 254 hosts?
/24 or 255.255.255.0
38
What happens when subnetting is too broad for a small network?
It wastes IP addresses — VLSM helps avoid this.
39
What is IANA’s role in IP addressing?
Globally manages IP allocation, delegates blocks to RIRs (e.g., ARIN, RIPE).
40
How is a Class B IP range identified?
First octet 128–191, subnet mask /16 (e.g., 160.25.0.0/16).
41
Why was Classful addressing inefficient?
Forced rigid sizes (/8, /16, /24), wasting addresses for small networks.
42
How does subnetting a Class B /16 into /24 work?
Borrows 8 host bits → creates 256 /24 subnets (e.g., 160.25.1.0/24).
43
What replaced Classful addressing?
CIDR/VLSM, allowing custom subnet masks (e.g., /26, /28).
44
What’s the key difference between Classful and CIDR?
Classful: Fixed to /8, /16, /24.

CIDR: Any mask length (e.g., /22, /27).
45
What do Regional Internet Registries (RIRs) do?
Distribute IP address blocks in different geographic regions.
46
What’s the first step for an organization that needs public IP addresses?
Contact their ISP, not IANA or RIRs directly.
47
What is the range of Class A IP addresses?
1.0.0.0 to 126.255.255.255
48
How many hosts does a Class C (/24) network support?
254 usable hosts
49
Why was classful addressing wasteful?
Small networks got more IPs than they needed, wasting address space.
50
What is subnetting?
Dividing a larger network into smaller subnetworks.
51
What is a CIDR notation?
IP address followed by a slash and number of network bits, e.g., 192.168.1.0/26
52
What problem does CIDR solve?
Classful addressing waste by allowing custom subnet sizes (e.g., /26, /28).
53
How many subnets does a /25 create from a /24?
2 subnets, each with 126 hosts (128 total, minus networkroadcast).
54
What’s the subnet mask for /26 in binary?
11111111.11111111.11111111.11000000 (or 255.255.255.192).
55
If you subnet a /24 into /26, how many hosts per subnet?
62 hosts (64 total, minus 2).
56
Why can’t a subnet mask be 255.255.255.240.0?
Subnet masks must be contiguous 1s followed by 0s (no "gaps").
57
What’s the host range for 208.25.160.64/26?
65–126 (Network ID: 64, Broadcast: 127).
58
How do you know how many subnets you’ve created with CIDR?
The more bits you borrow from the host part of the address (i.e., increasing the prefix length), the more subnets you create.
59
What happens when you change a subnet mask from /24 to /25?
You divide the network into 2 subnets, each with 126 usable hosts.
60
What does subnetting a network from /25 to /26 do?
It divides the network into 4 subnets, each with 62 usable hosts.
61
How many hosts does a /26 subnet allow?
A /26 subnet allows 62 usable hosts (64 - 2 for network and broadcast addresses).
62
Why is CIDR beneficial for ISPs?
CIDR allows ISPs to efficiently allocate smaller blocks of IP addresses to customers, avoiding waste.
63
What is the limit of hosts in a /28 subnet?
A /28 subnet allows 14 usable hosts (16 - 2).
64
What is the difference between dynamic and static IP addresses?
Dynamic IPs change over time (common in home networks).

Static IPs remain fixed (required for servers).
65
Why do businesses need static IP addresses?
To ensure consistent accessibility for web, email, or game servers.
66
How do you calculate the number of usable hosts in a subnet?
Usable hosts = 2ⁿ - 2, where *n* = number of host bits.
67
How many usable hosts does a /28 subnet provide?
14 usable hosts (2⁴ - 2 = 16 - 2 = 14).
68
What is typically reserved in a subnet block by the ISP?
The first or last IP (for the ISP’s routerateway).
69
What are the two ways to assign IP addresses to a device?
Static: Manually configured.

Dynamic (DHCP): Automatically assigned.
70
What does DHCP stand for, and what does it do?
Dynamic Host Configuration Protocol – Automatically assigns IP addresses, subnet masks, gateways, and DNS.
71
What is the four-step DHCP process called?
DORA: Discover, Offer, Request, Acknowledgment.
72
Why can’t a DHCP server be on a different subnet without help?
DHCP relies on broadcasts, which don’t cross subnets. Use a DHCP relay/IP helper to forward requests.
73
What is a DHCP reservation?
Assigns a fixed IP to a MAC address (e.g., printers, servers).
74
What is a DHCP lease time?
How long a device keeps an IP before renewal (e.g., 24 hours).
75
What is the difference between DHCPv6 and SLAAC in IPv6?
DHCPv6: Stateful (server assigns IPs).

SLAAC: Stateless (devices self-configure via EUI-64).
76
Why should you avoid multiple DHCP servers on one subnet?
They may assign conflicting IPs (e.g., two devices getting the same IP).
77
What is an IP helper address used for?
Forwards DHCP requests across subnets to a central DHCP server.
78
How does a device request an IP if it doesn’t have one yet?
Sends a DHCP Discover broadcast (MAC FF:FF:FF:FF:FF:FF).
79
What three settings does every networked computer need?
IP address, subnet mask, and default gateway.
80
What is the manual method of IP configuration called?
Static IP configuration.
81
What kind of message is DHCP Discover?

What kind of message is DHCP Offer?
A broadcast message.

A unicast message.
82
What is a DHCP scope?
The defined range of IP addresses available to assign to clients.
83
What is a DHCP exclusion?
An IP within the scope that will not be assigned dynamically.
84
What does SLAAC stand for?
Stateless Address Auto Configuration.
85
How does SLAAC assign IPv6 addresses?
Devices auto-generate addresses using their MAC and the EUI-64 method.
86
How does DHCPv6 differ from SLAAC?
DHCPv6 provides full address assignment with more configuration, similar to DHCPv4.
87
What causes a duplicate IP address, and how does Windows handle it?
Cause: Static conflict or rogue DHCP.

Windows: Auto-switches to DHCP; shows error.
88
How can duplicate MAC addresses occur, and what’s the impact?
Cause: VM cloning without MAC regeneration.

Impact: Switches may flood traffic (hub mode).
89
What’s the symptom of an incorrect gateway?
Local access works, no internet.
90
Why might a device get a 169.254.x.x address?
DHCP failure (server down/expired lease).
91
How can an incorrect subnet mask cause one-way ping?
Device A sees B in the same subnet; B sees A in a different subnet.
92
What’s a rogue DHCP server, and why is it dangerous?
Unauthorized DHCP server; can assign wrong gateway/IPs (MITM risk).
93
How do you check IP settings on Linux vs. Windows?
Windows: ipconfig

Linux: ifconfig or ip a
94
What’s the default DHCP lease time in Windows?
8 days (renews at 4 days).
95
How can a static IP database prevent conflicts?
Tracks all manual IP assignments to avoid overlaps.
96
What command helps diagnose gateway issues?
tracert (Windows) or traceroute (Linux) to test routing paths.
97
What is a private IP address used for?
Used for local/internal networks; not routable on the public internet.
98
What does NAT do in relation to private IPs?
Translates private IP addresses to a public IP for internet access.
99
What is the IPv4 loopback address?
127.0.0.1 (localhost)
100
What is the IPv6 loopback address?
::1
101
What is the purpose of a loopback address?
Used to test a system’s network stack internally.
102
What is the APIPA IP range?
169.254.0.1 – 169.254.255.254
103
When is an APIPA address assigned?
When DHCP fails and the OS self-assigns an IP.
104
Can you access the internet with an APIPA address?
No; only allows local communication within the same subnet.
105
What is a common cause of getting an APIPA address?
DHCP server is unreachable or down.
106
What command in Windows releases an IP address?

What command in Windows renews an IP address?
ipconfig elease

ipconfig enew
107
What happens when two devices have the same IP?
IP conflict – one or both may lose connectivity.
108
What might happen in Windows during an IP conflict?
The system disables the NIC or reverts to DHCP.
109
What might happen in Linux during an IP conflict?
Silent failure or connectivity issues.
110
How do you fix an IP conflict?
Change one device’s IP or verify DHCP settings.
111
What is a duplicate MAC address?
Two devices have the same hardware address.
112
Where are duplicate MAC addresses most common?
In virtual machines that were cloned.
113
What problems can a duplicate MAC address cause?
Switch confusion, traffic drops, or reverting to hub-like behavior.
114
What does the default gateway do?
Routes traffic to outside networks (e.g., the internet).
115
What happens if a client has the wrong default gateway?
It can't access external networks or the internet.
116
What is a rogue gateway?
An unauthorized router offering incorrect gateway settings, possibly used in MITM attacks.
117
What does a subnet mask do?
Defines the network and host portions of an IP address.
118
What happens if the subnet mask is incorrect?
Devices may not communicate properly within the network.
119
How can you tell if there's a subnet mismatch issue?
Devices on the same IP range can’t ping each other or show asymmetric connectivity.
120
What command can help you verify if DHCP is working?
ipconfig /all – shows lease info, DHCP server, etc.
121
What should all devices on the same LAN have in common?
Same subnet mask and same default gateway (usually the router).
122
What symptoms suggest a bad default gateway?
Can ping local devices but not websites or external IPs.
123
What tool helps trace the route to a host?
tracert (Windows) or traceroute (Linux/macOS)
124
What is the purpose of the ping command?
Test connectivity to another host or IP.
Study all 124 cards for free