NSXNSX-V 設定中的所有邏輯路由器介面都具有相同的 MAC 位址 (02:50:56:56:44:52)。從 NSX 3.0.2 開始,您可以在 NSX 中變更此位址,以避免在將虛擬機器從 NSX-V 設定移轉至 NSX 設定時發生問題。

變更 MAC 位址涉及進行兩次 API 呼叫。

如果您尚未建立任何傳輸節點,請進行下列 GET API 呼叫。例如:
GET https://10.40.79.126/api/v1/global-configs/RoutingGlobalConfig

Response:
{
  "l3_forwarding_mode" : "IPV4_ONLY",
  "logical_uplink_mtu" : 1500,
  "vdr_mac" : "02:50:56:56:44:77",
  "vdr_mac_nested" : "02:50:56:56:44:52",
  "allow_changing_vdr_mac_in_use" : true,
  "resource_type" : "RoutingGlobalConfig",
  "id" : "49b261fe-f4e4-46ad-958c-da9cb4271e32",
  "display_name" : "49b261fe-f4e4-46ad-958c-da9cb4271e32",
  "_create_user" : "system",
  "_create_time" : 1595313890595,
  "_last_modified_user" : "admin",
  "_last_modified_time" : 1595465694142,
  "_system_owned" : false,
  "_protection" : "NOT_PROTECTED",
  "_revision" : 14
}
接受呼叫的回應、變更 vdr_mac 值,然後使用它進行下列 PUT API 呼叫。例如:
PUT  https://10.40.79.126/api/v1/global-configs/RoutingGlobalConfig
{
  "l3_forwarding_mode" : "IPV4_ONLY",
  "logical_uplink_mtu" : 1500,
  "vdr_mac" : "02:50:56:56:44:99",
  "vdr_mac_nested" : "02:50:56:56:44:53",
  "allow_changing_vdr_mac_in_use" : true,
  "resource_type" : "RoutingGlobalConfig",
  "id" : "49b261fe-f4e4-46ad-958c-da9cb4271e32",
  "display_name" : "49b261fe-f4e4-46ad-958c-da9cb4271e32",
  "_create_user" : "system",
  "_create_time" : 1595313890595,
  "_last_modified_user" : "admin",
  "_last_modified_time" : 1595465694142,
  "_system_owned" : false,
  "_protection" : "NOT_PROTECTED",
  "_revision" : 14
}

Response:
{
  "l3_forwarding_mode" : "IPV4_ONLY",
  "logical_uplink_mtu" : 1500,
  "vdr_mac" : "02:50:56:56:44:99",
  "vdr_mac_nested" : "02:50:56:56:44:53",
  "allow_changing_vdr_mac_in_use" : true,
  "resource_type" : "RoutingGlobalConfig",
  "id" : "49b261fe-f4e4-46ad-958c-da9cb4271e32",
  "display_name" : "49b261fe-f4e4-46ad-958c-da9cb4271e32",
  "_create_user" : "system",
  "_create_time" : 1595313890595,
  "_last_modified_user" : "admin",
  "_last_modified_time" : 1595466163148,
  "_system_owned" : false,
  "_protection" : "NOT_PROTECTED",
  "_revision" : 15
}

如果您已建立傳輸節點,請發出相同的 GET 和 PUT API 呼叫,但對於 PUT 呼叫,請將參數 allow_changing_vdr_mac_in_use 設為 true