NSX 路由:驗證 DLR 介面

Summary: 本文旨在幫助確定 DLR 的基本條件得到滿足,並且它們按預期運行。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions



確定 DLR 已創建或存在後,請確保 DLR 的所有邏輯介面都存在並具有正確的配置。

手續:
要在確定 DLR 已創建或存在後驗證 DLR 介面的狀態,請執行以下操作:

  1. 在 NSX Manager Shell 中,執行下列命令以取得叢集 ID:
show cluster all 
  1. 執行下列命令以取得主機 ID:
show cluster cluster-id 
  1. 執行下列命令以取得 dlrID (Vdr 名稱):
show logical-router host hostID dlr all brief 
  1. 執行以下命令以取得所有介面的匯總狀態資訊:
show logical-router host hostID dlr dlrID interface all brief 
  1. 執行下列命令以取得所有介面或特定介面的狀態資訊:
show logical-router host hostID dlr dlrID interface (all | intName) verbose 

範例:
nsxmgr# show logical-router host hostID dlr dlrID interface all verbose 

VDR default+edge-1:1460487509 LIF Information :

Name:                570d45550000000a
Mode:                Routing, Distributed, Internal
Id:                  Vxlan:5000
Ip(Mask):            172.16.10.1(255.255.255.0)
Connected Dvs:       Compute_VDS
VXLAN Control Plane: Enabled
VXLAN Multicast IP:  0.0.0.1
State:               Enabled
Flags:               0x2388
DHCP Relay:          Not enabled

Name:                570d45550000000c
Mode:                Routing, Distributed, Internal
Id:                  Vxlan:5002
Ip(Mask):            172.16.30.1(255.255.255.0)
Connected Dvs:       Compute_VDS
VXLAN Control Plane: Enabled
VXLAN Multicast IP:  0.0.0.1
State:               Enabled
Flags:               0x2288
DHCP Relay:          Not enabled

Name:                570d45550000000b
Mode:                Routing, Distributed, Internal
Id:                  Vxlan:5001
Ip(Mask):            172.16.20.1(255.255.255.0)
Connected Dvs:       Compute_VDS
VXLAN Control Plane: Enabled
VXLAN Multicast IP:  0.0.0.1
State:               Enabled
Flags:               0x2388
DHCP Relay:          Not enabled

Name:                570d455500000002
Mode:                Routing, Distributed, Uplink
Id:                  Vxlan:5003
Ip(Mask):            192.168.10.2(255.255.255.248)
Connected Dvs:       Compute_VDS
VXLAN Control Plane: Enabled
VXLAN Multicast IP:  0.0.0.1
State:               Enabled
Flags:               0x2208
DHCP Relay:          Not enabled

 

有用的資訊:

  • LIF “名稱”在主機上的所有 DLR 實例中都是唯一的。在主機和 DLR 的主控制器節點上也是如此。
  • LIF 的“模式”顯示 LIF 是路由還是橋接,以及它是內部鏈路還是上行鏈路。
  • 「Id」會顯示 LIF 類型和對應的服務 ID (VXLAN 和 VNI,或是 VLAN 和 VID)。
  • “Ip(掩碼)”顯示為“路由”LIF 。
  • 如果 LIF 以混合或單播模式連接到 VXLAN,則“VXLAN 控制平面”為“已啟用”。
  • 對於 VXLAN 處於單播模式的 VXLAN LIF ,「VXLAN 組播 IP」顯示為「0.0.0.1」;否則會顯示實際的多點傳送 IP 位址。
  • 路由 LIF 的「狀態」應為「已啟用」。對於橋接 LIF,它在執行橋接的主機上為“啟用”,在所有其他主機上為“初始化”。
  • “標誌”是 LIF 狀態的摘要表示形式,顯示 LIF 是否為:
    • 路由或橋接
    • VLAN LIF 是否為 DI
    • 是否已啟用 DHCP 轉送
    • 值得注意的是標誌0x0100,它是在 VXLAN VNI 加入由 DLR 引起時設置的(而不是在該 VXLAN 上具有虛擬機的主機)
    • 標誌以「簡短」模式以更易讀的格式顯示。
nsxmgr# show logical-router host hostID dlr dlrID interface all brief

VDR default+edge-1 LIF Information :

State Legend: [A:Active], [d:Deleting], [X:Deleted], [I:Init],[SF-L:Soft Flush LIF]
Modes Legend: [B:Bridging],[E: Empty], [R:Routing],[S:Sedimented],[D:Distributed]
Modes Legend: [In:Internal],[Up:Uplink]

Lif Name             Id              Mode     State    Ip(Mask)
--------             --              -----    -----    --------
570d45550000000a     Vxlan:5001      R,D,In   A        172.16.10.1(255.255.255.0)
570d45550000000c     Vxlan:5003      R,D,In   A        172.16.30.1(255.255.255.0)
570d45550000000b     Vxlan:5002      R,D,In   A        172.16.20.1(255.255.255.0)
570d455500000002     Vxlan:5000      R,D,Up   A        192.168.10.5(255.255.255.248)

Affected Products

VxBlock and Vblock Systems

Products

ScaleIO
Article Properties
Article Number: 000206928
Article Type: How To
Last Modified: 16 Jun 2025
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.