CareerExamPro

Cisco CCNA/CCNP Routing, Switching, Subnetting & BGP/OSPF practice questions

20 questions from the CCNA, CCNP, Terraform, AWS SAP & CKS practice test.

Start practising

Cisco CCNA/CCNP Routing, Switching, Subnetting & BGP/OSPF practice drill

10 realistic exam questions, graded as you go, with the exact rule or statute citation for every answer. Start free, no sign-up.

Sample questions

A campus distribution switch interface is assigned the IPv4 address 172.24.139.210/20. Which combination correctly identifies the subnet's network address, broadcast address, and usable host range?

  1. Network 172.24.136.0, broadcast 172.24.143.255, usable 172.24.136.1–172.24.143.254 (2,046 hosts).
  2. Network 172.24.128.0, broadcast 172.24.143.255, usable range 172.24.128.1 to 172.24.143.254 (4,094 hosts).
  3. Network 172.24.128.0, broadcast 172.24.139.255, usable host range 172.24.128.1 through 172.24.139.254 (3,070 usable hosts).
  4. Network 172.24.132.0, broadcast 172.24.147.255, usable 172.24.132.1–172.24.147.254 (4,094 hosts).
Show the answer

B. Network 172.24.128.0, broadcast 172.24.143.255, usable range 172.24.128.1 to 172.24.143.254 (4,094 hosts).

A /20 prefix corresponds to subnet mask 255.255.240.0, which yields a block size of 256 - 240 = 16 in the third octet. Multiples of 16 in the third octet are 0, 16, ..., 128, 144. Since 139 falls between 128 and 143, the network ID is 172.24.128.0, the broadcast address is 172.24.143.255, and the usable range is 172.24.128.1 to 172.24.143.254 (2^12 - 2 = 4,094 usable hosts).

Reference: RFC 4632 (Classless Inter-domain Routing) / Cisco CCNA 200-301 Official Cert Guide

A Cisco router interface GigabitEthernet0/1 with burned-in MAC address 5C:26:0A:7B:19:F4 is enabled for IPv6 using ipv6 enable without a manually configured link-local address. What IPv6 link-local address does IOS derive via Modified EUI-64, and which Neighbor Discovery Protocol (NDP) message verifies its uniqueness on the link?

  1. fe80::5e26:aff:fe7b:19f4, verified by Duplicate Address Detection using a Neighbor Solicitation.
  2. fe80::5c26:aff:fe7b:19f4, verified by DAD using an ICMPv6 Router Solicitation.
  3. fe80::5e26:0aff:fffe:7b19, verified by Duplicate Address Detection (DAD) using a multicast ARP Request to ff02::1.
  4. fe80::5a26:aff:fe7b:19f4, verified by DAD using a Neighbor Advertisement.
Show the answer

A. fe80::5e26:aff:fe7b:19f4, verified by Duplicate Address Detection using a Neighbor Solicitation.

Modified EUI-64 splits 5C:26:0A:7B:19:F4 in half and inserts FF:FE in the middle (5C26:0AFF:FE7B:19F4), then inverts the 7th bit (Universal/Local bit, 0x02) of the first byte: 0x5C (0101 1100) XOR 0x02 = 0x5E (0101 1110), yielding 5e26:0aff:fe7b:19f4, compressed to fe80::5e26:aff:fe7b:19f4. Before assigning any IPv6 address, NDP performs Duplicate Address Detection (DAD) by sending an ICMPv6 Neighbor Solicitation (Type 135) with unspecified source :: to the solicited-node multicast group.

Reference: RFC 4291 (IPv6 Addressing Architecture / Modified EUI-64) & RFC 4862 (IPv6 SLAAC / DAD)

Two Catalyst switches are connected via an 802.1Q trunk (Gi1/0/24). Switch A has switchport trunk native vlan 10, while Switch B has switchport trunk native vlan 20. Both VLANs are allowed on the trunk, and CDP logs %CDP-4-NATIVE_VLAN_MISMATCH. What happens to data traffic sent from a host in VLAN 10 on Switch A across the trunk, and what is the recommended security hardening?

  1. Switch A drops all VLAN 10 frames on the trunk until CDP resolves the mismatch.
  2. VLAN 10 frames cross untagged and land in VLAN 20 on Switch B; align native VLANs or enable vlan dot1q tag native.
  3. Switch A tags VLAN 10 frames with an explicit 802.1Q header because of the CDP mismatch, so Switch B delivers them normally to VLAN 10.
  4. Switch B places untagged frames into VLAN 1 and err-disables Gi1/0/24 unless DTP is disabled.
Show the answer

B. VLAN 10 frames cross untagged and land in VLAN 20 on Switch B; align native VLANs or enable vlan dot1q tag native.

On an 802.1Q trunk, frames belonging to the locally configured native VLAN are transmitted untagged (unless vlan dot1q tag native is enabled). Thus Switch A sends VLAN 10 frames untagged, and Switch B interprets all received untagged frames as belonging to its native VLAN (VLAN 20), causing silent cross-VLAN leaking and potential spanning-tree topology inconsistencies. Aligning the native VLAN to an unused dedicated VLAN on both ends—and optionally tagging native frames with vlan dot1q tag native—prevents VLAN hopping.

Reference: IEEE 802.1Q / Cisco Catalyst LAN Switching Configuration Guide (Trunking & Native VLAN)

Other topics