CCNA
200-301Cisco Certified Network Associate・大綱 v1.1・考試 120 分鐘
CCNA 200-301
依 Cisco 官方考試大綱原創整理 1971 道選擇題、200 道配對題、42 個實作題。選擇題與配對題都附詳解,實作題附拓樸、參考設定與驗證指令。點下方交換器的埠直接看那個主題,或在主控台輸入關鍵字。
CON0 con0 is now available
Press RETURN to get started.
CON0> show exam
CCNA 200-301 選擇 1971 配對 200 實作 42
Enter 前往結果・Tab 補完・Esc 清除
比重來自 Cisco 公布的考試大綱。從比重高的領域開始準備最划算;點任一列,直接看那個領域的題目。
Cisco Certified Network Associate・大綱 v1.1・考試 120 分鐘
題目載入中…
沒有符合條件的選擇題。換個關鍵字,或把難度、子項目改回「全部」。
每題是一個情境:先看拓樸與任務,自己在 Packet Tracer(或 CML/EVE-NG)做做看;卡住了再展開「參考設定」對照,最後用「驗證」的指令確認自己做對了。
小型辦公室只有一台 24 埠交換器。業務部與工程部要分到不同 VLAN,沒用到的埠要停用,並放進一個不會通往任何地方的 VLAN。
configure terminal
vlan 10
name SALES
vlan 20
name ENG
vlan 999
name BLACKHOLE
!
interface range FastEthernet0/1 - 10
switchport mode access
switchport access vlan 10
!
interface range FastEthernet0/11 - 20
switchport mode access
switchport access vlan 20
!
interface range FastEthernet0/21 - 24
switchport mode access
switchport access vlan 999
shutdown
end
write memoryshow vlan briefshow interfaces statusshow interfaces FastEthernet0/1 switchport兩台交換器之間用一條 Gigabit 鏈路互連,要承載 VLAN 10、20,並把原生 VLAN 改成沒有使用者的 VLAN 99,關閉 DTP 協商。
configure terminal
vlan 10
name SALES
vlan 20
name ENG
vlan 99
name NATIVE
!
interface GigabitEthernet0/1
switchport mode trunk
switchport nonegotiate
switchport trunk native vlan 99
switchport trunk allowed vlan 10,20,99
endconfigure terminal
vlan 10
name SALES
vlan 20
name ENG
vlan 99
name NATIVE
!
interface GigabitEthernet0/1
switchport mode trunk
switchport nonegotiate
switchport trunk native vlan 99
switchport trunk allowed vlan 10,20,99
endshow interfaces trunkshow interfaces GigabitEthernet0/1 switchportshow cdp neighborsVLAN 10 與 VLAN 20 的主機要能互通。路由器只有一個介面接到交換器,用子介面為每個 VLAN 提供預設閘道。
configure terminal
interface GigabitEthernet0/0
no shutdown
!
interface GigabitEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
!
interface GigabitEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
endconfigure terminal
vlan 10
vlan 20
!
interface GigabitEthernet0/1
switchport mode trunk
!
interface FastEthernet0/1
switchport mode access
switchport access vlan 10
!
interface FastEthernet0/2
switchport mode access
switchport access vlan 20
endshow ip interface briefshow ip route connectedping 192.168.20.10(從 PC1)改用 L3 交換器做 VLAN 間路由:每個 VLAN 一個 SVI 當閘道,上行埠改成路由埠接到邊界路由器,並設定預設路由。
configure terminal
ip routing
vlan 10
vlan 20
!
interface Vlan10
ip address 192.168.10.1 255.255.255.0
no shutdown
!
interface Vlan20
ip address 192.168.20.1 255.255.255.0
no shutdown
!
interface GigabitEthernet1/0/1
switchport mode access
switchport access vlan 10
!
interface GigabitEthernet1/0/2
switchport mode access
switchport access vlan 20
!
interface GigabitEthernet1/0/24
no switchport
ip address 10.0.0.1 255.255.255.252
no shutdown
!
ip route 0.0.0.0 0.0.0.0 10.0.0.2
endconfigure terminal
interface GigabitEthernet0/0
ip address 10.0.0.2 255.255.255.252
no shutdown
!
ip route 192.168.10.0 255.255.254.0 10.0.0.1
endshow ip interface brief | include Vlanshow ip routeping 10.0.0.2 source Vlan10兩台交換器之間的兩條 Gigabit 鏈路綁成一條 Port-channel,提高頻寬並提供備援,綁好之後設為 trunk。
configure terminal
interface range GigabitEthernet0/1 - 2
channel-group 1 mode active
!
interface Port-channel1
switchport mode trunk
endconfigure terminal
interface range GigabitEthernet0/1 - 2
channel-group 1 mode passive
!
interface Port-channel1
switchport mode trunk
endshow etherchannel summaryshow lacp neighborshow interfaces trunk三台交換器形成三角形備援。指定 SW1 為 VLAN 10、20 的根橋、SW2 為次要根橋;接使用者的埠開啟 PortFast 與 BPDU Guard。
configure terminal
spanning-tree mode rapid-pvst
spanning-tree vlan 10,20 root primary
endconfigure terminal
spanning-tree mode rapid-pvst
spanning-tree vlan 10,20 root secondary
endconfigure terminal
spanning-tree mode rapid-pvst
!
interface range FastEthernet0/1 - 20
switchport mode access
spanning-tree portfast
spanning-tree bpduguard enable
!
errdisable recovery cause bpduguard
errdisable recovery interval 300
endshow spanning-tree vlan 10show spanning-tree interface FastEthernet0/1 detailshow spanning-tree summary三台路由器串接,全部放在 Area 0。手動指定 Router ID、調整參考頻寬,接使用者的 LAN 介面設為被動介面。
configure terminal
interface GigabitEthernet0/0
ip address 192.168.1.1 255.255.255.0
no shutdown
interface GigabitEthernet0/1
ip address 10.0.12.1 255.255.255.252
ip ospf network point-to-point
no shutdown
!
router ospf 1
router-id 1.1.1.1
auto-cost reference-bandwidth 10000
passive-interface GigabitEthernet0/0
network 192.168.1.0 0.0.0.255 area 0
network 10.0.12.0 0.0.0.3 area 0
endconfigure terminal
interface GigabitEthernet0/1
ip address 10.0.12.2 255.255.255.252
ip ospf network point-to-point
no shutdown
interface GigabitEthernet0/2
ip address 10.0.23.1 255.255.255.252
ip ospf network point-to-point
no shutdown
!
router ospf 1
router-id 2.2.2.2
auto-cost reference-bandwidth 10000
network 10.0.12.0 0.0.0.3 area 0
network 10.0.23.0 0.0.0.3 area 0
endconfigure terminal
interface GigabitEthernet0/0
ip address 192.168.3.1 255.255.255.0
no shutdown
interface GigabitEthernet0/2
ip address 10.0.23.2 255.255.255.252
ip ospf network point-to-point
no shutdown
!
router ospf 1
router-id 3.3.3.3
auto-cost reference-bandwidth 10000
passive-interface GigabitEthernet0/0
network 192.168.3.0 0.0.0.255 area 0
network 10.0.23.0 0.0.0.3 area 0
endshow ip ospf neighborshow ip route ospfshow ip ospf interface brief總部路由器有兩條對外線路:ISP-A 為主、ISP-B 為備援。另外要用靜態路由連到分店的 LAN。
configure terminal
interface GigabitEthernet0/0
ip address 10.1.1.1 255.255.255.252
no shutdown
interface GigabitEthernet0/1
ip address 203.0.113.2 255.255.255.252
no shutdown
interface GigabitEthernet0/2
ip address 198.51.100.2 255.255.255.252
no shutdown
!
ip route 0.0.0.0 0.0.0.0 203.0.113.1
ip route 0.0.0.0 0.0.0.0 198.51.100.1 10
ip route 172.16.50.0 255.255.255.0 10.1.1.2
endshow ip route staticinterface GigabitEthernet0/1 → shutdownshow ip route 0.0.0.0辦公室路由器同時擔任 DHCP 伺服器,並用 PAT 讓整個 192.168.1.0/24 共用對外介面的 IP 上網。
configure terminal
ip dhcp excluded-address 192.168.1.1 192.168.1.20
ip dhcp pool LAN
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 8.8.8.8 1.1.1.1
lease 7
!
interface GigabitEthernet0/0
ip address 192.168.1.1 255.255.255.0
ip nat inside
no shutdown
!
interface GigabitEthernet0/1
ip address 203.0.113.2 255.255.255.252
ip nat outside
no shutdown
!
access-list 1 permit 192.168.1.0 0.0.0.255
ip nat inside source list 1 interface GigabitEthernet0/1 overload
ip route 0.0.0.0 0.0.0.0 203.0.113.1
endshow ip dhcp bindingshow ip nat translationsshow ip nat statistics訪客 VLAN 30(192.168.30.0/24)只能用 HTTP/HTTPS 存取伺服器 172.16.10.10,不能 SSH,也不能連伺服器網段的其他主機;其他流量(例如上網)照常放行。
configure terminal
ip access-list extended GUEST-IN
remark GUEST-WEB-ONLY
permit tcp 192.168.30.0 0.0.0.255 host 172.16.10.10 eq 80
permit tcp 192.168.30.0 0.0.0.255 host 172.16.10.10 eq 443
deny ip 192.168.30.0 0.0.0.255 172.16.10.0 0.0.0.255
permit ip any any
!
interface GigabitEthernet0/0.30
ip access-group GUEST-IN in
endshow access-lists GUEST-INshow ip interface GigabitEthernet0/0.30從訪客 PC 測試交換器改用 SSH 管理、關閉 Telnet;使用者埠最多只能學 2 個 MAC,違規時丟棄並記錄,但不關閉埠。
configure terminal
hostname SW1
ip domain-name lab.local
crypto key generate rsa general-keys modulus 2048
ip ssh version 2
username admin privilege 15 secret Lab#Admin2026
enable secret Lab#Enable2026
service password-encryption
!
interface Vlan99
ip address 192.168.99.11 255.255.255.0
no shutdown
ip default-gateway 192.168.99.1
!
line vty 0 15
login local
transport input ssh
exec-timeout 10 0
!
interface FastEthernet0/5
switchport mode access
switchport access vlan 10
switchport port-security
switchport port-security maximum 2
switchport port-security mac-address sticky
switchport port-security violation restrict
endshow ip sshshow port-security interface FastEthernet0/5show port-security address兩台路由器之間用 IPv6 互連,兩端各有一個 LAN。主機以 SLAAC 自動取得位址,路由器以靜態路由互通。
configure terminal
ipv6 unicast-routing
!
interface GigabitEthernet0/0
ipv6 address 2001:DB8:1:1::1/64
ipv6 address FE80::1 link-local
no shutdown
!
interface GigabitEthernet0/1
ipv6 address 2001:DB8:1:12::1/64
no shutdown
!
ipv6 route 2001:DB8:1:2::/64 2001:DB8:1:12::2
endconfigure terminal
ipv6 unicast-routing
!
interface GigabitEthernet0/0
ipv6 address 2001:DB8:1:2::1/64
no shutdown
!
interface GigabitEthernet0/1
ipv6 address 2001:DB8:1:12::2/64
no shutdown
!
ipv6 route ::/0 2001:DB8:1:12::1
endshow ipv6 interface briefshow ipv6 route staticping 2001:DB8:1:2::1(從 R1)這個條件下沒有實作題。
輸入位址、拖動前綴長度,網路位元與主機位元會即時亮給你看。也可以直接輸入 192.168.1.10/26 這種格式。
位址格式不正確,請輸入四段 0~255 的數字,例如 10.1.1.1。
考試最常考的六個協定:運作原理,以及設定與驗證要用的指令。
一組依序排列的 permit/deny 規則,路由器用它在介面上過濾封包,或替 NAT 等功能挑出要處理的流量。
host 10.1.1.1 等於 0.0.0.0;any 等於 255.255.255.255。access-class 把標準 ACL 套在 VTY 線路上,而不是套在介面。access-list 10 permit 192.168.1.0 0.0.0.255access-list 10 deny host 192.168.1.50access-list 110 permit tcp 10.1.1.0 0.0.0.255 host 10.2.2.10 eq 443ip access-list extended WEB-ONLY15 deny ip any host 10.2.2.20remark Block guest VLANip access-group 110 inaccess-class 5 inshow access-listsshow ip interface g0/0clear access-list counters! Extended ACL near the source: block Telnet from LAN, allow everything else
ip access-list extended LAN-IN
10 deny tcp 192.168.10.0 0.0.0.255 any eq 23
20 permit ip any any
!
interface GigabitEthernet0/0
ip address 192.168.10.1 255.255.255.0
ip access-group LAN-IN in
!
! Standard ACL for management access to the router
access-list 5 permit host 192.168.99.10
line vty 0 4
access-class 5 in
transport input ssh
考試重點:沒有任何 permit 的 ACL 會因為隱含 deny 而擋掉全部流量。萬用遮罩也要看清楚,/24 是 0.0.0.255 而不是 255.255.255.0。
在自治系統(AS)之間交換路由的路徑向量協定,是整個網際網路的骨幹。
network 指令不是啟用介面,而是宣告路由;只有路由表中已有完全相符(網段與遮罩都一樣)的路由時才會宣告。router bgp 65001bgp router-id 1.1.1.1neighbor 198.51.100.2 remote-as 65002neighbor 10.0.0.2 update-source Loopback0neighbor 198.51.100.2 description ISP-Anetwork 203.0.113.0 mask 255.255.255.0ip route 203.0.113.0 255.255.255.0 Null0show ip bgp summaryshow ip bgpshow ip bgp neighborsshow ip route bgpclear ip bgp * soft! R1 in AS 65001 peers with the ISP in AS 65002
interface GigabitEthernet0/1
ip address 198.51.100.1 255.255.255.252
!
ip route 203.0.113.0 255.255.255.0 Null0
!
router bgp 65001
bgp router-id 1.1.1.1
neighbor 198.51.100.2 remote-as 65002
neighbor 198.51.100.2 description ISP-A
network 203.0.113.0 mask 255.255.255.0
考試重點:network 指令的遮罩若與路由表不完全相符,就什麼也不會宣告。記住 AD:eBGP 20 勝過 OSPF 110,但 iBGP 200 輸給所有 IGP。
開放標準的鏈路狀態協定:區域內每台路由器建立同一張拓樸圖,再用 SPF 算出成本最低的路徑。
router-id 指令 → 最高的 loopback IP → 最高的作用中實體介面 IP。auto-cost reference-bandwidth 調高。router ospf 1router-id 1.1.1.1network 10.1.1.0 0.0.0.255 area 0ip ospf 1 area 0passive-interface g0/0auto-cost reference-bandwidth 10000ip ospf cost 50ip ospf priority 100default-information originateshow ip ospf neighborshow ip ospf interface briefshow ip route ospfshow ip protocolsclear ip ospf process! Single-area OSPF
router ospf 1
router-id 1.1.1.1
auto-cost reference-bandwidth 10000
passive-interface GigabitEthernet0/0
network 192.168.1.0 0.0.0.255 area 0
network 10.0.12.0 0.0.0.3 area 0
default-information originate
!
interface GigabitEthernet0/1
ip address 10.0.12.1 255.255.255.252
ip ospf priority 100
!
ip route 0.0.0.0 0.0.0.0 203.0.113.1
考試重點:Hello/Dead、區域 ID、子網路遮罩不一致會建不起鄰居,但程序 ID 不同沒關係。DR 選舉不搶佔:之後加入的高優先權路由器,要等原 DR 故障或 OSPF 重設才會接手。
進階距離向量協定,以 DUAL 演算法預先備好無迴圈的備援路徑,故障時可立即切換。
variance 做不等成本負載平衡,但只限 Feasible Successor。router eigrp 100eigrp router-id 2.2.2.2network 10.0.0.0 0.0.0.255no auto-summarypassive-interface g0/0variance 2bandwidth 10000delay 100show ip eigrp neighborsshow ip eigrp topologyshow ip route eigrpshow ip protocols! EIGRP AS 100 on both routers
router eigrp 100
eigrp router-id 2.2.2.2
network 10.0.23.0 0.0.0.3
network 192.168.2.0 0.0.0.255
passive-interface GigabitEthernet0/0
no auto-summary
!
interface GigabitEthernet0/1
ip address 10.0.23.1 255.255.255.252
delay 100
考試重點:AS 號碼不同就建不起鄰居。只有 RD 嚴格小於 Successor 的 FD 才是 Feasible Successor,相等不算。
簡單的距離向量協定,選跳數最少的路徑,每 30 秒把整張路由表送給鄰居。
router ripversion 2network 192.168.1.0no auto-summarypassive-interface g0/0default-information originatetimers basic 30 180 180 240show ip route ripshow ip protocolsdebug ip rip! RIPv2 with classless updates
router rip
version 2
no auto-summary
network 10.0.0.0
network 192.168.3.0
passive-interface GigabitEthernet0/0
default-information originate
!
ip route 0.0.0.0 0.0.0.0 203.0.113.1
考試重點:16 跳即不可達。RIPv1 不帶子網路遮罩,VLSM 或不連續網路要用 RIPv2 並加 no auto-summary。
封包離開內部網路時,把私有位址改寫成公有位址,讓大量主機共用少數公有 IP。
ip nat inside(面向內網)或 ip nat outside(面向 ISP),只有在兩者之間穿越的流量才會轉譯。ip nat insideip nat outsideip nat inside source static 192.168.1.10 203.0.113.10access-list 1 permit 192.168.1.0 0.0.0.255ip nat pool PUB 203.0.113.20 203.0.113.30 netmask 255.255.255.0ip nat inside source list 1 pool PUBip nat inside source list 1 interface g0/1 overloadip nat inside source list 1 pool PUB overloadshow ip nat translationsshow ip nat statisticsclear ip nat translation *debug ip nat! PAT for the LAN plus a static NAT for a web server
interface GigabitEthernet0/0
ip address 192.168.1.1 255.255.255.0
ip nat inside
!
interface GigabitEthernet0/1
ip address 203.0.113.2 255.255.255.0
ip nat outside
!
access-list 1 permit 192.168.1.0 0.0.0.255
ip nat inside source list 1 interface GigabitEthernet0/1 overload
ip nat inside source static 192.168.1.10 203.0.113.10
!
ip route 0.0.0.0 0.0.0.0 203.0.113.1
考試重點:介面漏設 ip nat inside/outside 是 NAT 沒作用最常見的原因。沒加 overload 時,動態 NAT 的位址池用完後新主機就連不出去。
考前最常翻的數字與對照,全部整理在這裡。
| 來源 | AD |
|---|---|
| 直連介面 | 0 |
| 靜態路由 | 1 |
| EIGRP 彙總 | 5 |
| eBGP | 20 |
| EIGRP 內部 | 90 |
| OSPF | 110 |
| IS-IS | 115 |
| RIP | 120 |
| EIGRP 外部 | 170 |
| iBGP | 200 |
| 不可信(不放入路由表) | 255 |
同一個前綴由不同來源學到時,數字小的勝出。
| 協定 | 傳輸層 | 埠號 |
|---|---|---|
| FTP | TCP | 20 / 21 |
| SSH | TCP | 22 |
| Telnet | TCP | 23 |
| SMTP | TCP | 25 |
| TACACS+ | TCP | 49 |
| DNS | UDP / TCP | 53 |
| DHCP | UDP | 67 / 68 |
| TFTP | UDP | 69 |
| HTTP | TCP | 80 |
| NTP | UDP | 123 |
| SNMP | UDP | 161 / 162 |
| BGP | TCP | 179 |
| HTTPS | TCP | 443 |
| Syslog | UDP | 514 |
| NETCONF | TCP | 830 |
| RADIUS | UDP | 1812 / 1813 |
| VXLAN | UDP | 4789 |
| CAPWAP | UDP | 5246 / 5247 |
| 等級 | 名稱 | 意義 |
|---|---|---|
| 0 | emergencies | 系統無法使用 |
| 1 | alerts | 需要立即處理 |
| 2 | critical | 嚴重狀況 |
| 3 | errors | 錯誤 |
| 4 | warnings | 警告 |
| 5 | notifications | 正常但值得注意 |
| 6 | informational | 一般資訊 |
| 7 | debugging | 除錯訊息 |
設定某等級=送出該等級以及數字更小(更嚴重)的訊息。
| 802.1D | RSTP | 學 MAC | 轉送 |
|---|---|---|---|
| Disabled | Discarding | 否 | 否 |
| Blocking | Discarding | 否 | 否 |
| Listening | Discarding | 否 | 否 |
| Learning | Learning | 是 | 否 |
| Forwarding | Forwarding | 是 | 是 |
Hello 2 秒、Max Age 20 秒、Forward Delay 15 秒。
| 類型 | 名稱 | 產生者 | 傳播範圍 |
|---|---|---|---|
| 1 | Router | 每台路由器 | 區域內 |
| 2 | Network | DR | 區域內 |
| 3 | Summary | ABR | 其他區域 |
| 4 | ASBR Summary | ABR | 其他區域(指出 ASBR 位置) |
| 5 | External | ASBR | 整個 OSPF 網域(stub 區域除外) |
| 7 | NSSA External | NSSA 內的 ASBR | NSSA 內,由 ABR 轉成 Type 5 |
| 位址/前綴 | 用途 |
|---|---|
| ::/128 | 未指定位址 |
| ::1/128 | 迴路(loopback) |
| 2000::/3 | 全域單播(GUA) |
| FC00::/7 | 唯一本地(ULA,實務上用 FD00::/8) |
| FE80::/10 | 鏈路本地(link-local) |
| FF00::/8 | 群播 |
| FF02::1 | 所有節點 |
| FF02::2 | 所有路由器 |
| FF02::5 / ::6 | OSPFv3 路由器 / DR |
| FF02::A | EIGRP 路由器 |
| FF02::1:FF00:0/104 | Solicited-node 群播(取代 ARP) |
| 標準 | 世代 | 頻段 | 最大速率 |
|---|---|---|---|
| 802.11b | — | 2.4 GHz | 11 Mbps |
| 802.11a | — | 5 GHz | 54 Mbps |
| 802.11g | — | 2.4 GHz | 54 Mbps |
| 802.11n | Wi-Fi 4 | 2.4 / 5 GHz | 600 Mbps |
| 802.11ac | Wi-Fi 5 | 5 GHz | 約 6.9 Gbps |
| 802.11ax | Wi-Fi 6 / 6E | 2.4 / 5 / 6 GHz | 約 9.6 Gbps |
速率為理論最大值。
點一下就複製。
關於題目來源、考試範圍,以及怎麼練習實作題。
不是。所有選擇題與實作題都依 Cisco 公開的考試大綱(CCNA 200-301 v1.1)原創撰寫,並附上詳解。考試原題受 Cisco 保密協議與著作權保護,本站不收錄、不轉載。
CCNA 只要考 200-301 一科,涵蓋六大領域:網路基礎、網路存取、IP 連通性、IP 服務、資安基礎、自動化與可程式化。本站題目依這六個領域與官方比重分類。
本站的 CCNA 實作題都可以用免費的 Cisco Packet Tracer 完成;想更貼近真實設備,也可以用 Cisco Modeling Labs(CML)或 EVE-NG。
先看考試大綱的比重,從比重高的領域開始;每題先自己想答案再按「看解答」,重點放在詳解裡的「為什麼其他選項不對」。實作題建議先照拓樸自己設定,卡住再看參考設定,最後一定要跑一次驗證指令。
題庫依考試大綱版本整理,Cisco 公布新版大綱時會同步調整題目與比重。