修改失敗時開啟的行為
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本頁說明如何修改 Cloud Interconnect 的 MACsec 開啟失敗行為。
您可以選擇啟用 Cloud Interconnect 的 MACsec,並採用失效開啟行為。失敗開啟是指如果 Google 的邊緣路由器無法與您的路由器建立 MACsec 金鑰協議 (MKA) 工作階段,Cloud Interconnect 連線仍可透過未加密的流量運作。如果無法透過路由器建立 MKA 工作階段,預設設定會捨棄所有流量。
您只能使用 Google Cloud CLI 變更 MACsec 備援行為。
啟用失敗時開啟的行為
請先確認 Cloud Interconnect 連線沒有任何流量,再啟用 Cloud Interconnect 適用的 MACsec 並啟用失敗時開啟的行為。
gcloud
執行下列指令:
gcloud compute interconnects macsec update INTERCONNECT_CONNECTION_NAME \
--no-enabled \
--fail-open
gcloud compute interconnects macsec update INTERCONNECT_CONNECTION_NAME \
--enabled
停用失敗時維持開放狀態的行為
如果您為 Cloud Interconnect 適用的 MACsec 啟用失敗時繼續運作行為,可以選擇稍後停用失敗時繼續運作行為。停用失敗開啟行為後,如果 Google 邊緣路由器無法與路由器建立 MACsec 金鑰協議 (MKA) 工作階段,則連線會捨棄所有流量。
gcloud
執行下列指令:
gcloud compute interconnects macsec update INTERCONNECT_CONNECTION_NAME \
--no-enabled \
--no-fail-open
gcloud compute interconnects macsec update INTERCONNECT_CONNECTION_NAME \
--enabled
後續步驟
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-06-16 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-06-16 (世界標準時間)。"],[],[]]