• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 关于我们

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

目录

15-VCF Fabric命令

本章节下载 15-VCF Fabric命令  (200.95 KB)

15-VCF Fabric命令


1 VCF Fabric

 

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

【使用指导】

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

【举例】

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

<System> display vcf-fabric role

Default role: access

Current role: access

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

字段

描述

Default role

设备缺省的VCF Fabric角色

Current role

设备当前配置的VCF Fabric角色

 

1.1.2  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-GigabitEthernet1/0/1

        Ten-GigabitEthernet1/0/2

Downlink interface:

        Ten-GigabitEthernet1/0/3

        Ten-GigabitEthernet1/0/4

AP-side interfaces:

        GigabitEthernet1/0/7

        GigabitEthernet1/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-GigabitEthernet1/0/5

        interface: Ten-GigabitEthernet1/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-2 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.3  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: 14.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-3 display vcf-fabric underlay template-version命令显示信息描述表

字段

描述

Supported template version

支持的模板版本

Current template version

当前运行的模板版本

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

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

 

1.1.4  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.5  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设备暂时下线再重新上线。

【举例】

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

<Sysname> system-view

[Sysname] vcf-fabric underlay autoconfigure vlan_leaf.template

1.1.6  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

【参数】

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.7  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

【参数】

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.8  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保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们