-->

whaust

顯示具有 cisco 標籤的文章。 顯示所有文章
顯示具有 cisco 標籤的文章。 顯示所有文章

2025年10月30日 星期四

GitOps 解決方案深度解析:Argo CD、Flux 與 Terraform 的定位

GitOps 解決方案深度解析:Argo CD、Flux 與 Terraform 的定位

本文整理了關於 Argo CD 和 Flux CD 的比較、Argo CD 的安裝計畫,以及 GitOps 理念在網路設備管理和與 Terraform 整合方面的應用。

一、Argo CD 與 Flux CD 比較

Argo CD 和 Flux 都是 Kubernetes 社群中優秀的 **GitOps Agent**,它們都實作了「拉取式 (Pull-Based)」部署模式。以下是它們的差異:

特性 Argo CD (CNCF 畢業專案) Flux (CNCF 畢業專案)
設計理念/結構 Application Controller 集中管理:專注於應用程式級別的部署和狀態同步。 分散式工具集:由多個專注於不同功能的專門控制器組成(更模組化)。
部署模型 應用程式為中心 (App-centric):每個部署定義為一個 Application 資源。 功能為中心 (Feature-centric):使用 HelmReleaseKustomization 資源來定義部署。
主要介面 優秀的 Web UI:提供功能豐富、視覺化強大的介面。 CLI 為主:主要透過 flux cli 進行管理。
多叢集支援 集中式管理:單一 Argo CD 實例可管理多個外部 K8s 叢集。 分散式管理:通常建議在每個目標叢集上安裝一個 Flux 實例。

選擇建議: Argo CD 更「操作友好」且「集中」;Flux 更「Kubernetes 原生」且「模組化」。

二、Argo CD 導入與測試計畫

以下為採用 Argo CD 的三階段安裝與驗證計畫:

階段一:準備與規劃 (Pre-Installation)

  • **P1 - K8s 環境檢查:** 確認叢集版本和權限。
  • **P2 - Git 儲存庫準備:** 建立配置 YAML 檔的 Git 儲存庫(如:git@github.com/org/k8s-manifests.git)。
  • **P3 - 測試應用程式配置:** 在 Repo 中準備簡單的 YAML 檔案(如:k8s-manifests/guestbook/)。

階段二:安裝與核心配置

# 1. 安裝 Argo CD

kubectl create namespace argocd

kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml

# 2. 取得初始密碼

kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{'.data.password'}" | base64 -d; echo

# 3. 啟動 Port Forward 測試存取

kubectl port-forward svc/argocd-server -n argocd 8080:443

階段三:功能驗證與測試

測試項目 目的 預期結果
T1.3 手動同步 驗證部署功能 應用程式狀態變為 SyncedHealthy
T2.2 手動漂移修復 驗證持續協調 (Self-Heal) 手動修改 K8s 資源後,Argo CD 自動偵測並將其修正回 Git 定義的狀態。
T2.3 版本回溯 驗證回溯機制 Git 回溯 Commit 後,Argo CD 自動將 K8s 狀態回溯到舊版本。

三、Argo CD 的部署位置

答案:Argo CD 是安裝在 Kubernetes (K8s) 叢集內部的。

它作為一個控制迴路在叢集內部運行,持續:

  • 監控 Git 儲存庫的期望狀態 (Desired State)
  • 透過 K8s API 讀取叢集的實際狀態 (Live State)
  • 執行協調,確保兩者一致(GitOps 拉取式模式)。

四、Argo CD 的狀態偵測機制

答案:Argo CD 部署後,不會主動偵測現有 K8s 的所有 YAML。它只會根據您給它的配置去工作。

Argo CD 的工作流程是以「**應用程式定義**」為中心:

  1. 您必須建立一個 Application 資源,明確指向一個 Git Repo/Path。
  2. Argo CD 才會開始:讀取 Git (期望狀態) → **查詢 K8s API (實際狀態)** → **比較**並判斷是否需要同步。

所有未被 Argo CD 定義和管理的資源,將不會受到 GitOps 流程的影響。

五、k8s-manifests/guestbook 的意義

這是一個範例路徑結構,結合了兩個概念:

  • k8s-manifests/ 業界常用的資料夾名稱,用於存放 **Kubernetes Manifests**(K8s 資源定義的 YAML 檔)。
  • guestbook 指一個特定的應用程式名稱(通常是 K8s 範例應用程式)。

在 Argo CD 中,這個路徑就是指定:「請將這個資料夾內的所有 YAML 檔案部署到目標叢集,並將這些資源歸類為 guestbook 應用程式。」

六、GitOps 理念與 Cisco 網路設備管理

答案:可以,但不能直接使用 Argo CD。

GitOps 的理念(以 Git 作為唯一事實來源、宣告式、自動協調)完全適用於網路設備,這被稱為 **NetDevOps**。

由於 Cisco 設備不使用 K8s YAML,您需要將 GitOps 理念與專門的 **網路自動化工具** 結合,作為 Argo CD 的替代執行器:

  • 期望狀態: Git Repo 中的 **YAML/Jinja2 模版**。
  • 執行代理: **Ansible** 或 **Terraform**。它們負責讀取模版、生成 Cisco CLI 命令,並透過 SSH/API **推送**到設備。
  • 協調: Ansible 的冪等性 (Idempotency) 機制,確保只應用必要的更改。

七、Terraform 與 Argo CD 的比較與協作

兩者是互補而非競爭的關係,主要區別在於管理的**範圍**和**機制**:

關鍵差異

特性 Terraform Argo CD
核心用途 **基礎設施的供應 (Provisioning)** **應用程式的持續交付 (CD)**
管理範圍 VPC、RDS、S3、**K8s 叢集本身** **K8s 內部的** Deployment、Service、ConfigMap 等
機制 CLI 驅動 (Push-Based) 控制器驅動 (Pull-Based)

最佳協作模式

在 End-to-End GitOps 中,兩者形成清晰的階層:

  1. Terraform (IaC/Provisioning): 負責建立 K8s 叢集、資料庫等底層**基礎設施 (Infrastructure)**,作為部署的「畫布」。
  2. Argo CD (GitOps/Delivery): 安裝在 K8s 叢集內,負責持續管理和部署**應用程式 (Application)** 資源到這個畫布上。
aa

2025年9月15日 星期一

深入剖析 Cisco Cyber Vision 感測器從流量擷取、邊緣處理到傳輸至 Cyber Vision Center 的通訊協定與實作細節,並提供部署建議。

Cisco Cyber Vision 解決方案中感測器至中心資料傳輸通訊協定深度剖析

1. 導論與核心架構概覽

1.1 查詢問題與專家解讀

關於 Cisco Cyber Vision 解決方案中,從 Cisco 交換器接收資料後傳送至 Cyber Vision 系統所使用的通訊協定,這是一個針對營運技術(OT)網路監控架構的關鍵技術問題。該查詢看似簡單,但其核心在於對 Cisco Cyber Vision 獨特「邊緣監控架構」(unique edge monitoring architecture)的理解。該架構的設計與傳統網路監控模型截然不同,因此無法用單一通訊協定名稱概括。

本報告旨在透過深入剖析整個資料流的生命週期,從流量擷取、邊緣處理,到最終的資料傳輸,提供一個全面且準確的技術解答。分析將明確界定兩個獨立但相互關聯的階段:首先,Cisco 交換器如何將工業網路流量複製給內嵌的 Cyber Vision 感測器;其次,感測器如何將處理後的資料安全地傳輸給 Cyber Vision Center。透過這種分層解構,可以揭示該解決方案在設計上為克服 OT 環境挑戰而採取的策略性選擇。

1.2 Cisco Cyber Vision 的獨特邊緣監控架構

Cisco Cyber Vision 解決方案的核心優勢在於其創新的雙層架構。該架構由以下兩個主要部分組成:

  • 感測器(Sensors): 這些感測器並非獨立的硬體設備,而是被「內嵌」(built into)於選定的 Cisco 工業網路設備中,例如 Cisco IC3000 工業計算閘道器、Cisco Catalyst IE3300/3400/9300 系列交換器等。感測器在網路流量的源頭——即 OT 設備的連接點——運行,並在本地執行繁重的處理任務,包括深度封包檢測(DPI)、協議分析與入侵偵測。
  • 中心(Cyber Vision Center): 中心是一個中央化的聚合平台,可部署為實體硬體設備或 VMware 虛擬機。它的主要職責是從所有感測器接收資料,並提供一個統一的介面,用於資料儲存、分析、行為分析、報告生成以及使用者介面功能。

這種「邊緣計算」架構的關鍵優勢在於其極高的效率。感測器在網路邊緣對工業流量進行解碼和分析,僅將經過精煉、高度壓縮的「輕量級中繼資料」(lightweight metadata)發送給中心。這大大減少了對工業網路頻寬的消耗,根據資料,僅增加 2% 到 5% 的網路負載。這種設計從根本上解決了在頻寬受限的 OT 環境中部署大規模監控方案的挑戰。

1.3 報告範圍界定:釐清資料流的兩大階段

為了解答使用者問題,必須將資料流的整個過程區分為兩個截然不同的階段。混淆這兩個階段會導致對整個解決方案運作原理的誤解。

  1. 第一階段:流量擷取(Traffic Acquisition): 這是指 Cisco 交換器將 OT 網路中的原始封包流量複製給內嵌的 Cyber Vision 感測器應用程式的過程。這個階段不涉及應用層的資料傳輸,而是利用網路交換器內建的流量複製功能。
  2. 第二階段:資料傳輸(Data Transmission): 這是指感測器在本地處理、分析原始流量後,將其生成的輕量級中繼資料傳輸給遠端 Cyber Vision Center 的過程。這才是本報告的核心探討點,涉及的是應用層通訊協定。

這種兩階段的設計模式,是 Cisco Cyber Vision 區別於許多傳統網路監控工具的關鍵。它將繁重的處理任務從核心網路轉移到了邊緣設備,從而將「傳輸原始流量」的模式轉變為「傳輸情報」的模式,這使得解決方案能夠在 OT 環境中實現高效、可擴展的部署。

2. 資料流機制與邊緣處理

2.1 流量擷取:從工業網路到內嵌感測器

在第一個階段,Cisco 交換器會利用其內建的流量複製技術,將工業網路中的原始流量「複製」一份給內嵌的感測器應用。常見的流量複製方法包括:

  • SPAN (Switched Port Analyzer): 這是一種本地流量鏡像技術,在單一交換器上,將一個或多個來源埠(Source Port)或 VLAN 的所有流量複製到一個目標介面(Destination Interface)。這種方法適用於感測器和監控設備位於同一台交換器上的情況。
  • RSPAN (Remote Switched Port Analyzer): RSPAN 允許跨多個交換器進行流量複製。它透過專用的 RSPAN VLAN,將來源交換器上的流量複製到該 VLAN 中,並在目標交換器上透過一個埠將流量轉發給監控設備。
  • ERSPAN (Encapsulated Remote Switched Port Analyzer): ERSPAN 是最進階的遠端流量複製方法,它將被複製的流量封裝在 Layer 3 協定(通常是 GRE)的封包中。這種方式使得流量複製可以跨越路由邊界,將來自不同站點的工業流量匯聚到中央的監控平台。文獻指出,Cisco Cyber Vision 感測器支援在 Catalyst 9300/9400 等設備上使用 ERSPAN。

這些流量擷取技術,是確保感測器能夠「看到」 OT 網路中所有流量的基礎。然而,它們本身並非感測器與中心之間的通訊協定。

表一:流量擷取技術比較

技術名稱 工作層次 核心機制 主要優勢 Cyber Vision 應用
SPAN Layer 2 本地埠鏡像 簡單、低開銷 感測器與流量源在同一交換器上的本地部署
RSPAN Layer 2 遠端 VLAN 鏡像 跨交換器、靈活 跨 Layer 2 網路的多交換器部署
ERSPAN Layer 3 遠端 GRE 封裝 跨路由、多站點 跨 Layer 3 網路的多站點集中監控部署

2.2 感測器的邊緣處理能力

在感測器接收到複製的原始流量後,並不會直接將其轉發。這是 Cisco Cyber Vision 架構的關鍵所在。感測器內建的引擎會立即對流量進行深度處理。

  • OT 協議解碼:感測器能夠理解和解碼數百種工業控制協議,例如 EtherNet/IP、S7、Profinet 等。這種能力使其能夠從流量中提取出豐富的應用層上下文,例如資產屬性、韌體版本、PLC 程式修改、變數變化等。
  • 中繼資料生成:經過深度分析後,感測器會捨棄原始的、龐大的封包資料,僅生成並保留輕量級、結構化的「中繼資料」(metadata)。這些中繼資料包含了資產清單、通訊模式、漏洞資訊、安全事件等核心情報,這使得最終傳輸給中心的資料量極小,避免了對工業網路造成過載。

這種從「原始流量」到「精煉情報」的模式轉變,是 Cisco Cyber Vision 在 OT 網路中取得成功的基礎。它將傳統方案中所需的龐大網路頻寬需求轉變為輕量的資料傳輸,從而使其能夠在 OT 環境中實現低成本、高效率的規模化部署。

3. 感測器至中心的核心通訊協定分析

3.1 核心通訊協定:基於 HTTPS/TLS 的 API 傳輸

根據對 Cisco Cyber Vision 解決方案的技術文檔與開發者 API 文件的分析,可以明確指出,感測器將其分析後生成的輕量級中繼資料傳輸給 Cyber Vision Center 所使用的核心通訊協定是 HTTPS/TLS。

這種通訊機制是基於 RESTful API 的模型。感測器透過加密的 HTTPS 連線,向 Cyber Vision Center 的特定 API 端點發送資料。文獻中展示的 curl 和 Python requests 程式碼範例,均明確使用了 https:// URL 並發送 POST 請求,這直接證明了其底層通訊機制的運作方式。傳輸的資料內容是結構化的中繼資料,而非原始的網路封包。HTTPS 協定本身提供了傳輸層安全(TLS),確保了資料在傳輸過程中的加密與完整性。這對於傳輸敏感的 OT 資產資訊至關重要,可有效防範資料在途中被竊聽或篡改。

3.2 傳輸協定與流量監控協定的區別:為何不是 NetFlow/IPFIX?

傳統上,在 IT 網路中,流量監控常依賴於 NetFlow 或其標準化演進版本 IPFIX。這些協議主要用於收集 Layer 3 和 Layer 4 的流量資訊,如來源/目的 IP 位址、埠號、協議類型、封包與位元組計數等,它們能回答「誰在跟誰通訊」的問題。

然而,Cisco Cyber Vision 的目標遠超於此。它旨在提供深層次的 OT 安全洞察,例如識別特定的工業協議通訊模式、監控 PLC 程式的修改、偵測工業變數的異常變化等。這些豐富的 OT 上下文資訊無法透過標準的 NetFlow/IPFIX 欄位來傳輸。因此,Cisco Cyber Vision 的設計選擇是放棄 NetFlow/IPFIX,轉而採用更為靈活、可擴展的基於 API 的傳輸模型。這種設計使得該解決方案能夠傳輸任何自定義的數據類型,並隨著新的 OT 協議和安全情報的出現而輕鬆更新,從而專注於提供真正具備安全價值的「情報」而非單純的「流量統計」。

3.3 特定功能使用的輔助協定:TUS 協議的應用

儘管主要傳輸協定是基於 HTTPS 的 API,但 Cisco Cyber Vision 在處理特殊資料類型時,也會採用其他優化的協定。一個值得關注的例子是 PCAP 檔案上傳功能。Cisco 的開發者文檔明確指出,用於上傳新的 PCAP 檔案的 API 端點使用了 TUS 協議。

TUS(The Upload Server)是一種基於 HTTP 的可續傳上傳協定。它的應用表明,當需要處理大型檔案(如完整的網路封包擷取檔)時,Cisco 選擇了最適合該任務的協定。TUS 具備斷點續傳的能力,即使網路連線中斷,上傳也能從中斷處恢復,這對於可能因網路不穩定而導致長傳輸失敗的工業環境而言,提供了額外的彈性和可靠性。這種根據不同用途採用最優協議的設計,體現了產品在實際運維場景中的務實考量。

表二:Cisco Cyber Vision 核心資料流路徑

階段 關鍵技術/組件 數據形式 主要通訊協定
1. 流量擷取 Cisco 交換器 (SPAN/RSPAN/ERSPAN) 原始 OT 流量 埠鏡像技術 (非應用層協議)
2. 邊緣處理 Cyber Vision 感測器應用 輕量級中繼資料 無 (本地處理)
3. 資料傳輸 感測器 → Cyber Vision Center 結構化數據 (如 JSON) HTTPS/TLS (主要), TUS (特定上傳)

4. 資料傳輸的安全性與實施細節

4.1 傳輸層安全:TLS 加密與認證

感測器與中心之間的通訊傳輸的是敏感的 OT 網路資訊,因此傳輸層的安全性至關重要。HTTPS/TLS 協定是實現這一安全目標的基石。TLS 提供了多重保護:

  • 資料加密:確保所有傳輸的資料在網路上以加密形式存在,防止未經授權的第三方竊聽或分析資料流。
  • 伺服器認證:透過數位憑證,感測器能夠驗證所連線的 Cyber Vision Center 是否為合法伺服器,防止中間人攻擊。雖然在初始部署時,可能會使用自簽名證書,但這是為了在安全連線建立前進行初始配置。
  • API Token 認證:除了 TLS 加密,感測器還需使用預先配置的 API Token 進行身分驗證,以確保只有獲得授權的感測器才能向中心發送資料。

4.2 網路與防火牆配置的最佳實踐

為了確保安全且高效的通訊,Cisco Cyber Vision Center 的硬體設計本身就遵循了資安的最佳實踐。

  • 專用網路介面:Cyber Vision Center 設備配置了兩個專用且分離的 10 Gigabit Ethernet 網路埠:一個是「Administration network interface」(eth0),用於使用者透過瀏覽器存取管理介面;另一個是「Collection network interface」(eth1),專門用於與感測器通訊。
  • 實施網路分區:這種物理上的網路分離,強烈建議在邏輯上將感測器所在的 OT 監控網路與管理人員使用的 IT 網路進行嚴格的隔離。透過在網路邊界部署防火牆,並僅允許必要的通訊埠(如用於 HTTPS 的 TCP/443)在感測器與中心之間通訊,可以顯著降低橫向移動的風險,並將攻擊面縮小到最低。這種設計是「最小權限」與「零信任」安全模型在實體網路層面的具體應用。

5. 結論與專業建議

5.1 總結核心發現

綜合上述分析,Cisco Cyber Vision 解決方案中,從 Cisco 交換器到 Cyber Vision Center 的資料傳輸是一個分階段且經過精心設計的過程。首先,交換器透過 SPAN/RSPAN/ERSPAN 等技術將原始 OT 網路流量複製給內嵌的感測器應用。隨後,感測器在邊緣執行深度封包檢測,將龐大的原始流量轉換為輕量級的「中繼資料」。最終,這些中繼資料透過基於 HTTPS/TLS 的安全 API 傳輸給 Cyber Vision Center。對於需要上傳大型檔案(如 PCAP)的特殊場景,該解決方案則採用了 TUS 協議以確保傳輸的可靠性。

這種架構的關鍵在於其專為 OT 環境優化的核心特性:輕量級、安全、可擴展且不對網路造成過重負擔。它將繁重的處理任務從網路核心轉移到邊緣,從而將資料流從「頻寬消耗」模式轉變為「安全情報傳輸」模式。

5.2 對網路工程師與 OT 專家的建議

  • 部署前準備:在部署感測器之前,務必確保感測器與中心之間的管理網路具備連線能力,並檢查防火牆規則是否允許必要的通訊。同時,精準的時間同步(NTP)對於事件關聯和分析至關重要。
  • 善用邊緣能力:感測器本身具備強大的本地分析能力。在進行故障排除時,可以利用內建工具(如 tcpdump)在本地擷取流量,進行初步分析,無需將所有資料都傳送至中心。
  • 實施網路分區:充分利用 Cyber Vision Center 專用的「Collection」網路介面,將 OT 監控網路與 IT 管理網路進行物理或邏輯上的分區,並配置嚴格的防火牆策略,這是提升整體解決方案安全性的關鍵。
  • 融合 IT/OT 安全:Cyber Vision 能夠生成豐富的 OT 資產、通訊、事件和漏洞上下文資訊。建議將這些中繼資料與 IT 的安全資訊與事件管理(SIEM)平台(如 IBM QRadar 或 Splunk)進行無縫整合。這將實現 IT 與 OT 領域的事件關聯與統一的威脅分析,構建一個真正統一的 IT/OT 安全營運中心。


2025年7月18日 星期五

Black Belt Cisco AI Strategy Quiz - presales

 

https://partnerlearning.cisco.com/new/ui/learner/training/programs/1887546992813355363/certifications

Quiz 1

1. Why is monitoring AI system latency important?

Options:

  1. Ensure system fast timely response

  2. Identify when the system needs to be rebooted

  3. Reduce the volume of processed data

  4. Increase security levels

Correct Answer: Ensure system fast timely response 


2. Why is it important to have a scalable network infrastructure for AI?

Options:

  1. Support data-intensive processes and minimize latency

  2. Simplify management of user accounts

  3. Reduce internet costs

  4. Simplify maintenance

Correct Answer: Support data-intensive processes and minimize latency


3. Which programming languages are used most often in AI development?

Options:

  1. Python and Java for their flexibility and extensive libraries

  2. C++ and Assembly for high performance

  3. PHP and Ruby for web development

  4. HTML and CSS for user interfaces

Correct Answer: Python and Java for their flexibility and extensive libraries


4. How can customers reduce risks when implementing AI?

Options:

  1. Focusing on local regulatory requirements and ignoring norms of other regions to avoid instruction conflicts

  2. Limiting the use of AI to the minimum possible

  3. Developing and implementing a strict data management and AI usage policy

  4. Avoiding the use of cloud technologies

Correct Answer: Developing and implementing a strict data management and AI usage policy


5. What characterizes reinforcement learning?

Options:

  1. Learning based on rewards and punishments

  2. Using labeled data

  3. Analyzing unstructured data

  4. Used exclusively in games

Correct Answer: Learning based on rewards and punishments

6. What principle underlies expert systems operation?

Options:

  1. True – False. Evaluates the truthfulness of data based on databases

  2. If – Then. Follows a set of predefined rules.

  3. Do – While. Determines when to stop routine processes and requests expert assistance for finding solutions.

  4. Analysis – Redirection. Analyzes the question and redirects it to the expert in the database who specializes in the relevant topic.

Correct Answer: If – Then. Follows a set of predefined rules.


7. Where did the evolution of AI begin?

Options:

  1. With attempts to mimic human thinking

  2. With attempts to merge several programs into one

  3. As a byproduct of the development of neural networks

  4. With attempts to create a better internet distribution controller

Correct Answer: With attempts to mimic human thinking


8. Why is data processing and labeling important in AI development?

Options:

  1. Ensure the accuracy and relevance of training data

  2. Reduce the volume of stored data

  3. Accelerate network connections

  4. Simplify the user interface

Correct Answer: Ensure the accuracy and relevance of training data


9. How can AI help companies manage their IT infrastructure?

Options:

  1. AI provides basic support to IT staff without affecting infrastructure management.

  2. AI reduces maintenance costs for accounting by optimizing usage

  3. AI improves performance and ensures higher security

  4. IT infrastructure helps manage AI, not the other way around

Correct Answer: AI improves performance and ensures higher security


10. What ethical challenges are associated with the development of AGI?

Options:

  1. Creating autonomous military systems

  2. Enhancing production efficiency

  3. Managing impacts on employment and social justice

  4. Improving user interfaces

Correct Answer: Creating autonomous military systems


Quiz 2


Question 1

Which of the following AI technologies directly addresses behavioral analysis and proactive threat detection?
A. automated responses
B. coordinated responses
C. threat prioritization
D. machine learning

Answer: D. machine learning


Question 2

You are speaking with a customer who is looking on adopting AI infrastructure, however they are concerned about possible sensitive data leakage during AI model development. What solution will address their security concern?
A. Complexity; the appropriate solution is Cisco Hypershield.
B. Improper use of data; the appropriate solution is Cisco Hypershield.
C. Sensitive data leakage; the appropriate solution is data loss prevention.
D. Complexity; the appropriate solution is Cisco Identity Intelligence.

Answer: C. Sensitive data leakage; the appropriate solution is data loss prevention.


Question 3

What is a primary concern for customers that the Cisco Responsible AI Framework addresses?
A. Spiraling costs of AI-based technology solutions
B. Increased complexity of AI solutions
C. Collection and use of personal data
D. Logistics in retraining employees affected by AI

Answer: C. Collection and use of personal data


Question 4

What key feature benefits organizations when incorporating AI in networking solutions?
A. Manually configured software that AI corrects in real time
B. Uncovered human error at the expense of higher costs
C. Increased automated and streamlined operations
D. Improved tracking of network downtime

Answer: C. Increased automated and streamlined operations


Question 5

In a Webex meeting today, your supervisor gave you detailed instructions on your next assignment and how to accomplish it. Which of the following Webex features will be most helpful to you when you review the recording?
A. gesture recognition
B. virtual backgrounds
C. meeting summary
D. language translation

Answer: C. meeting summary


Question 6

In which way does Cisco’s partnership with Nutanix provide a more efficient AI deployment for its customers?
A. Flashstack for AI
B. A multicloud UCS-X powered multicloud, hyperconverged solution
C. Flexpod Datacenter for AI
D. Unicloud environment UCS-X powered unicloud, hyperconverged solution

Answer: B. A multicloud UCS-X powered multicloud, hyperconverged solution


Question 7

Identify two partner concerns that Cisco CX Cloud attempts to address. (Choose two.)
A. The increasing costs of technology due to the introduction of AI
B. The need to clearly define business outcomes
C. The continuous need of retraining professionals
D. The need to reduce the complexity of planning and integrating technology
E. The need to articulate AI benefits to prospective customers

Answer: B. The need to clearly define business outcomes
D. The need to reduce the complexity of planning and integrating technology


Question 8

What are three elements of the Cisco security strategy that mitigate potential threats across an organization’s attack surface?
A. Data loss prevention, Silicon One technology, GPU security
B. Zero trust, microsegmentation, data loss prevention
C. Data loss prevention, GPU security, RMDA technology
D. Data loss prevention, zero trust, InfiniBand

Answer: B. Zero trust, microsegmentation, data loss prevention


Question 9

A manufacturing firm is implementing an AI-based software solution to simulate their production environment with the goal of improved production efficiency and reduced time-to-market for new products. What is the term for this software-based solution?
A. Supply-chain optimization
B. Intelligent quality control
C. Key performance indicator monitoring
D. Digital twin environment

Answer: D. Digital twin environment


Question 10

What is the functionality that provides visibility across the customer’s entire technology landscape?
A. AppDynamics real-time performance monitoring
B. ThousandEyes end-user monitoring
C. Cisco Full-Stack Observability
D. Cisco Hypershield

Answer: C. Cisco Full-Stack Observability

2025年7月15日 星期二

[解答] Black Belt - Business Critical Services (BCS) for Partners FY23

 


1️⃣ 單選題:Which of the following is not a component of Expert Care?

選項:
A. Incident Management
B. National
C. Problem Resolution
D. Problem Management

✅ 正確答案:B. National


2️⃣ 複選題:The construct and deliverables of Business Critical Services provide value to Cisco partners by empowering them to:

選項:
A. Grow
B. Warranty
C. Sell more, faster
D. Differentiate

✅ 正確答案:A. Grow、C. Sell more, faster、D. Differentiate


3️⃣ 單選題:Which service tier is best suited for existing Cisco customers who are seeking to reduce network costs while maintaining a minimum level of Cisco proactive support?

選項:
A. Essentials
B. Advantage
C. Premier

✅ 正確答案:A. Essentials


4️⃣ 複選題:Business Critical Services is focused on what phases of a customer's technology journey?

選項:
A. Implementation
B. Adoption
C. Optimization
D. Strategic Roadmap Development

✅ 正確答案:A. Implementation、B. Adoption、C. Optimization、D. Strategic Roadmap Development


5️⃣ 單選題:Which of the following is not a service tier?

選項:
A. Essentials
B. National
C. Advantage
D. Premier

✅ 正確答案:B. National


2025年7月14日 星期一

Cisco Blackbelt CX Test (Success Tracks)

 




1. What type of Cisco Specialization is required for partners to publish their own branded services engagements through PX Cloud?

選項:

  1. Collaboration Specialization

  2. Adoption Specialization

  3. Advanced Customer Experience Specialization

  4. Enterprise Networking Specialization

答案: 3


2. Which statements about Success Tracks are correct?

選項:

  1. Success Tracks are CX services and capabilities covering a customer's entire lifecycle journey.

  2. Success Tracks are multiple levels of experience in four focus areas: expert resources, trusted support, insights & analytics and contextual learning.

  3. Success Tracks offer a use-case guided services by architecture.

  4. All of the Above

答案: 4


3. What is one key differentiated customer deliverable within Level 2 of Success Tracks?

選項:

  1. Accelerators

  2. Ask the Experts

  3. Managed Services

  4. SNTC Portal

答案: 1


4. What are the main categories for partners to define and deliver their own offers based on the deliverables within Success Tracks?

選項:

  1. Ask the Experts

  2. Insights & Analytics

  3. Enterprise Agreement

  4. Accelerators

答案: 2、4


5. Cisco Success Tracks provide a _______ journey to help customers achieve value faster.

選項:

  1. Land and adopt

  2. Managed Services

  3. Solution architect

  4. Use-Case-Guided

答案: 4


6. What is the primary tool customers, who purchased Success Tracks, use to monitor their lifecycle progression, get telemetry based insights, and access to contextual learning?

選項:

  1. PX Cloud

  2. CX Cloud

  3. CCW

答案: 2


7. Cisco's CX Success Tracks Level 1 helps customers and partners improve their IT efficiencies with the following: Which statements about Level 1 are correct? (Select all that apply)

選項:

  1. Self-guided resources

  2. Customer accessibility through the CX Cloud

  3. Scope of Work (SOW) based services

  4. Managed Services

  5. Smart Net Total Care

答案: 1、2、5


8. What are the four main capabilities of Success Tracks designed to address customers business issues? (Select all that apply)

選項:

  1. Expert Resources

  2. Trusted Support

  3. Implementation Services

  4. Insights and analytics

  5. Contextual Learning

答案: 1、2、4、5


9. All levels of Success Tracks include Ask-The-Experts (ATX) that provide expert-led one-to-many interactive educational sessions.

選項:

  1. TRUE

  2. FALSE

答案: 2


10. Partners can build upon the CX Cloud to market their own services in combination with CX.

選項:

  1. TRUE

  2. FALSE

答案: 1

2025年5月26日 星期一

Cisco DNA License 安裝與錯誤診斷教學

Cisco DNA License 安裝與錯誤診斷教學(含 Smart Token 取得教學)

本文教你如何在 Cisco Catalyst Switch 上啟用 DNA 授權、從 Cisco 取得 Smart License Token,以及如何處理常見錯誤訊息。非常適合初入社會的新鮮工程師或剛接觸 Cisco 的 IT 人員參考。


🔐 如何取得 Cisco Smart License Token?

  1. 前往 Cisco Smart Account 註冊頁 並申請帳號(必須使用公司信箱)
  2. 登入 Cisco Software Central,選擇 Smart Account
  3. 建立 Virtual Account(可用 default)
  4. 點選 General → New Token 建立授權 Token,設定有效期限(預設 30 天)
  5. 複製 Token,到交換器輸入下列指令註冊:
license smart register idtoken <your-token>

如果設備無法連網,請考慮使用 Cisco CSLU 工具或 Satellite 模式。


✅ 安裝 Cisco DNA License 步驟

  1. 確認設備支援 DNA 授權
    show version
  2. 啟用 Smart Licensing 模式
    
    conf t
    license smart enable
    exit
        
  3. 輸入 Token 並註冊授權
    license smart register idtoken <your-token>
  4. 驗證授權狀態
    
    show license summary
    show license all
        

⚠️ DNA License 未啟用時常見錯誤訊息

  • License 未註冊:
    %LICENSE-6-EVALUATION: The system is operating on an Evaluation License.
    %SMART_LIC-3-REG_FAIL: Registration with the Cisco Smart Software Manager (CSSM) failed.
  • DNA 授權不存在:
    %LICENSE-2-INVALID_LICENSE: License DNA-Advantage is not in use.
  • Evaluation License 快到期:
    %LICENSE-6-EVAL_WARNING: Smart Licensing Evaluation Period is about to expire in 15 days.
  • 連線錯誤:
    %SMART_LIC-4-AGENT_CONTACT_FAILURE: Failed to send message to CSSM: Unable to resolve host.

🛠 常用診斷指令與資訊

查看授權狀態:

show license summary

常見輸出:


License Status: EVAL MODE
DNA License: Not in Use

查看詳細授權與特徵模組:

show license all

可能訊息:


Feature Name: dna-advantage
License State: Not in use, EVAL EXPIRED

🔧 常見解決方式

  • 確認交換器能連上網際網路(DNS/NTP/HTTPS 都能通)
  • Token 是否已過期,必要時重新產生新的
  • 切換 Smart License 模式為 CSLU 或 Satellite

你可以從 show license summary 開始排錯,也歡迎提供下列資訊讓我協助你進一步診斷:

  • 交換器型號與 IOS-XE 版本(用 show version
  • 網路能否正常連外?是否有防火牆阻擋?
  • 目前授權模式(Eval / Smart / CSLU)

有任何問題也歡迎留言討論,一起解決 Cisco Smart Licensing 的疑難雜症!🚀



2025年4月30日 星期三

Cisco Black Belt AI Fundamental

 Q1. What is the primary role of programming languages in AI development?


1. They enable the creation and management of databases that store and organize the data used by AI models.


2. They help write the instructions that tell computers how to learn and process information.


3. They help monitor AI systems by providing the syntax and structures necessary for developing software that tracks performance metrics and system health.


4. They facilitate the networking of various AI systems by providing the code that enables communication and data exchange between disparate systems.


Ans : 2.



Q2. What is the primary advantage of using generative models like GANs and VAEs?


1. They streamline data processing.


2. They reduce the need for data labeling. 


3. They generate new, realistic data instances.


4. They simplify the deployment of AI models.


Ans : 3.


Q3. Why is robust infrastructure important for AI development?


1. It helps ensure that AI applications can be developed without programming languages. 


2. It provides unlimited scalability for AI systems across all types of cloud environments. 


3. It makes AI systems less dependent on machine-learning frameworks.


4. It supports the high computational demands and large data volumes typical in AI workloads.


Ans : 4


Q4. What is a key benefit of effective monitoring in AI systems?


1. It helps ensure that systems operate smoothly and efficiently.


2. It eliminates the need for manual data labeling.


3. It replaces the need for machine-learning frameworks.


4. It reduces the importance of programming languages in AI.


Ans : 1


Q5. attach the following components of the AI tech stack with their descriptions:


Machine-Learning Frameworks

Structures that simplify the development, training, and deployment of ML models.


Vector Databases

Specialized storage solutions that support high-dimensional data used in AI applications.


Monitoring

Process for tracking performance metrics to gain optimal operation of AI systems.


Data Processing and Labeling

Operations that prepare data to enhance the performance of AI models.





2023年6月13日 星期二

Cisco ThousandEyes Quiz (Black Belt 2023)

 1. ThousandEyes solution provides the most correlated visibility in a single view. What is the function of the network performance layer?

It provides network metrics (loss, latency, jitter) across the entire end-to-end service availability path 

It provides network metrics (loss and latency) across the entire end-to-end service availability path 

It provides granular visibility only into the networks, which are part of the Internet 

It provides a hop-by-hop view of how the services are being delivered 

Ans : 1


2. Enterprise Agents are controlled and deployed by the customer, either in their infrastructure or in the Cloud. Which deployment platforms can customers leverage? (Select all that apply) 

Microsoft Hyper-V

Linux package 

VMware ESX

Docker 

Bare Metal 

Apple

Ans : 1 2 3 4 5


3. The ThousandEyes solution provides a 360 degree view of hybrid digital ecosystems by combining:

Internet and WAN visibility

Micro-transaction monitoring

Browser Synthetics

Internet Insights

End-user monitoring

Ans : 1 3 4 5


4. Endpoint agents provide insight into the digital experience from the end-user perspective and can be deployed on Microsoft Windows or Apple MacOSX devices 

TRUE

FALSE

Ans : True


5. ThousandEyes solution help prospects more effectively manage their stakeholders and 3rd party providers because: select all that apply)

It provides a comprehensive view of all the networks and services that make up a user experience

Sharelinks can be used to share interactive snapshots between the customer teams and/or provider for more collaborative problem resolution 

Faults and dependencies are correlated to identify the root cause and isolate problems quickly 

Network AI can identify and fix the fault automatically 

Ans : 1 2 3


6. ThousandEyes provides unique visibility into service availability, usability, and performance by leveraging three different vantage points. These are (select all that apply):

Process Agent

Enterprise Agent

Cloud Agent

Cisco Performance Agent

Endpoint Agent

Ans : 2 3 5


7. ThousandEyes solution provides the most correlated visibility in a single view. What is the function of the path visualization layer? 

It provides network metrics (loss, latency, jitter) across the entire end-to-end service availability path. 

It provides network metrics (loss and latency) across the entire end-to-end service availability path 

It provides granular visibility only into the networks, which are part of the internet 

It provides a hop-by-hop view of how the services are being delivered 

Ans : 2 (Not sure)




2021年8月18日 星期三

功能比較 : Cisco vPC and Cisco VSS

 今天你的老爸我將談論兩種技術,Cisco vPC: Virtual Port Channel (虛擬端口通道) 和 VSS:Virtual Switching system (虛擬交換系統)。 這兩種技術在各自領域的工作方式不同。 你們不用一直Google去查,我在這兒把它們之間的差異或了解它們之間的實際差異告訴你,你真的賺到了。

Cisco vPC 在 Nexus 設備上運行,Cisco VSS 在 Cisco Catalyst交換機上運行。 兩者都是不同的,適用於不同的場景。

  • 什麼是 VSS 以及它是如何工作的?
  • VSS 和埠口通道有什麼區別?
  • vPC 是埠口通道技術的高級版本嗎?
  • 我們如何區分 vPC 和 VSS?
  • 在哪裡使用 vPC 和在哪裡使用 VSS?
  • 我們是否有任何命令可以在 Cisco 6500 機箱上啟用 vPC?
  • 我們可以在同一台交換機上使用 vPC 和 VSS 嗎?
  • 我們可以選擇在 Cisco 3850 或 Cisco 2960-X 交換機上使用 VSS 嗎?

Cisco VSS :Virtual Switching system

Cisco VSS 將一對 Catalyst 4500/6500/6800 系列交換機組合成一個網絡元件。 VSS 管理備援線路,這些線路在外部充當單個埠口通道。 VSS 通過減少第 3 層路由鄰居的數量和提供無Loop的第 2 層拓撲來簡化網絡配置和操作。

所以在這裡很明顯,除非您在網絡中使用 Cisco 6500、Cisco 6800 和 Cisco 4500 交換機,否則 VSS 技術不能在接入交換機上使用。所有這 3 台交換機通常用於分佈層或核心層以及 VSS的概念一般用在企業網絡的分佈層。

下面是 VSS 在企業網絡架構中的樣貌,並確保這些是 Cisco Catalyst交換機,可以是 Cisco 4500/6500 和 6800 交換機。

圖 1.1- Cisco VSS 實體網路圖 與 邏輯網路圖

你老爸我我不建議在網路需求非常低的架構分佈中使用這種高級設備。

Cisco vPC: Virtual Port Channel

虛擬埠口通道 (vPC) 允許實體連接到兩個不同 Cisco Nexus 5000/7000 系列設備的線路對第三個設備顯示為單個埠口通道,並且該設備可以是光纖擴展器 (FEX) 或命名為 Nexus 2k 交換機。

vPC 可以提供第 2 層多路徑,它允許您通過增加頻寬來創建備援線路,在節點之間啟用多條並行路徑並在存在替代路徑的情況下負載平衡(load-balancing)流量。 vPC 域包括 vPC 對等設備、vPC 對等保持連接(peer keepalive)、 vPC 對等線路(peer link),以及連接到下行(downstream)設備的 vPC 域中的所有 PortChannel。

圖1.2 Cisco vPC

Cisco vPC 技術僅用於 Cisco Nexus 設備,不能成為 Cisco Catalyst或 Cisco 接入層(Access Layer)交換機的一部分。 不能在 Cisco 3850 交換機上使用這些功能。 它主要是為 Cisco Nexus 交換機構建的。

圖 1.3 VSS 和 vPC的比較

以上這樣講你了解了嗎 ?

  • -- 2021-08-18



2020年11月19日 星期四

Cisco CCNA命令大全

 

登錄網路設備,USB-COM-COM-RJ45,超級終端/SecureCRT

Would you like to enter the initial configuration dialog? [yes/no]: //回答no,如果回答了yes,會出現大量對話,Ctrl+C中斷對話
% Please answer 'yes' or 'no'.
Router> //使用者模式,只能簡單的showping/tracer
Router>enable //從使用者模式進入特權模式
Router# //特權模式,能夠進行所有的showping/tracer
Router#configure terminal//從特權模式進入全域配置模式
Router(config)# //全域配置模式,可以進行相關配置
Router(config)#hostname R1//給設備命名
R1#show version //查看設備軟硬體版本資訊,開機時間,記憶體和Flash大小,模組等
R1#show ip interface brief //查看介面資訊
R1#show running-config //查看運行在記憶體中的當前配置
R1#show startup-config //查看開機配置,保存在NVRAM
R1#copy running-config startup-config //將當前運行配置保存到開機配置中
R1#show tech-support //查看設備所有軟硬體的詳細資訊
R1(config)#enable password xxx//配置enable密碼,該密碼show run可見
R1(config)#enable secret xxx //配置enable密碼,該密碼show run不可見,兩個同時配置時,secret密碼生效
R1(config)#line vty 0 4 //進入telnet配置模式
R1(config-line)#login //telnet登陸需要密碼驗證
R1(config-line)#password xxx //配置telnet密碼
R1(config-line)#exit
R1(config)#line vty 0 4 
R1(config-line)#no login //telnet登陸不需要驗證
R1(config-line)#exit 
R1(config)#line vty 0 4
R1(config-line)#login local//telnet登陸需要在本地資料庫查找用戶名密碼進行驗證
R1(config-line)#exit
R1(config)#username spoto password xxx //創建本地用戶名密碼
R1(config)#banner ^!!!!R1!!!!!^ //配置設備登陸提示符,頭尾符號需要一致,中間為提示符內容
R1(config)#line vty 0 4
R1(config-line)#privilege level 15//配置telnet使用者特權等級為15,即登陸後直接進入enable模式
R1(config-line)#exit 
R1(config)#interface fastEthernet x/x //進入介面配置模式
R1(config-if)#ip address x.x.x.x x.x.x.x //配置IP及遮罩
R1(config-if)#no shutdown //打開介面,路由器介面預設處於管理性關閉狀態
R1(config-if)#exit //退出介面配置模式,返回全域配置模式
R1(config)#no ip routing //關閉路由功能,將路由器模擬成PC
R1(config)#ip default-gateway x.x.x.x //配置閘道位址
R1#show ip route //查看關閉路由功能後的閘道配置
R1#show cdp neighbors //查看思科互連設備資訊
R1(config)#interface loopback 0 //創建環回介面0,用於類比網段和測試
R1(config-if)#ip address x.x.x.x x.x.x.x//配置環回介面IP及遮罩,環回介面不需要no shutdown
R1(config-if)#exit
R1(config)#ip route x.x.x.x x.x.x.x x.x.x.x //配置使用下一跳位址的靜態路由
R1(config)#ip route x.x.x.x x.x.x.x fastEthernet x/x //配置使用本地出介面的靜態路由
R1(config)#ip route 0.0.0.0 0.0.0.0 x.x.x.x //配置使用下一跳位址的默認路由
R1(config)#ip route 0.0.0.0 0.0.0.0 fastEthernet x/x //配置使用本地出介面的預設路由
R1#show ip route //查看路由表
R1#ping x.x.x.x //使用出介面作為源IP的普通ping
R1#ping x.x.x.x source x.x.x.x //使用指定源位址的擴展ping
R1#debug ip icmp //打開ping的調試過程顯示
R1#undebug ip icmp //關閉ping的調試過程顯示
R1#traceroute x.x.x.x //路徑跟蹤,查看到達目的地所經過的IP
R1(config)#router rip //運行RIP協定,進入RIP協定配置模式
R1(config-router)#version 2 //配置RIP為版本2
R1(config-router)#no auto-summary//關閉自動匯總功能
R1(config-router)#network x.x.x.x //將相關網段發佈到RIP進程中,所有相關子網都會被發佈,命令配置不支援帶遮罩
R1(config-router)#exit //退出RIP協定配置模式
R1(config)#router eigrp x //運行EIGRP,配置EIGRP AS號碼,相鄰設備的AS號碼要求一致
R1(config-router)#no auto-summary//關閉自動匯總功能
R1(config-router)#network x.x.x.x //將相關網段發佈到EIGRP進程中,所有相關子網都會被發佈
R1(config-router)#network x.x.x.x x.x.x.x //將相關網段精確發佈到EIGRP進程中,命令配置支援帶反遮罩
R1(config-router)#exit //退出EIGRP協定配置模式
R1#show ip eigrp neighbors//查看EIGRP鄰居表
R1#show ip eigrp topology //查看EIGRP拓撲表
R1(config)#router ospf x //運行OSPF,配置OSPF本地進程號,該號碼僅有本地意義
R1(config-router)#network x.x.x.x x.x.x.x area x //相關網段精確發佈到OSPF區域中,命令配置要求帶反遮罩,相鄰設備區域號要相同
R1(config-router)#auto-cost reference-bandwidth x //修改參考頻寬,單位是兆
R1(config-router)#exit //退出OSPF協定配置模式
R1#show ip ospf neighbor //查看OSPF鄰居表
R1#show ip ospf database //查看OSPF拓撲表
R1#show ip ospf interface //查看OSPF介面狀態資訊,包括RID、網路類型、hello時間等
C3640上載入NM-16ESW模組來對比交換機。如果是類比2層交換機,需要關閉路由功能。
Switch#vlan database //進入VLAN資料庫模式
Switch(vlan)#vlan x //創建VLAN,刪除時前面加no
Switch(vlan)#exit
Switch#show vlan-switch //查看VLAN表及所屬埠,真實設備或IOU模擬器上的命令為show vlan
Switch#show vtp status //查看VTP資訊,包括功能變數名稱、版本、模式等
Switch(config)#int fastEthernet x/x
Switch(config-if)#switchport mode access //配置埠模式為access
Switch(config-if)#switchport access vlan 10 //將該埠劃入VLAN10,默認所有埠屬於VLAN1
Switch(config-if)#exit
Switch(config)#int fastEthernet x/x //進入單臂路由主介面
Switch(config-if)#switchport trunk encapsulation dot1q //指定trunk封裝使用802.1Q,當交換機支援802.1QISL時使用
Switch(config-if)#switchport mode trunk //配置埠模式為trunk
Switch(config-if)#exit
Switch#show interfaces trunk //查看交換機trunk介面資訊及狀態
Switch(config)#interface vlan x //進入管理IP所在的介面
Switch(config-if)#ip address x.x.x.x x.x.x.x //配置交換機的管理IP
Switch(config-if)#exit
Switch(config)#ip default-gateway x.x.x.x //配置交換機的閘道位址,實現跨網段遠端系統管理
R1(config)#interface fastEthernet x/x
R1(config-if)#no shutdown //單臂路由配置,只需要主介面開啟,子介面會自動繼承開啟
R1(config-if)#exit
R1(config)#interface fastEthernet x/x.x //進入子介面配置模式
R1(config-subif)#encapsulation dot1Q x //配置封裝為802.1Q,並指定該子介面所對應的VLAN
R1(config-subif)#ip address x.x.x.x x.x.x.x //配置該VLAN的閘道位址
R1(config-subif)#exit
R1(config)#access-list x permit x.x.x.x //允許來自某台主機的流量
R1(config)#access-list x permit x.x.x.x x.x.x.x //允許來自某個網段的流量
R1(config)#access-list x deny any //標準ACL的默認操作是拒絕所有流量
R1(config)#interface fastEthernet x/x 
R1(config-if)#ip access-group x in //CAL應用在介面的入方向
R1(config-if)#ip access-group x out //ACL應用在介面的出方向
R1(config-if)#exit
R1(config)#line vty 0 4
R1(config-line)#access-class 1 in //telnet遠端控制,有在ACL中被允許的主機能遠端telnet到本機。
R1(config-line)#exit
R1(config)#access-list 100 permit ip x.x.x.x x.x.x.x x.x.x.x x.x.x.x //允許某個網段到某個網段的流量通過
R1(config)#access-list 100 permit ip host x.x.x.x host x.x.x.x //允許某台主機到某台主機的流量通過
R1(config)#access-list 100 permit ip any any //允許任何IP流量通過
R1(config)#access-list 100 permit tcp any any eq x //允許某種TCP流量通過
R1(config)#access-list 100 permit udp any any eq x //允許某種UDP流量通過
R1(config)#access-list 100 permit icmp any any //允許ping包通過
R1(config)#access-list 100 deny ip any any //擴展ACL的默認操作是拒絕所有流量
R1#show access-lists //查看ACL內容及匹配情況
R1(config)#interface fastEthernet x/x
R1(config-if)#ip nat inside //指定介面為NATinside
R1(config)#interface fastEthernet x/x
R1(config-if)#ip nat outside //指定介面為NAToutside
R1(config)#ip nat inside source list 1 interface fastEthernet x/x overload//配置基於出介面的PAT
R1(config)#access-list 1 permit any //允許任何IP作為NAT的源位址
R1(config)#ip nat inside source static x.x.x.x x.x.x.x //配置靜態NAT
R1(config)#ip nat pool spoto x.x.x.x x.x.x.x netmask 255.255.255.0 //配置NAT的位址集區
R1(config)#ip nat inside source list 1 pool spoto overload //配置基於位址集區的PAT
R1(config)#ip nat inside source static tcp x.x.x.x x interface FastEthernetx/x x //配置靜態埠映射
R1#show ip nat translations //查看NAT轉換表
R1#clear ip nat translation * //清除NAT轉換表,靜態條目不會被刪除
R1-S/C(config)#int serial x/x
R1-S/C(config-if)#clock rate 64000
R1-S/C(config-if)#encapsulation ppp //將介面封裝從預設的HDLC改為PPP封裝
PAP認證配置,認證伺服器端:
R1-S(config)#username xxx password xxx //在認證伺服器端配置本地用戶名密碼
R1-S(config-if)#ppp authentication pap //在認證伺服器端開啟pap認證要求
PAP認證配置,認證用戶端:
R1-C(config-if)#ppp pap sent-username xxx password xxx //在認證用戶端配置pap發送的用戶名和密碼
CHAP認證配置,認證伺服器端:
R1-S(config)#username xxx password xxx //在認證伺服器端配置本地用戶名密碼
R1-S(config-if)#ppp authentication chap //在認證伺服器端開啟chap認證要求
CHAP認證配置,認證用戶端:
R1-C(config-if)#ppp chap hostname xxx //在認證用戶端配置chap發送的用戶名
R1-C(config-if)#ppp chap password xxx //在認證用戶端配置chap發送的密碼
FRSW(config)#frame-relay switching //將路由器類比成框架轉送交換機
FRSW(config)#int serial x/x
FRSW(config-if)#clock rate 64000
FRSW(config-if)#encapsulation frame-relay //將介面封裝從預設的HDLC改為框架轉送封裝
FRSW(config-if)#frame-relay intf-type dce //指定框架轉送交換機介面類別型為DCE
FRSW(config-if)#frame-relay route xxx interface serial x/x xxx //配置框架轉送交換路徑
FRSW(config-if)#exit
FRR(config)#int serial x/x
FRR(config-if)#encapsulation frame-relay //配置框架轉送路由器介面封裝從預設的HDLC改為FR
FRR(config-if)#ip address x.x.x.x x.x.x.x
FRR(config-if)#frame-relay map ip x.x.x.x x broadcast//靜態配置IPDLCI的映射關係,指定對端IP及本端使用的DLCI
FRR(config-if)#exit
FRR#show frame-relay map //查看框架轉送映射表
FRR(config)#int serial x/x
FRR(config-if)#ip ospf network point-to-multipoint //框架轉送下OSPF預設模式是NBMA,無法自動建立鄰居。手動修改網路類型為PTMPPTP
FRR(config-if)#exit

CCNA關鍵知識:
網路模型、IP&VLSM
靜態路由&預設路由
動態路由RIPv2EIGRPOSPF
VLANAccessTrunkVTPSTP、單臂路由、2層交換機遠端系統管理
ACLNAT
WANPPP
IPv6WLAN


Popular