API Guide

3. 创建 NVE 实例并将环回接口配置为 VXLAN 源隧道接口。
OS10(config)# nve
OS10(config-nve)# source-interface loopback 1
4. 指定 NSX 控制器可访问性信息。
OS10(config-nve)# controller ovsdb
OS10(config-nve-ovsdb)# ip 10.16.140.182 port 6640 ssl
OS10(config-nve-ovsdb)# max-backoff 10000
OS10(config-nve-ovsdb)# exit
5. 分配要由控制器管理的接口。
OS10(config)# interface ethernet 1/1/25:3
OS10(config-if-eth1/1/25:3)# switchport mode trunk
OS10(config-if-eth1/1/25:3)# no switchport access vlan
OS10(config-if-eth1/1/25:3)# nve-controller
6. 可选启用 BFD
OS10(config)# bfd enable
验证控制器配置
VTEP 1
要查看有关 VTEP 1 上基于控制器的信息请使用 show nve controller 命令。
OS10# show nve controller
Management IP : 10.16.140.11/16
Gateway IP : 200.0.0.1
Max Backoff : 10000
Configured Controller : 10.16.140.181:6640 ssl (connected)
Controller Cluster
IP Port Protocol Connected State Max-Backoff
10.16.140.182 6640 ssl true ACTIVE 10000
10.16.140.183 6640 ssl true ACTIVE 10000
10.16.140.181 6640 ssl true ACTIVE 10000
NVE Controller Ports
ethernet1/1/54:3
要显示 VXLAN VNID、端口成员、源接口和远程 VTEP请使用 show virtual-network 命令。
OS10# show virtual-network
Codes: DP - MAC-learn Dataplane, CP - MAC-learn Controlplane, UUD - Unknown-Unicast-Drop
Virtual Network: 0
Members:
Virtual Network: 6000
Members:
VLAN 20: ethernet1/1/54:3
VxLAN Virtual Network Identifier: 6000
Source Interface: loopback1(200.0.0.1)
Remote-VTEPs (flood-list): 13.0.0.5(CP)
要查看 VXLAN 中的所有复制器及其状态请使用 show nve replicators 命令。
OS10# show nve replicators
Codes: * - Active Replicator
BFD Status:Disabled
Replicators State
-----------------------
13.0.0.5 Up
VXLAN 941