IP Addressing Flashcards

(26 cards)

1
Q

What is the 1st octet range, default subnet mask and max hosts per network of classes A to C?

A

Class A: Range: 1 - 127, Subnet: 255.0.0.0, Hosts: 16.7M
Class B: Range: 128 - 191, Subnet: 255.255.0.0, Hosts: 65,536
Class C: Range: 192 - 223, Subnet: 255.255.255.0, Hosts 256

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

What is special about Class D addresses and whats the range of the 1st octet?

A

Range: 224 - 239
They arent used to represent specific hosts but they are used for multi casting, meaning they represent a group of hosts, if a packet is sent to them, its multicasted to this whole group.

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

What is special about Class E addresses, whats the range of the 1st octet and how many hosts include ALL those addresses?

A

Range: 240 - 255, Hosts: 268M
They are “reserved” and cannot be used in any production environments.

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

What are the Class A to C private IP ranges and the max hosts per network?
Like stated in RFC 1918

A

Class A: 10.0.0.0 - 10.255.255.255, Max: 16.7M
Class B: 172.16.0.0 - 172.31.255.255, Max: 1.05M
Class C: 192.168.0.0 - 192.168.255.255, Max: 65,536

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

What is the Automatic Private IP Addresses (APIPA) range and when is it used?

A

Its used by the OS when the networks DHCP server is unavailable and the machines doesnt have a static IP address assigned yet.
Range: 169.254.0.0 - 169.254.255.255

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

Whats the loopback (localhost) address and theoretical range and what its for?

A

Its for internal testing of the devices network protocols.
Localhost: 127.0.0.1
Theoretical Range: 127.0.0.1 - 127.255.255.255

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

What does CIDR stand for and whats it for? And whats CIDR notation?

A

Classless Inter-Domain Routing:
Its used to borrow bits from the host portion of an IP address for the network portion to create smaller subnets.
CIDR Notation: The number of bits assigned to the network portion are written behind the IP address with a / like 127.0.0.1/8

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

What are the types of IPv4 data flows?

A

Unicast: from a single source to a single destination
Multicast: from a single source to multiple specific destinations
Broadcast: from a single source to all devices on a destination network

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

What are the 4 methods for IP assignment?

A
  • BOOTP (Legacy)
  • DHCP (Standard today, modern BOOTP replacement)
  • APIPA
  • ZeroConf (Newer based on APIPA)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the 4 settings, DHCP assigns?

A
  1. IP Address
  2. Subnet Mask
  3. Default Gateway
  4. DNS/WINS Server
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the crucial problem with APIPA configured devices?

A

APIPA assigned devices cannot communicate outside the LAN (no Internet) and cannot communicate with non-APIPA devices in the LAN

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

What are alternative implementations of ZeroConf and what are its features?

A

It has the basic APIPA features and additionally:
- Resolve computer names to IPs without DNS using mDNS
- Service discovery on a network
Apple: Bonjour
Windows: Link-Local Multicast Name Resolution (LLMNR)
Linux: SystemD

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

A Class C network for example has 256 possible addreses, why are only 254 hosts possible? (Applies for all Networks)

A

Network Address: If all host bits are 0, for example the Class C address 192.168.1.0, this IP address represents the network itself

Broadcast Address: If all host bits are 1, for example the Class C address 192.168.1.255, this IP address is used to send to all hosts in that network

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

What are the number of possible subnets and number of IPs per subnet for the CIDR notations /24 to /30

A

Number of usable IPs is always IPs - 2, because of Network & Boradcast ID

/24: Subnets: 1; IPs: 256
/25: Subnets: 2; IPs: 128
/26: Subnets: 4; IPs: 64
/27: Subnets: 8; IPs: 32
/28: Subnets: 16; IPs: 16
/29: Subnets: 32; IPs: 8
/30: Subnets: 64; IPs: 4

For /23 downwards its again Subnets X 2 for each step, but now IPs is also IPs X 2 instead of IPs / 2, Example:

/23: Subnets: 2; IPs: 512
/22: Subnets: 4; IPs: 1024
/21: Subnets: 8; IPs: 2048 etc.

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

What is Variable Length Subnet Mask? What Routing protocols support VLSM?

A

Variable-Length Subnet Mask:
Allows subnets of various sizes. Instead of 4x 64 IPs one can be 64 IPs, one split by 2 into 2x 32 IPs etc. Esentially its subnetting of subnets.
Routing Protocols supporting VLSM:
- RIP
- OSPF
- IS-IS
- EIGRP
- BGP

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

What rules exist to shorten IPv6 addresses?

A

If an octet only contains 0s (0000) it can be first shorted to one 0. Multiple octets with 0, can be shortened to a double : (::) once.

So: 1234:0000:0000:0000:3423:3847:AB30
= 1234:0:0:0:3423:3847:AB30
= 1234::3423:3847:AB30

17
Q

What IPv6 Address types exist? What are they for?

A
  • Unicast (Used to identify a single Interface)
  • MultiCast (Used to identify a set of interfaces, beginds with FF)
  • AnyCast (Used to identify a set of interfaces so packets can be sent to any member of the set)
18
Q

What is special about IPv6 in terms of network interfaces compared to IPv4?

A

A single network interface, like a network card can be assigned multiple different IPv6 addresses.

19
Q

What types of IPv6 Unicast addresses exist and how to identify them?

A
  1. Globally routed: They are like public IPv4 addresses and they always have the 1st octet between 2000 to 3999
  2. Link-Local / Local Use: Like private IPv4 addresses and they always have the 1st octet being FE80
20
Q

How are Link-Local IPv6 addresses are assigned?

A

Through Stateless Address Autoconfiguration (SLAAC), which doesnt need to obtain addresses or other info from a central server like DHCP does.

21
Q

How does SLAAC work?

A
  1. Take the MAC address of the network card.
  2. Split OUI and NIC of the MAC and insert “FFFE” between them, this gives us a 64bit address called EUI
  3. Then SLAAC reads the network part of the IPv6 address of the network the device is on, which is also 64bit and puts it in front of the EUI
  4. Done! We now have a working 128bit IPv6 address
22
Q

What is NDP and how does it work?

A

Neighbour Discovery Protocol (NDP):
It learns the Layer2 (MAC) Addresses of other devices on the network through Router Solicitation/Advertisement and Neighbour Solicitation/Advertisement.
It can also redirect traffic to another router if its faster.

23
Q

Whats the difference between Broadcasting in IPv4 and Anycasting in IPv6?

A

Anycast is a way to assign the same IP address to multiple devices like for example DNS servers. When a request is then send to this address, the protocol automatically routes the request to the nearest server with that IP and not to all of them.

24
Q

What is Dual Stack?

A

It allows for IPv4 and IPv6 to coexist on the same network for gradual migration. Favors IPv6 by default, falling back to IPv4 if 6 is unavailable.

25
What is Tunneling (in IPv4/IPv6 Architecture)?
Tunneling allows IPv6 packets to get encapsulated so they can traverse through IPv4 infrastructure.
26
What is NAT64?
An address translation mechanism allowing IPv6 only devices to speak to IPv4 devices. Crucial for environments where DualStack is not feasible.