IP Addressing Flashcards

(46 cards)

1
Q

What is an IP address?

A

A unique numerical label that identifies a device on a network, used for routing traffic.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

At which OSI layer does IP addressing function?

A

Layer 3 – the Network Layer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do IP addresses differ from MAC addresses?

A

IP addresses are logical (Layer 3), change by location, and are used between networks; MAC addresses are physical (Layer 2), permanent, and used within LANs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What’s a good analogy for an IP address?

A

Like a mailing address – used to deliver data via routers, similar to postal hubs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What format does IPv4 use?

A

32-bit addresses written in dotted decimal (e.g., 192.168.1.1), divided into four 8-bit octets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How is the network and host portion of an IP address determined?

A

By the subnet mask (e.g., 255.255.255.0 means first three octets are network, last is host).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is 192.168.1.4 in binary?

A

11000000.10101000.00000001.00000100

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the IPv4 address class ranges and their use cases?

A
  • Class A: 1–126 → Large orgs
  • Class B: 128–191 → Medium orgs
  • Class C: 192–223 → Small networks
  • Class D: 224–239 → Multicast
  • Class E: 240–255 → Experimental
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the default subnet masks for IPv4 classes A, B, and C?

A
  • A: 255.0.0.0 (/8)
  • B: 255.255.0.0 (/16)
  • C: 255.255.255.0 (/24)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What’s the difference between public and private IPs?

A
  • Public IPs: Routable on the internet, assigned by ISPs
  • Private IPs: Internal use only, defined by RFC 1918
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the private IP ranges?

A
  • 10.0.0.0 – 10.255.255.255
  • 172.16.0.0 – 172.31.255.255
  • 192.168.0.0 – 192.168.255.255
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are special IPv4 addresses and their use?

A
  • Loopback (127.0.0.1): Internal system test
  • APIPA (169.254.x.x): Auto-assigned when DHCP fails
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the types of IPv4 data flows?

A
  • Unicast: One-to-one (e.g., web browsing)
  • Multicast: One-to-many (e.g., streaming)
  • Broadcast: One-to-all on local subnet (e.g., DHCP discover)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the IPv4 broadcast address?

A

255.255.255.255

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the multicast IP range?

A

224.0.0.0 – 239.255.255.255

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is static IP addressing used for?

A

Devices like servers or printers that require consistent IPs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What must be manually configured for a static IP?

A

IP, subnet mask, default gateway, and DNS.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is dynamic IP addressing?

A

Uses DHCP to automatically assign IPs from a predefined scope.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What are other IP assignment methods?

A
  • BOOTP: Predecessor to DHCP
  • APIPA: Local-only auto-IP when DHCP fails
  • ZeroConf: Self-configuration using mDNS (Bonjour, LLMNR)
20
Q

What is the purpose of subnetting?

A

To divide larger networks into smaller segments for efficiency and security.

21
Q

What formula calculates number of subnets?

A

2^s (s = bits borrowed from host portion)

22
Q

What formula calculates usable hosts per subnet?

A

2^h – 2 (h = host bits remaining)

23
Q

What is CIDR notation?

A

A shorthand for subnet masks (e.g., /24 = 255.255.255.0)

24
Q

Why was IPv6 developed?

A

To solve IPv4 address exhaustion.

25
What is the format of an IPv6 address?
128-bit hexadecimal, separated by colons (e.g., 2001:0db8::1)
26
What are the IPv6 shortening rules?
Remove leading 0s and use '::' once for consecutive zero blocks.
27
What are the types of IPv6 addresses?
* Unicast (2000::/3): One-to-one * Link-local (FE80::/10): Auto-configured, local segment only * Unique Local (FC00::/7): Private networks * Multicast (FF00::/8): One-to-many * Anycast: One-to-nearest (IPv6 only)
28
Does IPv6 use broadcast?
No – replaced by multicast and anycast.
29
What are the types of IPv6 data flows?
* Unicast: One-to-one (e.g., 2001:db8::1) * Multicast: One-to-many (e.g., FF02::1) * Anycast: One-to-nearest (uses unicast address)
30
What is Dual Stack?
Devices run both IPv4 and IPv6 simultaneously.
31
What is tunneling in IPv6?
Encapsulates IPv6 packets inside IPv4 to traverse older networks.
32
What is NAT64?
Translates IPv6 addresses to IPv4 to allow communication with IPv4-only systems.
33
How do you convert binary to decimal?
Add the values of all positions with a 1.
34
Convert binary 10010110 to decimal.
150 (128 + 16 + 4 + 2)
35
How do you convert decimal to binary?
Subtract powers of 2 until you reach zero.
36
Convert decimal 167 to binary.
10100111
37
What is the usable host count for /24?
254 usable IPs (Subnet mask: 255.255.255.0)
38
What is the usable host count for /30?
2 usable IPs (Subnet mask: 255.255.255.252)
39
What is the purpose of a /31 subnet?
Point-to-point links (2 usable IPs)
40
What is a /32 subnet used for?
Single host
41
How many bits are in IPv4 and IPv6?
IPv4 = 32-bit, IPv6 = 128-bit
42
What are the private IPv4 ranges?
* 10.x.x.x * 172.16.x.x – 172.31.x.x * 192.168.x.x
43
What prefix do all IPv6 multicast addresses start with?
FF::
44
What replaces broadcast in IPv6?
Multicast and Anycast
45
What are the key subnetting formulas?
* Subnets = 2^borrowed bits * Usable Hosts = 2^host bits – 2
46
What should you practice for IP addressing mastery?
CIDR notation, binary-to-decimal conversion, and subnet chart memorization.