First 50 of 200 questions. Each one lists the choices, the correct answer, and an explanation. The checker at the top of this page saves progress in this browser when it is available.
Continue in the practice tool above to load more questions, 50 at a time.
Question 1Network Fundamentals and Architecture
在一个以太网 VLAN 中,当主机需要与不同 VLAN 内的主机通信时,流量必须经过哪类设备进行三层转发?
- 中继器
- 二层交换机
- 集线器
- 三层路由器或三层交换机 Correct answer.
Explanation
VLAN 在二层划分广播域,不同 VLAN 之间的通信属于跨子网通信,需要由具备路由功能的设备进行三层转发。路由器或配置了 SVI 的三层交换机可以完成这一功能。二层交换机和集线器只处理同一广播域内的帧转发。
Question 2Network Fundamentals and Architecture
IPv4 地址 192.168.10.130 配合子网掩码 255.255.255.192 时,该地址所在子网的网络地址是什么?
- 192.168.10.192
- 192.168.10.0
- 192.168.10.64
- 192.168.10.128 Correct answer.
Explanation
掩码 255.255.255.192 表示前缀长度 /26,子网块大小为 64。将最后一个字节 130 与掩码 192 做按位与运算得到 128,因此网络地址为 192.168.10.128。该子网可用主机范围为 .129 到 .190,广播地址为 .191。
Question 3Network Fundamentals and Architecture
TCP 三次握手过程中,客户端发送的初始 SYN 报文里,序列号字段的作用是什么?
- 标识客户端本次连接的初始序列号 Correct answer.
- 确认服务器上一次发送的数据
- 通知服务器窗口已满
- 携带应用层请求数据
Explanation
SYN 报文中的序列号字段携带客户端随机选择的初始序列号(ISN),用于建立后续数据字节的编号基准。服务器在 SYN-ACK 中以确认号回应 ISN+1,从而完成序列号同步。窗口大小由独立的窗口字段表示,而不是序列号字段。
Question 4Network Fundamentals and Architecture
一台主机配置了默认网关,但其 ARP 表中没有网关的 MAC 地址。当它要向远程网络发送数据包时,首先会做什么?
- 向默认网关的 IP 发送 ARP 请求以获取其 MAC 地址 Correct answer.
- 向 DNS 服务器查询网关的 MAC 地址
- 直接向目标主机的 IP 发送 ARP 请求
- 丢弃数据包并等待网关主动通告
Explanation
主机判断目的地址不在本地子网后,会将数据包封装到默认网关的链路层帧中,因此需要先解析网关 IP 对应的 MAC 地址。它会在本地广播域内发送针对网关 IP 的 ARP 请求。目标主机位于其他子网,对其 IP 直接 ARP 不会得到响应。
Question 5Network Fundamentals and Architecture
OSI 参考模型中,负责端到端可靠传输、流量控制和差错恢复的是哪一层?
- 网络层
- 数据链路层
- 会话层
- 传输层 Correct answer.
Explanation
传输层(第 4 层)提供端到端的通信服务,TCP 在该层实现确认、重传、流量控制和差错恢复。网络层负责逻辑寻址与路由,数据链路层负责链路内的帧传输。会话层管理会话的建立与同步,不承担可靠传输机制。
Question 6Network Fundamentals and Architecture
一台交换机收到一个目的 MAC 地址不在其 MAC 地址表中的单播帧时,默认会如何处理?
- 丢弃该帧
- 返回 ICMP 不可达消息
- 从所有端口包括接收端口泛洪
- 从接收端口以外的所有端口泛洪 Correct answer.
Explanation
当交换机在 MAC 地址表中找不到目的地址时,会执行未知单播泛洪,将帧从除入端口以外的所有同 VLAN 端口转发出去。当目的主机回应后,交换机学习其 MAC 地址并后续进行定向转发。交换机不会把帧回送到接收端口。
Question 7Network Fundamentals and Architecture
在 RSTP(802.1w)中,哪种端口角色会替代传统 STP 中的阻塞端口,并在根端口失效时快速接管?
- 指定端口
- 替代端口 Correct answer.
- 根端口
- 边缘端口
Explanation
RSTP 定义了替代端口(Alternate Port)和备份端口,作为通往根桥的备份路径,可在根端口失效时立即切换而无需经过监听和学习状态。指定端口负责向网段转发流量,根端口是通往根桥的最优路径。边缘端口用于连接终端主机,不参与拓扑收敛。
Question 8Network Fundamentals and Architecture
IPv6 中,路由器用来向链路上所有节点通告自身链路层地址的报文类型是什么?
- 路由器请求(RS)
- 邻居通告(NA) Correct answer.
- 路由器通告(RA)
- 邻居请求(NS)
Explanation
IPv6 使用 NDP 替代 ARP,其中邻居通告(NA)用于向邻居通告自己的链路层地址或响应邻居请求。路由器在收到邻居请求后以 NA 回应,也可主动发送。邻居请求用于查询对端地址,路由器通告用于分发前缀和默认网关等信息。
Question 9Network Fundamentals and Architecture
某公司分配到 10.0.0.0/22 地址块,需要划分为多个 /26 子网。最多可划分出多少个 /26 子网?
- 16 Correct answer.
- 32
- 4
- 8
Explanation
前缀从 /22 延长到 /26,借用了 4 位作为子网位,因此子网数量为 2 的 4 次方,即 16 个。每个 /26 子网包含 64 个地址,其中 62 个可用主机地址。可用地址总量为 1024,除以 64 同样得到 16。
Question 10Network Fundamentals and Architecture
NAT 中的端口地址转换(PAT)使多台内部主机共享一个公网 IP 地址时,依靠什么来区分不同会话?
- 源 MAC 地址
- IP 首部中的 DSCP 字段
- IP 首部中的 TTL 值
- 传输层源端口号 Correct answer.
Explanation
PAT 在转换源 IP 地址的同时改写传输层源端口号,并在转换表中维护内部地址端口与外部端口的映射关系。返回流量依据目的端口号被还原并转发到正确的内部主机。MAC 地址和 TTL、DSCP 字段都不用于区分会话。
Question 11Network Fundamentals and Architecture
一台 PC 的 IP 地址为 172.16.5.20/28,默认网关被配置为 172.16.5.17。该配置会导致什么问题?
- 网关地址是子网广播地址,冲突
- 网关地址与 PC 不在同一子网,PC 无法使用该网关 Correct answer.
- PC 的地址是网络地址,不能使用
- 配置完全正确,可以正常通信
Explanation
/28 的子网块大小为 16,172.16.5.20 所在子网为 172.16.5.16 至 172.16.5.31,可用主机范围是 .17 至 .30。网关 172.16.5.17 实际上在该子网内,因此该配置本身可用。若网关被配置为 172.16.5.33 则超出子网范围,PC 将无法与其通信。
Question 12Network Fundamentals and Architecture
关于 TCP 与 UDP 的对比,下列哪项描述准确?
- UDP 提供重传机制而 TCP 不提供
- TCP 是无连接的而 UDP 面向连接
- TCP 不执行流量控制
- UDP 首部开销更小且不保证可靠交付 Correct answer.
Explanation
UDP 首部固定为 8 字节,仅包含源端口、目的端口、长度和校验和,不提供确认、重传或拥塞控制。TCP 面向连接,通过序列号、确认和滑动窗口实现可靠传输与流量控制。因此 UDP 以更低开销换取更低的可靠性保证。
Question 13Network Fundamentals and Architecture
在 Cisco 设备上,将交换机端口配置为接入 VLAN 20 的命令序列中,哪一条是必需的?
- ip address 10.0.0.1 255.255.255.0
- switchport access vlan 20 Correct answer.
- switchport mode trunk
- encapsulation dot1q 20
Explanation
在接口配置模式下,switchport access vlan 20 将端口划入 VLAN 20 作为接入端口。若端口当前为动态模式,还需用 switchport mode access 固定为接入模式。trunk 命令用于干道端口,dot1q 封装和 IP 地址命令用于路由器子接口。
Question 14Network Fundamentals and Architecture
一台主机通过 DHCP 获取地址时,发出的第一个报文 DHCP Discover 使用什么目的地址?
- 224.0.0.1
- 0.0.0.0
- 127.0.0.1
- 255.255.255.255 Correct answer.
Explanation
客户端此时尚无 IP 地址,DHCP Discover 以源地址 0.0.0.0 和目的地址 255.255.255.255 进行广播,以便本地链路上的 DHCP 服务器接收。若存在中继代理,则由中继将请求转发到其他网段的服务器。127.0.0.1 是环回地址,224.0.0.1 用于本地子网组播。
Question 15Network Fundamentals and Architecture
静态路由配置为 ip route 0.0.0.0 0.0.0.0 203.0.113.1 时,该路由代表什么?
- 一条拒绝流量的空路由
- 一条指向特定主机的路由
- 一条默认路由 Correct answer.
- 一条仅用于本地子网的路由
Explanation
目的网络 0.0.0.0 配合掩码 0.0.0.0 匹配任意目的地址,因此构成默认路由,用于转发在路由表中找不到更精确匹配的流量。其下一跳为 203.0.113.1。空路由通常使用 Null0 接口,主机路由使用 /32 掩码。
Question 16Network Fundamentals and Architecture
某接口配置为全双工,但对端接口配置为半双工,最可能出现的现象是什么?
- 带宽自动协商为两倍
- 出现冲突计数、CRC 错误和性能下降 Correct answer.
- 接口自动切换为三层模式
- 链路完全无法建立
Explanation
双工不匹配时链路通常仍能建立,但一端不再使用 CSMA/CD 而另一端仍会检测冲突,导致晚冲突、FCS 与 CRC 错误以及帧丢失。表现为吞吐下降和错误计数上升。建议两端统一为自动协商或手动设置相同双工模式。
Question 17Network Fundamentals and Architecture
在 OSPF 单区域网络中,路由器使用什么作为 Router ID 的默认选择依据?
- 最高的物理接口 MAC 地址
- 最低的接口 IP 地址
- 最低的进程号
- 最高的环回接口 IP 地址 Correct answer.
Explanation
OSPF 优先使用手动配置的 router-id;若未配置,则选择活动环回接口中最高的 IP 地址;若无环回接口,则选择活动物理接口中最高的 IP 地址。Router ID 采用点分十进制格式,与进程号无关。
Question 18Network Fundamentals and Architecture
一台交换机上配置了多个 VLAN,若要在一条链路上承载多个 VLAN 的流量,应将该链路配置为什么类型?
- 干道链路 Correct answer.
- 接入链路
- 端口通道
- 环回接口
Explanation
干道链路使用 802.1Q 标签在单条物理链路上承载多个 VLAN 的帧,标签中的 VLAN ID 用于区分所属 VLAN。接入链路只属于一个 VLAN,通常连接终端设备。端口通道用于捆绑多条链路增加带宽与冗余。
Question 19Network Fundamentals and Architecture
某企业网络需要为语音流量提供优先转发。在二层交换机上,通常依据帧中的哪个字段进行优先级标记?
- 802.1Q 标签中的 PCP 字段 Correct answer.
- 以太网帧中的源 MAC 地址
- TCP 首部中的窗口字段
- IP 首部中的总长度字段
Explanation
802.1Q 标签包含 3 位的优先级码点(PCP)字段,可取 0 至 7,用于在二层标识帧的 CoS 优先级。交换机据此将语音帧放入优先队列。源 MAC 地址、IP 总长度和 TCP 窗口都不携带二层优先级信息。
Question 20Network Fundamentals and Architecture
IPv4 首部中的 TTL 字段在数据包每经过一台路由器时如何处理?
- 减少 1 Correct answer.
- 增加 1
- 保持不变
- 随机重置
Explanation
路由器转发数据包时将 TTL 减 1,当 TTL 减至 0 时丢弃该包并通常返回 ICMP 超时消息,从而防止数据包在网络中无限循环。traceroute 工具正是利用逐跳递增 TTL 来发现路径。TTL 不会增加或保持原值。
Question 21Network Fundamentals and Architecture
主机 A 与主机 B 位于同一子网,A 的 ARP 缓存中已有 B 的 MAC 地址。A 向 B 发送数据时,以太网帧的目的 MAC 地址应是什么?
- B 的 MAC 地址 Correct answer.
- 默认网关的 MAC 地址
- A 自己的 MAC 地址
- 广播地址 FF:FF:FF:FF:FF:FF
Explanation
同一子网内的通信不需要经过网关,A 直接将帧的目的 MAC 设置为 B 的 MAC 地址,目的 IP 同样为 B 的地址。只有当目的地址位于其他子网时,帧的目的 MAC 才会是默认网关。广播地址仅在 ARP 请求等场景使用。
Question 22Network Fundamentals and Architecture
在 STP 选举根桥的过程中,优先级相同时依据什么来决出胜负?
- 交换机的型号
- 交换机的桥 MAC 地址,较小者优先 Correct answer.
- 接口的 IP 地址,较大者优先
- 端口数量,较多者优先
Explanation
STP 首先比较网桥优先级,数值最小者成为根桥;若优先级相同,则比较网桥 MAC 地址,较小者胜出。因此将根桥优先级设为较低值是最可靠的指定根桥方式。IP 地址和端口数量不参与根桥选举。
Question 23Network Fundamentals and Architecture
一个网络管理员观察到某条链路上出现大量小于 64 字节的以太网帧。这些帧最可能是什么?
- 正常的 TCP 数据帧
- VLAN 标签帧
- IPv6 分片帧
- 冲突产生的残帧 Correct answer.
Explanation
以太网最小帧长为 64 字节(不含前导码),小于该长度的帧称为残帧(runt),通常由冲突导致发送被中断而产生。大量残帧提示存在双工不匹配或冲突域过大。正常的 TCP、VLAN 和 IPv6 帧都满足最小长度要求。
Question 24Network Fundamentals and Architecture
使用 CIDR 进行路由汇总时,将 172.16.0.0/24 至 172.16.3.0/24 四条路由汇总为一条,结果是什么?
- 172.16.0.0/21
- 172.16.0.0/22 Correct answer.
- 172.16.0.0/23
- 172.16.0.0/24
Explanation
这四条 /24 路由的第三个字节分别为 0、1、2、3,其二进制高 6 位相同,仅低 2 位变化,因此共同前缀为 /22。汇总结果为 172.16.0.0/22,覆盖 172.16.0.0 至 172.16.3.255。汇总前缀必须同时包含全部明细路由且不遗漏。
Question 25Network Fundamentals and Architecture
在分层网络设计模型中,负责连接终端设备并提供接入端口的是哪一层?
- 接入层 Correct answer.
- 汇聚层
- 分布层
- 核心层
Explanation
接入层直接连接终端用户设备,提供端口密度、接入 VLAN 划分和端口安全等功能。分布层(汇聚层)负责策略实施和路由汇总,核心层提供高速骨干转发。三层模型各司其职,接入层是用户进入网络的边界。
Question 26Network Fundamentals and Architecture
一台主机需要向本地子网之外的目的地发送数据包时,会将以太网帧的目的 MAC 地址设置为下列哪一项?
- 目的主机的 MAC 地址
- 广播地址 FF:FF:FF:FF:FF:FF
- 默认网关接口的 MAC 地址 Correct answer.
- 本机网卡的 MAC 地址
Explanation
当目的 IPv4 地址不在本地子网内时,主机必须把帧交给默认网关进行路由。因此帧的目的 MAC 是网关接口的 MAC,而目的 IP 仍保持为最终目的主机的地址。主机通过 ARP 解析网关地址来获得该 MAC。
Question 27Network Fundamentals and Architecture
在 Cisco IOS 中,要查看接口的 IP 地址、双工状态以及输入输出错误计数,应使用哪条命令?
- show arp
- show version
- show ip route
- show interfaces Correct answer.
Explanation
show interfaces 输出每个接口的线路协议状态、IP 地址、带宽、双工、MTU 以及输入输出错误、丢弃等统计信息,是排查二层和一层问题的首选命令。其他命令关注的是路由表、ARP 表或设备软硬件版本。
Question 28Network Fundamentals and Architecture
一台路由器接口配置为 192.168.10.1/26。该接口所在子网的广播地址是什么?
- 192.168.10.127
- 192.168.10.31
- 192.168.10.63 Correct answer.
- 192.168.10.64
Explanation
/26 的掩码为 255.255.255.192,子网块大小为 64。192.168.10.1 落在 192.168.10.0 至 192.168.10.63 这个子网内,因此广播地址是该范围最后一个地址 192.168.10.63。
Question 29Network Fundamentals and Architecture
某主机地址为 10.20.30.202/29。该主机可用的默认网关地址中,下列哪一个是有效的?
- 10.20.30.201 Correct answer.
- 10.20.30.192
- 10.20.30.208
- 10.20.30.207
Explanation
/29 的块大小为 8,10.20.30.202 位于 10.20.30.200 至 10.20.30.207 子网。网络地址是 .200,广播地址是 .207,可用主机范围为 .201 至 .206。四个选项中只有 10.20.30.201 是本子网内可分配且不同于主机地址的地址,可以作为默认网关地址。
Question 30Network Fundamentals and Architecture
在 IPv6 中,主机通过无状态地址自动配置(SLAAC)生成接口标识时,默认依赖路由器通告中的哪个标志位来获取网络前缀?
- O 标志(其他配置)
- L 标志(本地链路)
- A 标志(自治地址) Correct answer.
- M 标志(受管配置)
Explanation
路由器通告中的 A 标志表示该前缀可用于无状态自动配置,主机将前缀与自身生成的接口标识组合成完整地址。M 标志指示主机应使用 DHCPv6 获取地址,O 标志指示通过 DHCPv6 获取其他参数。
Question 31Network Fundamentals and Architecture
两台交换机通过一条链路互连,运行 802.1Q Trunk。若本端配置为 Trunk 且允许 VLAN 10,而对端配置为 Access 且属于 VLAN 10,最可能的结果是什么?
- VLAN 10 流量正常通过,其他 VLAN 被丢弃
- VLAN 10 流量可通,但 Trunk 端会因收到未标记帧而将其归入本征 VLAN Correct answer.
- 链路无法建立,两端端口均进入 err-disabled
- 所有 VLAN 流量均以标记形式通过
Explanation
Trunk 端发送的帧带 802.1Q 标记,Access 端会丢弃带标记的帧;Access 端发送的未标记帧到达 Trunk 端后被归入本征 VLAN(默认 VLAN 1)。因此只有本征 VLAN 与对端 Access VLAN 一致时通信才可能成立,配置不匹配会造成单向或中断的连通性。
Question 32Network Fundamentals and Architecture
在 Cisco 交换机上,要把端口 FastEthernet0/1 配置为 Trunk 并指定本征 VLAN 为 99,必须包含哪条命令?
- switchport nonegotiate
- switchport access vlan 99
- switchport trunk native vlan 99 Correct answer.
- switchport mode access
Explanation
本征 VLAN 通过接口配置模式下的 switchport trunk native vlan 99 指定,未标记帧将归属该 VLAN。同时还需 switchport mode trunk 使端口成为 Trunk。switchport nonegotiate 只关闭 DTP 协商,不设置本征 VLAN。
Question 33Network Fundamentals and Architecture
一台路由器配置了 ip route 10.1.0.0 255.255.0.0 192.0.2.1 和 ip route 10.1.5.0 255.255.255.0 192.0.2.2。发往 10.1.5.77 的数据包将使用哪条路由?
- 10.1.0.0/16 静态路由
- 10.1.5.0/24 静态路由 Correct answer.
- 两条路由等价负载均衡
- 默认路由
Explanation
路由器按最长前缀匹配选择路由。10.1.5.0/24 的掩码长度大于 10.1.0.0/16,且两者都覆盖目的地址,因此 /24 路由被选中。管理距离相同的情况下,前缀长度是决定性因素。
Question 34Network Fundamentals and Architecture
运行 OSPF 的路由器在什么条件下会进入 2-Way 邻居状态而不再继续形成完全邻接?
- 两端接口 MTU 不一致
- 两端 Router ID 相同
- 两端 Hello 定时器一致
- 两端接口处于同一广播网段但都不是 DR 或 BDR Correct answer.
Explanation
在广播多路访问网络上,只有 DR 和 BDR 与其他所有路由器建立完全邻接,两台 DROther 之间停留在 2-Way 状态是正常现象。MTU 不一致会导致 ExStart/Exchange 阶段卡住,Router ID 冲突会造成邻居关系反复建立与断开。
Question 35Network Fundamentals and Architecture
EtherChannel 使用 LACP 时,下列哪组参数必须在所有成员链路上保持一致才能成功捆绑?
- 端口速率与双工、VLAN 成员关系、Trunk 配置 Correct answer.
- 仅 VLAN 编号
- 仅 STP 优先级
- 仅端口速率
Explanation
LACP 要求成员端口的速率、双工、VLAN 分配、Trunk 模式与本征 VLAN 等参数一致,否则端口会被从捆绑中排除或通道无法形成。参数不一致是 EtherChannel 故障最常见的原因之一。
Question 36Network Fundamentals and Architecture
一台主机发送目的地址为 255.255.255.255 的 UDP 数据报,该数据报的最终去向是什么?
- 被限制在本地链路上,不被路由器转发 Correct answer.
- 被转换为组播后转发
- 被丢弃并返回 ICMP 重定向
- 被路由器转发到所有子网
Explanation
255.255.255.255 是受限广播地址,路由器不会转发以该地址为目的地的数据报,因此流量只停留在本地广播域。这与定向子网广播(如 192.168.1.255)不同,后者在特定条件下可被转发。
Question 37Network Fundamentals and Architecture
某工程师用 ping 测试时发现首包丢失,后续包均正常。最可能的原因是什么?
- 链路双工不匹配
- 目的主机禁用了 ICMP Echo Reply
- 路由表缺少目的网段条目
- ARP 解析需要时间,首包在解析完成前被丢弃 Correct answer.
Explanation
主机在发送前需要解析下一跳的 MAC 地址,ARP 请求与应答期间到达的首个数据包可能因缓存未就绪而被丢弃,表现为首包超时。后续数据包在 ARP 缓存建立后正常转发。
Question 38Network Fundamentals and Architecture
在标准 STP 中,一台非根交换机上某个端口既不是根端口,也不是指定端口。该端口处于什么状态?
- 学习状态
- 转发状态
- 阻塞状态 Correct answer.
- 禁用状态
Explanation
STP 中每个非根交换机选出一个根端口,每条网段选出一个指定端口,其余端口均为非指定端口并进入阻塞状态,以防止环路。阻塞端口仍接收 BPDU,但不转发用户数据。
Question 39Network Fundamentals and Architecture
某公司需要为 500 台主机分配地址,并要求每个子网浪费尽量少。使用 VLSM 时,最合适的子网掩码是什么?
- /24
- /22
- /25
- /23 Correct answer.
Explanation
/23 提供 510 个可用主机地址,足以容纳 500 台主机且浪费最小。/22 提供 1022 个地址,浪费较多;/24 只有 254 个可用地址,无法满足需求。VLSM 的核心就是按实际主机数选择最小够用的子网。
Question 40Network Fundamentals and Architecture
一台路由器收到目的 IP 为 224.0.0.9 的数据包。该地址属于哪一类地址,其典型用途是什么?
- 链路本地组播地址,用于 RIPv2 路由更新 Correct answer.
- 环回地址,用于本机测试
- 全局单播地址,用于公网通信
- 私有地址,用于内部网络
Explanation
224.0.0.0/24 为链路本地组播范围,TTL 默认为 1,不被路由器转发。224.0.0.9 是 RIPv2 使用的组播地址,用于向邻居发送路由更新。
Question 41Routing and Switching
A switch port configured with the access VLAN 30 receives an untagged frame. What does the switch do with that frame when it forwards it out another access port in VLAN 30?
- It forwards the frame with an 802.1Q tag containing VLAN 30.
- It forwards the frame with a tag containing the native VLAN of the egress port.
- It drops the frame because ingress frames on access ports must be tagged.
- It forwards the frame untagged because the egress port is an access port. Correct answer.
Explanation
Access ports belong to a single VLAN and present frames untagged to attached end devices. Internal VLAN membership is tracked by the switch, so the tag is only applied on trunk links. The egress access port therefore strips any tag before transmission.
Question 42Routing and Switching
Which statement describes the purpose of a trunk link between two switches?
- It provides redundant power to the neighboring switch.
- It assigns a single VLAN to every connected host automatically.
- It carries traffic for multiple VLANs by tagging frames with a VLAN identifier. Correct answer.
- It converts untagged frames into routed packets between VLANs.
Explanation
A trunk aggregates traffic for many VLANs over one physical link. With 802.1Q, each frame carries a 12-bit VLAN ID so the receiving switch can place it in the correct broadcast domain. Access ports, in contrast, serve only one VLAN.
Question 43Routing and Switching
A frame arrives on a trunk port with no 802.1Q tag. On which VLAN does the switch classify it?
- The native VLAN configured on that trunk port. Correct answer.
- The highest-numbered VLAN allowed on the trunk.
- The voice VLAN configured on the port.
- VLAN 1 always, regardless of configuration.
Explanation
802.1Q defines a native VLAN for untagged traffic on a trunk. The switch associates untagged frames with the configured native VLAN, which defaults to VLAN 1 but can be changed. Both ends of the trunk should agree on this value.
Question 44Routing and Switching
Which protocol prevents Layer 2 switching loops by electing a root bridge and blocking redundant paths?
- Link Aggregation Control Protocol
- Dynamic Host Configuration Protocol
- Spanning Tree Protocol Correct answer.
- Address Resolution Protocol
Explanation
STP builds a loop-free logical topology by electing a root bridge and placing redundant ports into blocking state. This prevents broadcast storms caused by physical loops. LACP bundles links but does not by itself remove loops across multiple switches.
Question 45Routing and Switching
In a Spanning Tree topology, all bridge priorities are equal. Which value determines the root bridge election?
- The switch with the most active ports.
- The lowest bridge ID, where the bridge ID includes the MAC address as a tiebreaker. Correct answer.
- The highest bridge ID, where the bridge ID includes the MAC address as a tiebreaker.
- The switch with the highest uptime.
Explanation
STP elects the bridge with the lowest bridge ID as root. The bridge ID combines the configurable priority and the switch MAC address, so the lowest MAC breaks a priority tie. Port count and uptime are not election criteria.
Question 46Routing and Switching
What is the effect of configuring PortFast on a switch access port connected to a workstation?
- The port is excluded from the spanning tree and forwards all BPDUs.
- The port becomes a trunk carrying all VLANs.
- The port moves to forwarding immediately, skipping listening and learning states. Correct answer.
- The port is placed in err-disabled state until a BPDU is received.
Explanation
PortFast lets an edge port transition directly to forwarding, avoiding the usual 30-second delay for end hosts. It should be used only on ports connected to single hosts. BPDU Guard is often paired with it to protect against loops.
Question 47Routing and Switching
Which statement about an EtherChannel is correct?
- It operates only between a switch and a router, not between two switches.
- It bundles multiple physical links into one logical link whose bandwidth is the sum of the members. Correct answer.
- It provides a single active link while all other members stay in blocking state.
- It requires all member ports to be in different VLANs.
Explanation
An EtherChannel aggregates parallel links so that STP treats them as one logical interface. Traffic is load-balanced across members using a hash, and total throughput approximates the sum of member link speeds. All members must share consistent configuration.
Question 48Routing and Switching
Which protocol does a Layer 3 switch use to build its routing table from neighboring routers?
- STP
- LACP
- VTP
- OSPF Correct answer.
Explanation
OSPF is a link-state routing protocol that exchanges topology information so routers can compute best paths. STP, VTP, and LACP are Layer 2 mechanisms and do not populate a routing table. A Layer 3 switch runs routing protocols just like a router.
Question 49Routing and Switching
A router receives a packet destined for 192.168.10.77. Its routing table contains 192.168.10.0/24 via 10.0.0.1 and 0.0.0.0/0 via 10.0.0.2. Which next hop is used?
- 10.0.0.2, because the default route is preferred.
- Both next hops, because the router load-balances all matches.
- 10.0.0.1, because the /24 route is the longest match. Correct answer.
- Neither, because the packet is dropped as ambiguous.
Explanation
Routers select the most specific matching prefix, so the /24 route wins over the /0 default route. The default route is used only when no more specific match exists. Load balancing applies only among routes with equal prefix length and metric.
Question 50Routing and Switching
What is the administrative distance of a directly connected interface route on a Cisco router?
- 1
- 0 Correct answer.
- 90
- 110
Explanation
Administrative distance ranks the trustworthiness of route sources. Connected routes have an AD of 0, static routes default to 1, OSPF uses 110, and eBGP uses 20. Lower values are preferred when multiple sources offer the same prefix.