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 的 “Mode” 显示 LIF 是路由还是桥接,以及它是内部链路还是上行链路。
  • “Id”显示 LIF 类型和相应的服务 ID ( VXLAN 和 VNI ,或 VLAN 和 VID )。
  • “路由”LIF 显示为“IP (掩码)”。
  • 如果 LIF 在混合或单播模式下连接到 VXLAN ,则 “ VXLAN 控制平面 ” 为 “已启用 ” 。
  • 对于 VXLAN 处于单播模式的 VXLAN LIF ,“VXLAN Multicast IP”显示为“0.0.0.1”;否则,将显示实际的多播 IP 地址。
  • 对于路由的 LIF ,“State”应为 “Enabled”。对于桥接 LIF ,它在执行桥接的主机上为 “Enabled” 并在所有其他主机上为 “Init” 。
  • “标记”是 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.