修改应急开启行为
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页面介绍如何修改 MACsec for Cloud Interconnect 应急开启行为。
您可以选择启用具有应急开启行为的 MACsec for Cloud Interconnect。应急开启意味着,如果 Google 的边缘路由器无法与您的路由器建立 MACsec 密钥协议 (MKA) 会话,则 Cloud Interconnect 仍可以通过未加密的流量运行。如果无法与您的路由器建立 MKA 会话,则默认设置会丢弃所有流量。
您只能使用 Google Cloud CLI 更改 MACsec 故障切换行为。
启用应急开启行为
在启用具有应急开启行为的 MACsec for Cloud Interconnect 之前,请验证您的 Cloud Interconnect 连接上没有流量。
gcloud
运行以下命令:
gcloud compute interconnects macsec update INTERCONNECT_CONNECTION_NAME \
--no-enabled \
--fail-open
gcloud compute interconnects macsec update INTERCONNECT_CONNECTION_NAME \
--enabled
停用应急开启行为
如果您为 MACsec for Cloud Interconnect 启用了应急开启行为,则可以稍后选择停用应急开启行为。开启应急开启行为后,如果 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
后续步骤
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-30。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-01-30。"],[],[]]