S9. What is a network prefix? Give an example for a subnet of 255 hosts Flashcards
What is a network prefix?
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
Why are network prefixes used?
They are used to divide large networks into smaller subnets which facilitates routing and network management.
How are network prefixes expressed?
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.
What is dotted decimal notation?
255.255.255.0
What is CIDR notation?
192.168.1.0/24 (the /24 part)
What is the subnet mask for a subnet that accomodates 255 hosts?
255.255.255.0 or /24
What does 255.255.255.0 mean?
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.
What does it mean if the IP address is 192.168.1.0 and the subnet mask is 255.255.255.0?
It means the first 24 bits (192.168.1) define the network and the remaining 8 bits define individual hosts within the subnet.
What does 192.168.1.0/24 mean?
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 many hosts can 8 bits accomodate?
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,