Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
修改失敗時開啟的行為
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本頁說明如何修改 Cloud Interconnect 的 MACsec 故障開放行為。
您可以選擇啟用 Cloud Interconnect 適用的 MACsec,並採用故障開放行為。「故障開放」是指如果 Google 的邊緣路由器無法與您的路由器建立 MACsec 金鑰協議 (MKA) 工作階段,Cloud Interconnect 連線仍會運作,但流量不會加密。如果無法與路由器建立 MKA 工作階段,預設設定會捨棄所有流量。
您只能使用 Google Cloud CLI 變更 MACsec 容錯移轉行為。
啟用無法開啟行為
啟用 Cloud Interconnect 的 MACsec (具有故障開放行為) 前,請先確認 Cloud Interconnect 連線沒有任何流量。
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 和/或其關聯企業的註冊商標。
上次更新時間:2026-05-17 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2026-05-17 (世界標準時間)。"],[],[]]