S9. What is a network prefix? Give an example for a subnet of 255 hosts Flashcards

1
Q

What is a network prefix?

A

A network prefix, also known as a subnet mask, is a sequence of bits identifying the portion of an IP address that refers to the network

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

Why are network prefixes used?

A

They are used to divide large networks into smaller subnets which facilitates routing and network management.

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

How are network prefixes expressed?

A

In IPv4, the subnet mask is typically expressed in two ways: as a dotted decimal subnet mask (eg., 255.255.255.0) or using CIDR notation (eg., /24). The subnet mask consists of a series of consecutive ‘1’ bits followed by ‘0’ bits, where the ‘1’ bits represent the network portion and the ‘0’ bits represent the host portion of the IP address.

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

What is dotted decimal notation?

A

255.255.255.0

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

What is CIDR notation?

A

192.168.1.0/24 (the /24 part)

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

What is the subnet mask for a subnet that accomodates 255 hosts?

A

255.255.255.0 or /24

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

What does 255.255.255.0 mean?

A

It indicates that the first 24 bits of the 32-bit IPv4 address are used for the network portion, while the remaining 8 bits are used for host addresses.

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

What does it mean if the IP address is 192.168.1.0 and the subnet mask is 255.255.255.0?

A

It means the first 24 bits (192.168.1) define the network and the remaining 8 bits define individual hosts within the subnet.

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

What does 192.168.1.0/24 mean?

A

It is an IP address with a subnet mask in CIDR notation. It means that the first 24 bits of the address (192.168.1) define the network and the remaining 8 bits define individual hosts within this subnet.

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

How many hosts can 8 bits accomodate?

A

8 bits can accommodate 2^8 = 256 hosts–however, the effective IP range for hosts within the subnet 192.168.1/24 would be 192.168.1.1 to 192.168.254 since 192.168.1.0 is reserved as the network address and 192.168.1.255 as the broadcast address,

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