Class A, B and C splits and why classless addressing replaced them.
Octet conversion
Converting an 8-bit octet between binary and decimal.
Slash notation
/n means the first n bits are the network prefix.
Prefix length and block size
A /n block contains 2^(32-n) addresses.
Mask and prefix conversion
Masks are contiguous ones followed by zeros.
Applying the mask
Bitwise AND of address and mask gives the network number.
Network address
The lowest address in the block, host bits all zero.
Broadcast address
The highest address in the block, host bits all one.
Usable host addresses
2^(32-n) minus two usable addresses in a subnet.
Why subnet
Dividing one network number among several physical networks.
Subnet boundaries
Determining which subnet an address belongs to.
Variable-length subnetting
Different subnets in one network can use different masks.
Prefix aggregation
Combining contiguous prefixes into one shorter prefix.
Private ranges
10/8, 172.16/12 and 192.168/16 are not routed on the Internet.
Delivery types
One-to-one, one-to-many and one-to-all delivery.
Sample question
Try it, then open the answer. Our questions are written by AI and checked independently before they are published.
HardSingle choice
Refer to the exhibit. An engineer must configure interface GigabitEthernet0/3 on router R1 with these requirements:
• Support at least 28 usable host addresses.
• Use the lowest available subnet from the 172.16.10.0/24 address space.
• Do not overlap with any existing subnet on R1.
Which command satisfies the requirements?
R1 Running Configuration
interface GigabitEthernet0/0
ip address 172.16.10.1 255.255.255.224
!
interface GigabitEthernet0/1
ip address 172.16.10.33 255.255.255.240
!
interface GigabitEthernet0/2
ip address 172.16.10.65 255.255.255.192
!
interface GigabitEthernet0/3
shutdown
!
A. ip address 172.16.10.129 255.255.255.224
B. ip address 172.16.10.97 255.255.255.224
C. ip address 172.16.10.49 255.255.255.240
D. ip address 172.16.10.49 255.255.255.224
Show the answer
Answer: A. ip address 172.16.10.129 255.255.255.224
To support at least 28 usable host addresses, an interface requires at least 5 host bits (2^5 - 2 = 30 usable hosts), which specifies a /27 prefix (subnet mask 255.255.255.224, block size 32). Evaluating the existing subnets on R1 reveals that GigabitEthernet0/0 spans 172.16.10.0 through 172.16.10.31 (/27), GigabitEthernet0/1 spans 172.16.10.32 through 172.16.10.47 (/28), and GigabitEthernet0/2 spans 172.16.10.64 through 172.16.10.127 (/26). A /27 subnet must begin on a multiple of 32: 172.16.10.0/27 conflicts with GigabitEthernet0/0, 172.16.10.32/27 conflicts with GigabitEthernet0/1, and both 172.16.10.64/27 and 172.16.10.96/27 conflict with GigabitEthernet0/2. The lowest available non-overlapping /27 subnet is 172.16.10.128/27, which uses mask 255.255.255.224 and has a first usable address of 172.16.10.129.