• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

12-网络管理和监控命令参考

目录

20-VCF Fabric命令

本章节下载 20-VCF Fabric命令  (213.62 KB)

docurl=/cn/Service/Document_Software/Document_Center/Switches/Catalog/S12500/S12500G-AF/Command/Command_Manual/H3C_S12500G_AF_R8047Pxx-4846/12/202207/1651597_30005_0.htm

20-VCF Fabric命令


1 VCF Fabric

说明

非缺省MDC仅支持本章中的display vcf-fabric rolevcf-fabric role命令。

1.1  VCF Fabric配置命令

1.1.1  display vcf-fabric role

display vcf-fabric role命令用来查看设备在VCF Fabric中的角色。

【命令】

display vcf-fabric role

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

mdc-admin

mdc-operator

【使用指导】

设备在VCF Fabric中的角色可通过vcf-fabric role命令进行配置,配置后的角色可以通过本命令查看。

仅非缺省MDC支持VCF Fabric空角色,空角色是未指定其VCF Fabric角色。这种情况下,非缺省MDC不支持下发VCF Fabric自动配置模板。

【举例】

# 查看设备在VCF Fabric中的角色。

<System> display vcf-fabric role

Default role: leaf

Current role: leaf

表1-1 display vcf-fabric role命令显示信息描述表

字段

描述

Default role

设备缺省的VCF Fabric角色,包含如下取值

·     Not specified:设备角色为空

·     spine:设备角色为spine

·     aggr:设备角色为aggr

·     leaf:设备角色为leaf

·     access:设备角色为access

Current role

设备当前配置的VCF Fabric角色,包含如下取值

·     Not specified:设备角色为空

·     spine:设备角色为spine

·     aggr:设备角色为aggr

·     leaf:设备角色为leaf

·     access:设备角色为access

 

【相关命令】

·     vcf-fabric role

1.1.2  display vcf-fabric topology

display vcf-fabric topology命令用来查看VCF Fabric的拓扑信息。

【命令】

display vcf-fabric topology

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

【使用指导】

只有在主Spine设备上执行本命令,才能查看到拓扑信息。

要正确显示VCF Fabric拓扑信息,必须保证VCF Fabric的拓扑发现和Underlay网络配置自动化功能已经开启。

【举例】

# 查看VCF Fabric组网的拓扑信息。

<Sysname> display vcf-fabric topology

                                  Topology Information

----------------------------------------------------------------------------------

* indicates the master spine role among all spines

SpineIP           Interface                      Link LeafIP              Status

*10.11.113.51     Ten-GigabitEthernet3/0/1       Up   10.11.113.52        Deploying

                  Ten-GigabitEthernet3/0/2       Down --                  --

                  Ten-GigabitEthernet3/0/3       Down --                  --

                  Ten-GigabitEthernet3/0/4       Down --                  --

                  Ten-GigabitEthernet3/0/5       Up   10.11.113.53        Deploying

                  Ten-GigabitEthernet3/0/6       Down --                  --

                  Ten-GigabitEthernet3/0/7       Down --                  --

                  Ten-GigabitEthernet3/0/8       Down --                  --

表1-2 display vcf-fabric topology命令显示信息描述表

字段

描述

SpineIP

Leaf-Spine拓扑网络中,Spine节点设备的管理以太网接口的IPv4地址,*表示主Spine节点

Interface

Spine节点设备上连接Leaf节点设备的接口

当设备角色为主Spine节点时,显示其所有接口

Link

Spine节点设备上连接Leaf节点设备的接口状态

LeafIP

与Spine节点设备相连的Leaf节点设备上接口的IPv4地址

Status

Leaf节点设备Underlay网络的自动化配置的状态

·     --:未开始

·     Deploying:正在进行自动化配置

 

【相关命令】

·     vcf-fabric underlay autoconfigure

·     vcf-fabric topology enable

1.1.3  display vcf-fabric underlay autoconfigure

display vcf-fabric underlay autoconfigure命令用来查看Underlay网络的自动化配置信息。

【命令】

display vcf-fabric underlay autoconfigure

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

【使用指导】

通过模板文件进行Underlay网络的自动配置后,可通过本命令查看Underlay网络的自动化配置信息。

【举例】

# 查看Underlay网络自动化配置信息。

<Sysname> display vcf-fabric underlay autoconfigure

success command:

        #

          system

          clock timezone beijing add 08:00:00

        #

          system

          lldp global enable

          lldp compliance cdp

        #

          system

          ospf 1

          graceful-restart ietf

          area 0.0.0.0

        #

          system

          interface LoopBack0

        #

          system

          l2vpn enable

        #

          system

          vxlan tunnel mac-learning disable

          vxlan tunnel arp-learning disable

        #

          system

          stp global enable

        #

          system

          ntp-service enable

          ntp-service unicast-peer 172.16.1.136

        #

          system

          netconf soap https enable

          restful https enable

        #

          system

          info-center loghost 172.16.1.136

        #

          system

          local-user aaa

          password ******

          service-type https

          authorization-attribute user-role network-admin

        #

          system

          line vty 0 63

          authentication-mode scheme

          user-role network-admin

        #

          system

          bgp 100

          graceful-restart

          address-family l2vpn evpn

        #

          system

          vcf-fabric topology enable

        #

          system

          neutron

          rabbit user openstack

          rabbit password ******

          rabbit host ip 172.16.1.136

          restful user aaa password ******

          vpn-target 1:1 export-extcommunity

          vsi-mac 789c-2f5f-0200

          network-type distributed-vxlan

          proxy-arp enable

          l2agent enable

          l3agent enable

        #

          system

          snmp-agent

          snmp-agent packet max-size 4096

          snmp-agent community read public

          snmp-agent community write private

          snmp-agent sys-info version all

        #

Uplink interface:

        Ten-GigabitEthernet3/0/1

        Ten-GigabitEthernet3/0/2

Downlink interface:

        Ten-GigabitEthernet3/0/3

        Ten-GigabitEthernet3/0/4

AP-side interfaces:

        Ten-GigabitEthernet3/0/7

        Ten-GigabitEthernet3/0/8

Loopback0 IP allocation:

        Device_MAC         Loopback_IP       Management_IP     State

        a43c-adae-0400     200.1.1.6         172.16.1.193      Up

        a43c-9aa7-0100     200.1.1.4         172.16.1.152      Up

Loopback1 IP allocation:

        Device_MAC         Loopback_IP       Management_IP     State

        a43c-adae-0400     100.1.1.6         172.16.1.193      Up

        a43c-9aa7-0100     100.1.1.4         172.16.1.152      Up

Aggregation configuration:

        AggrID: 7

        interface: Ten-GigabitEthernet3/0/5

        interface: Ten-GigabitEthernet3/0/6

IRF allocation:

        Self Bridge Mac: a43c-adae-0400

        IRF Status: Yes

        Member List: [1, 2]

BGP peer configuration:

        Device_MAC: 265b-208d-0300

        Device_role:leaf

        BGP peer list:

                200.1.4.5

        Device_MAC: 1ea6-06a4-0500

        Device_role:spine

        BGP peer list:

                200.1.4.4

                200.1.4.7

        Device_MAC: 1ead-aed1-0600

        Device_role:leaf

        BGP peer list:

                200.1.4.5

Device_MAC: 265b-208d-0300

        Device_role:leaf

        BGP peer list:

                200.1.4.5

        Device_MAC: 1ea6-06a4-0500

        Device_role:spine

        BGP peer list:

                200.1.4.4

                200.1.4.7

        Device_MAC: 1ead-aed1-0600

        Device_role:leaf

        BGP peer list:

                200.1.4.5

表1-3 display vcf-fabric underlay autoconfigure命令显示信息描述表

字段

描述

success command

配置自动化过程中,已经成功执行的命令行

Uplink interface

设备的上行口

Downlink interface

设备的下行口

AP-side interfaces

设备连接AP的接口

Loopback0 IP allocation

为Loopback接口分配的IP地址列表

Loopback1 IP allocation

为Loopback1接口分配的IP地址列表

Aggregation configurations

二层聚合组信息

IRF allocation

IRF配置信息,包括:IRF的桥MAC地址、IRF状态和成员设备编号

BGP peer configuration

BGP配置信息,当组网为spine-aggr-leaf三层拓扑时,仅在master spine设备上显示,显示信息包含所有spine和leaf设备的bgp peer信息

 

【相关命令】

·     vcf-fabric underlay autoconfigure

1.1.4  display vcf-fabric underlay template-version

display vcf-fabric underlay template-version命令用来查看VCF Fabric自动配置功能支持的模板版本和当前自动部署使用的模板版本。

【命令】

display vcf-fabric underlay template-version

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

【使用指导】

通过此命令查看到的VCF Fabric自动配置功能支持的模板版本为最高版本,格式为“x.y”。实际部署时,采用的模板版本中的“x”可小于等于最高版本;若大于最高版本,可能导致通过模板文件进行自动部署失败。模板版本中的“y”取值不影响兼容性,不同取值仅对应不同的静态配置组合。

【举例】

# VCF Fabric的Underlay自动部署未启动时,查看模板版本。

<Sysname> display vcf-fabric underlay template-version

Supported template version: 1.0

Current template version: Not available

# VCF Fabric的Underlay自动部署完成后,查看模板版本。

<Sysname> display vcf-fabric underlay template-version

Supported template version: 1.0

Current template version: 1.0

表1-4 display vcf-fabric underlay template-version命令显示信息描述表

字段

描述

Supported template version

支持的模板版本

Current template version

当前运行的模板版本

·     若显示为Not available表示Underlay自动部署未启动

·     若显示为None表示Underlay自动部署已完成,但模板未包含版本号

 

1.1.5  vcf-fabric role

vcf-fabric role命令用来指定设备在VCF Fabric网络拓扑中的角色。

undo vcf-fabric role命令用来恢复缺省情况。

【命令】

vcf-fabric role { access | aggr | leaf | spine }

undo vcf-fabric role

【缺省情况】

设备在VCF Fabric网络拓扑中的角色为Leaf节点角色。

【视图】

系统视图

【缺省用户角色】

network-admin

mdc-admin

【参数】

access:指定Access节点角色。

aggr:指定Aggr节点角色。

leaf:指定Leaf节点角色。

spine:指定Spine节点角色。

【使用指导】

网络拓扑角色的修改需要设备重启后才能生效。

当设备存在非缺省MDC时,非缺省MDC的VCF Fabric的角色缺省为空角色,且支持通过本命令进行配置。非缺省MDC不支持VCF Fabric的自动化部署,但Director可识别非缺省MDC的角色并通过Netconf等方式为其下发部分配置。

【举例】

# 指定设备在VCF Fabric网络拓扑中的角色为Spine节点。

<Sysname> system-view

[Sysname] vcf-fabric role spine

1.1.6  vcf-fabric spine-role master

vcf-fabric spine-role master命令用来配置设备角色为主Spine节点。

undo vcf-fabric spine-role命令用来恢复缺省情况。

【命令】

vcf-fabric spine-role master

undo vcf-fabric spine-role

【缺省情况】

设备不作为主Spine节点。

【视图】

系统视图

【缺省用户角色】

network-admin

【使用指导】

本命令只能在Spine节点设备上配置。

采用Leaf-Spine的VCF Fabric网络拓扑且网络中存在多个Spine节点时,主Spine节点负责收集全网拓扑,进行Loopback IP地址分配等。在Underlay网络配置自动化过程中,一般通过执行模板文件将设备角色配置为主Spine节点,不需要进行手工配置。

通过本命令修改Spine节点设备的角色后,需要顺序执行undo vcf-fabric underlay autoconfigurevcf-fabric underlay autoconfigure命令重启Underlay网络的自动配置进程,修改后的角色才能生效。

【举例】

# 配置设备角色为主Spine节点。

<Sysname> system-view

[Sysname] vcf-fabric spine-role master

For this configuration to take effect, you must execute the undo vcf-fabric underlay autoconfigure and vcf-fabric underlay autoconfigure commands in sequence.

【相关命令】

·     vcf-fabric role

·     vcf-fabric underlay autoconfigure

1.1.7  vcf-fabric topology enable

vcf-fabric topology enable命令用来开启VCF Fabric网络拓扑发现功能。

undo vcf-fabric topology enable命令用来关闭VCF Fabric网络拓扑发现功能。

【命令】

vcf-fabric topology enable

undo vcf-fabric topology enable

【缺省情况】

VCF Fabric网络拓扑发现功能处于关闭状态。

【视图】

系统视图

【缺省用户角色】

network-admin

【举例】

# 开启VCF Fabric网络拓扑发现功能。

<Sysname> system-view

[Sysname] vcf-fabric topology enable

1.1.8  vcf-fabric underlay autoconfigure

vcf-fabric underlay autoconfigure命令用来采用指定的模板文件进行Underlay网络的自动配置。

undo vcf-fabric underlay autoconfigure命令用来取消自动化配置。

【命令】

vcf-fabric underlay autoconfigure template

undo vcf-fabric underlay autoconfigure

【缺省情况】

未指定进行Underlay网络自动配置的模板文件。

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

template模板文件名,以“.template”为后缀,从存储介质名称开始包括后缀名最多可输入127个字符,不区分大小写。

【使用指导】

用户预先通过TFTP等方式将模板文件保存到本地设备,执行本命令后,设备将采用指定的模板文件进行Underlay网络的自动配置。

执行undo vcf-fabric underlay autoconfigure命令取消自动化配置后,如果再次使用vcf-fabric underlay autoconfigure重新指定模板文件,会导致Spine分配给Leaf设备的Loopback IP地址变化,从而使Leaf设备暂时下线再重新上线。

【举例】

# 采用模板文件vxlan_leaf.template进行Underlay网络的自动配置。

<Sysname> system-view

[Sysname] vcf-fabric underlay autoconfigure vxlan_leaf.template

1.1.9  vcf-fabric underlay netconf-username

vcf-fabric underlay netconf-username命令用来设置Spine设备通过Netconf收集全局拓扑时使用的用户名。

undo vcf-fabric underlay netconf-username命令用来恢复缺省情况。

【命令】

vcf-fabric underlay netconf-username username

undo vcf-fabric underlay netconf-username

【缺省情况】

Spine设备通过Netconf收集全局拓扑时,使用模板文件中定义的用户名。

【视图】

系统视图

【缺省用户角色】

network-admin

mdc-admin

【参数】

username:Spine设备通过Netconf收集全局拓扑时使用的用户名,为1~63个字符的字符串,区分大小写。

【使用指导】

在VCF Fabric组网中,Underlay网络自动化部署时,Spine设备使用模板中定义的用户名和密码与Underlay网络中的设备建立Netconf连接,通过Netconf收集全局拓扑信息。自动化部署完成后,若用户手动更改Underlay网络设备上的用户名或密码,会导致Spine设备与其断开Netconf连接,Spine设备无法感知Underlay网络的拓扑变化。此时,可以在Spine设备上执行本命令修改Netconf操作使用的用户名,使其与Underlay网络设备上的用户名保持一致,并重新建立Netconf连接,以便进行拓扑收集。

在VCF Fabric组网中,所有Underlay网络设备上用于建立Netconf连接的用户名和密码必须相同。

【举例】

# 设置Spine设备通过Netconf收集全局拓扑时,使用的用户名为aaa。

<Sysname> system-view

[Sysname] vcf-fabric underlay netconf-username aaa

1.1.10  vcf-fabric underlay netconf-password

vcf-fabric underlay netconf-password命令用来设置Spine设备通过Netconf收集全局拓扑时使用的密码。

undo vcf-fabric netconf-underlay password命令用来恢复缺省情况。

【命令】

vcf-fabric underlay netconf-password { cipher | simple } string

undo vcf-fabric underlay netconf-password

【缺省情况】

Spine设备通过Netconf收集全局拓扑时,使用模板文件中定义的密码。

【视图】

系统视图

【缺省用户角色】

network-admin

mdc-admin

【参数】

cipher:以密文方式设置密码。

simple:以明文方式设置密码,该密码将以密文形式存储。

string:Spine设备通过Netconf收集全局拓扑时使用的密码,区分大小写。明文密码为1~63个字符的字符串;密文密码为1~127个字符的字符串。

【使用指导】

在VCF Fabric组网中,Underlay网络自动化部署时,Spine设备使用模板中定义的用户名和密码与Underlay网络中的设备建立Netconf连接,通过Netconf收集全局拓扑信息。自动化部署完成后,若用户手动更改Underlay网络设备上的用户名或密码,会导致Spine设备与其断开Netconf连接,Spine设备无法感知Underlay网络的拓扑变化。此时,可以在Spine设备上执行本命令修改Netconf操作使用的密码,使其与Underlay网络设备上的密码保持一致,并重新建立Netconf连接,以便进行拓扑收集。

在VCF Fabric组网中,所有Underlay网络设备上用于建立Netconf连接的用户名和密码必须相同。

【举例】

# 设置Spine设备通过Netconf收集全局拓扑时,使用的密码为明文aaa。

<Sysname> system-view

[Sysname] vcf-fabric underlay netconf-password simple aaa

1.1.11  vcf-fabric underlay pause

vcf-fabric underlay pause命令用来暂停Underlay网络的自动配置功能。

undo vcf-fabric underlay pause命令用来重新启动Underlay网络的自动配置功能。

【命令】

vcf-fabric underlay pause

undo vcf-fabric underlay pause

【缺省情况】

Underlay网络的自动配置功能处于非暂停状态。

【视图】

系统视图

【缺省用户角色】

network-admin

【使用指导】

设备已经启动Underlay网络的自动配置功能后,可利用本命令暂停自动配置功能。

【举例】

# 暂停Underlay网络的自动配置功能。

<sysname> system-view

[sysname] vcf-fabric underlay pause

 

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们