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

H3C S3600系列以太网交换机 命令手册-RELEASE 1510(V1.04)

29-IRF_FABRIC命令

本章节下载  (162.25 KB)

docurl=/cn/Service/Document_Software/Document_Center/Switches/Catalog/S3600/S3600-SI/Command/Command_Manual/S3600-SI_CM(V1.04)/200711/317224_30005_0.htm

29-IRF_FABRIC命令

目  录

第1章 IRF Fabric命令... 1-1

1.1 IRF Fabric命令.. 1-1

1.1.1 change self-unit 1-1

1.1.2 change unit-id. 1-1

1.1.3 display ftm.. 1-3

1.1.4 display irf-fabric. 1-4

1.1.5 display rmon history unit 1-5

1.1.6 display rmon statistics unit 1-5

1.1.7 fabric save-unit-id. 1-6

1.1.8 fabric-port enable. 1-8

1.1.9 ftm fabric-vlan. 1-9

1.1.10 irf-fabric authentication-mode. 1-10

1.1.11 reset ftm statistics. 1-10

1.1.12 set unit name. 1-11

1.1.13 sysname. 1-12

 


第1章  IRF Fabric命令

1.1  IRF Fabric命令

1.1.1  change self-unit

【命令】

change self-unit to { unit-id | auto-numbering }

【视图】

系统视图

【参数】

unit-id:修改后的Unit编号。

auto-numbering:自动编号。

【描述】

change self-unit命令用来修改当前交换机的Unit ID。缺省情况下,在不加入IRF Fabric的情况下,交换机的Unit ID为1;在加入IRF Fabric后,交换机由FTM功能自动编号,Unit ID的配置范围为1~8。

&  说明

在没有使能Fabric端口的情况下,不能更改本地交换机的Unit ID。

 

【举例】

# 配置当前交换机使用自动编号。

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] change self-unit to auto-numbering

1.1.2  change unit-id

【命令】

change unit-id unit-id1 to { unit-id2 | auto-numbering }

【视图】

系统视图

【参数】

unit-id1:待修改设备当前的Unit编号。

unit-id2:设备修改后的Unit编号。

auto-numbering:自动编号。

【描述】

change unit-id命令用来配置Fabric内的交换机的Unit ID。缺省情况下,在加入IRF Fabric时,交换机均使用自动编号。

l              如更改后的Unit ID在Fabric内不存在,则Fabric系统将更改后的Unit ID的优先级变为5,并将更改后的Unit ID存贮到修改的Unit的Flash中去。

l              如更改后的Unit ID已经存在,则系统提示是否进行更改。如选择更改,则原Unit ID将被更改,并将该Unit的优先级变更为5。用户可以执行命令fabric save-unit-id将修改后的ID存储在Unit的Flash内,并将原Unit ID信息清除。

l              如更改方式选择为auto-numbering,则系统保留该Unit的ID,同时将该Unit的优先级变更为10。用户可以执行命令fabric save-unit-id将修改后的ID存储在Unit的Flash内,并将原Unit ID信息清除。

&  说明:

l      Fabric内的Unit ID不一定是按顺序的编排,即非1~8按顺序编排。

l      Fabric的Unit ID之间可不连续。

l      当Unit ID 修改成功且配置同步结束后,最好重新启动设备。

 

相关配置可参考命令fabric save-unit-id

【举例】

# 修改交换机的Unit ID从6改成4,使用display ftm命令可以查看当前Fabric中的各Unit的基本信息。

<H3C> display ftm topology-database

Total number of units in fabric : 2, My Unit ID : 6

UID CPU-Mac        Priority Stack-Port Board-ID A/M

1  000f-e20f-5002 10           /Right 1        A

2  000f-e20f-5132 10       Left/      1        A 

3  000f-e20f-5252 10           /Right 1        A

4  000f-e20f-8922 10       Left/      1        A 

5  000f-cbb7-2142 10           /Right 1        A

*6  000f-cbb7-3264 10       Left/      1        A 

7  000f-cbb7-2260 10           /Right 1        A

8  000f-cbb7-2734 10       Left/      1        A 

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] change unit-id 6 to 4

 The unit 4 already exists in fabric.

 Continue? [Y/N] y

%Apr  2 00:48:34:574 2000 H3C FTM/3/DDPFLA:- 6 -Change unitid successful, un

it 4 saved UnitID(4) in flash!

[H3C] display ftm topology-database

Total number of units in fabric : 2, My Unit ID : 4

UID CPU-Mac        Priority Stack-Port Board-ID A/M

1  000f-e20f-5002 10           /Right 1        A

2  000f-e20f-5132 10       Left/      1        A 

3  000f-e20f-5252 10           /Right 1        A

*4  000f-cbb7-3264 5        Left/      1       M 

5  000f-cbb7-2142 10           /Right 1        A

6  000f-e20f-8922 10       Left/      1        A 

7  000f-cbb7-2260 10           /Right 1        A

8  000f-cbb7-2734 10       Left/      1        A 

可以看到,初始情况下MAC地址为“000f-cbb7-3264”的设备Unit ID为6,经过配置后,Unit ID变为4,且设备的优先级变为5。

1.1.3  display ftm

【命令】

display ftm{ information | topology-database }

【视图】

任意视图

【参数】

information:显示FTM协议的相关信息,包括DDP状态,Unit ID号,Fabric链路状态,Fabric端口状态,DDP报文统计等。

topology-database显示关于Fabric的拓扑信息数据库的相关信息。

【描述】

display ftm命令用来显示当前Fabric中的协议信息或拓扑数据库信息。

【举例】

# 显示交换机的FTM协议信息。

<H3C> display ftm information

FTM State       : HB STATE

Unit ID         : 2 (FTM-Master)

 

Fabric Type     : Line

Fabric Auth     : NONE

Fabric Vlan ID  : 4093

Left Port       : Disable

Right Port      : Normal

 

Advertise       : Send = 5, Receive = 3

Advertise ACK   : Send = 0, Receive = 5

Heart Beat      : Send = 20, Receive = 0

 

Left Port       : Index = 255, IsEdge = 0

Right Port      : Index = 25, IsEdge = 0

 

Units Num Left  : 1

Units Num Right : 2

 

Units Num Backup: 2

1.1.4  display irf-fabric

【命令】

display irf-fabric [ port | status ]

【视图】

任意视图

【参数】

port:显示Fabric端口。

status:显示当前Fabric的工作状态,包括Fabric name及各Unit的编号等信息。

【描述】

display irf-fabric命令用来查看整个Fabric的信息,包括设备的Unit ID、Unit name、系统运行模式等。如果是从某台设备的Console口查看Fabric信息,则显示信息中在本设备的Unit ID处打上一个*号。

【举例】

# 在Unit 1的Console口上查看Fabric信息。

<H3C> display irf-fabric

Fabric name is H3C, system mode is L3.

Unit Name                                 Unit ID

First                                     1(*)

# 在Unit 1的Console口上查看Fabric工作状态。

<H3C> display irf-fabric status

Fabric name is H3C, system mode is L3.

Unit Name                                 Unit ID               Status

First                                     1(*)                  Master

1.1.5  display rmon history unit

【命令】

display rmon history unit unit-id

【视图】

任意视图

【参数】

unit-id:Fabric中的设备编号。

【描述】

display rmon history unit命令用来收集本设备或Fabric中其他设备的RMON历史数据。

相关配置可参考命令rmon history

【举例】

# 显示Unit 3上的RMON历史数据。

<H3C> display rmon history unit 3

1.1.6  display rmon statistics unit

【命令】

display rmon statistics unit unit-id

【视图】

任意视图

【参数】

unit-id:Fabric中的设备编号。

【描述】

display rmon statistics unit命令用来收集本设备或Fabric中其他设备的RMON统计数据。

相关配置可参考命令rmon statistics

【举例】

# 显示Unit 2上的RMON统计数据。

<H3C> display rmon statistics unit 2

1.1.7  fabric save-unit-id

【命令】

fabric save-unit-id

undo fabric save-unit-id

【视图】

用户视图

【参数】

【描述】

fabric save-unit-id命令用来保存当前所有Unit的Unit ID到Flash,并将优先级更改为5。undo fabric save-unit-id命令用来删除各Unit已保存的Unit ID,并恢复优先级为10。

【举例】

# 保存当前各个Unit的Unit-id到设备的Flash内。

<H3C> display ftm topology-database

Total number of units in fabric : 8, My Unit ID : 1

UID CPU-Mac        Priority Stack-Port Board-ID A/M

*1  000f-e20f-5002 10           /Right 1        A

2  000f-e20f-5132 10       Left/      1        A 

3  000f-e20f-5252 10           /Right 1        A

4  000f-e20f-8922 10       Left/      1        A 

5  000f-cbb7-2142 10           /Right 1        A

6  000f-cbb7-3264 10       Left/      1        A 

7  000f-cbb7-2260 10           /Right 1        A

 8  000f-cbb7-2734 10       Left/      1        A 

<H3C> fabric save-unit-id

 The unit ID will be saved to the device.

 Are you sure? [Y/N] y

%Apr  2 02:13:44:413 2000 3600 FTM/3/DDPFLA:- 4 -Save self unitid, unit 4 sav

ed UnitID(4) in flash!

 Unit 1 saved unit ID successfully.

 Unit 2 saved unit ID successfully.

 Unit 3 saved unit ID successfully.

 Unit 4 saved unit ID successfully.

 Unit 5 saved unit ID successfully.

 Unit 6 saved unit ID successfully.

 Unit 7 saved unit ID successfully.

 Unit 8 saved unit ID successfully.        

<H3C> display ftm topology-database

Total number of units in fabric : 8, My Unit ID : 1

UID CPU-Mac        Priority Stack-Port Board-ID A/M

*1  000f-e20f-5002 5            /Right 1        M

2  000f-e20f-5132 5        Left/      1        M 

3  000f-e20f-5252 5            /Right 1        M

4  000f-e20f-8922 5        Left/      1        M 

5  000f-cbb7-2142 5            /Right 1        M

6  000f-cbb7-3264 5        Left/      1        M 

7  000f-cbb7-2260 5            /Right 1        M

8  000f-cbb7-2734 5        Left/      1        M 

可以看到,各设备的优先级已经由10变为5,编号方式也由A(自动编号)变为M(手动编号)。

# 删除各Unit已保存的Unit ID。

<H3C> undo fabric save-unit-id

 The saved unit ID will be erased.

 Are you sure? [Y/N] y

 Unit 1 removed unit ID successfully.

%Apr  2 19:43:24:368 2000 H3C FTM/3/FTMCHIDAUTO:- 1 -Change unitid to auto successful, unit 1 removed UnitID from flash!

 Unit 2 removed unit ID successfully.

Unit 3 removed unit ID successfully.

Unit 4 removed unit ID successfully.

Unit 5 removed unit ID successfully.

Unit 6 removed unit ID successfully.

Unit 7 removed unit ID successfully.

Unit 8 removed unit ID successfully.

<H3C> display ftm topology-database

Total number of units in fabric : 8, My Unit ID : 1

UID CPU-Mac        Priority Stack-Port Board-ID A/M

*1  000f-e20f-5002 10           /Right 1        A

 2  000f-e20f-5132 10       Left/      1        A 

3  000f-e20f-5252 10           /Right 1        A

4  000f-e20f-8922 10       Left/      1        A 

5  000f-cbb7-2142 10           /Right 1        A

6  000f-cbb7-3264 10       Left/      1        A 

7  000f-cbb7-2260 10           /Right 1        A

 8  000f-cbb7-2734 10       Left/      1        A 

可以看到,各设备的优先级已经由5恢复为10,编号方式也由M(手动编号)恢复为A(自动编号)。

1.1.8  fabric-port enable

【命令】

fabric-port interface-type interface-number enable

undo fabric-port interface-type interface-number enable

【视图】

系统视图

【参数】

interface-type:需要使能Fabric端口特性的端口类型,只能为GigabitEthernet类型。

interface-number:需要使能Fabric端口特性的端口编号。

【描述】

fabric-port enable命令用于使能指定端口为Fabric端口。undo fabric-port enable命令用于关闭端口的Fabric端口特性,当最后一个Fabric端口的堆叠特性被关闭之后,系统的堆叠功能也随之关闭。

&  说明:

l      由于建立IRF系统时对各设备配置一致性要求较高,在使能Fabric端口前,请不要在该端口下进行任何配置,并且不能在全局或其他端口使能某些影响IRF工作的特性(例如TACACAS、VLAN-VPN等),否则将不能使能Fabric端口。具体限制情况请参考设备输出的错误信息。

l      当已经使能某个Fabric端口组的Fabric端口特性之后,如需要更换Fabric端口组,则必须要先关闭当前Fabric端口组的堆叠特性,再对另一组执行使能命令。否则系统会提示当前Fabric端口组正在使用,无法更换Fabric端口组。

 

【举例】

# 设置端口GigabitEthernet1/1/3为Fabric端口

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] fabric-port GigabitEthernet1/1/3 enable

1.1.9  ftm fabric-vlan

【命令】

ftm fabric-vlan vlan-id

undo ftm fabric-vlan

【视图】

系统视图

【参数】

vlan-id:IRF Fabric VLAN的ID,取值范围为2~4094。缺省情况下,交换机用于IRF Fabric的VLAN编号为4093。

【描述】

ftm fabric-vlan命令设置交换机用于IRF Fabric的VLAN。undo ftm fabric-vlan用来恢复用于IRF Fabric 的VLAN的缺省值。

用户只能在交换机的IRF Fabric建立之前设置交换机用于IRF Fabric的VLAN,而且必须使用系统尚未创建的VLAN作为IRF Fabric使用的VLAN。

【举例】

# 设置交换机用于IRF Fabric 的VLAN为VLAN2。

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] ftm fabric-vlan 2

1.1.10  irf-fabric authentication-mode

【命令】

irf-fabric authentication-mode { simple password | md5 key }

undo irf-fabric authentication-mode

【视图】

系统视图

【参数】

simple:使用简单口令模式进行认证。

password:用于Fabric认证的密码,长度范围为1~16个字符。

md5:使用MD5加密模式进行认证。

key:关键字,长度范围为1~16个字符。

【描述】

irf-fabric authentication-mode命令用来配置IRF Fabric的认证模式。undo irf-fabric authentication-mode命令用来取消IRF Fabric认证的相关配置。

缺省情况下,交换机上没有配置认证模式。

【举例】

# 配置IRF Fabric的认证模式为简单口令认证,口令为hello。

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] irf-fabric authentication-mode simple hello

1.1.11  reset ftm statistics

【命令】

reset ftm statistics

【视图】

用户视图

【参数】

【描述】

reset ftm statistics命令用来清除FTM的统计信息。

【举例】

# 清除FTM的统计信息。

<H3C> reset ftm statistics

1.1.12  set unit name

【命令】

set unit unit-id name unit-name

【视图】

系统视图

【参数】

unit-id:设备的Unit ID。

unit-name:设备的名字,长度范围为1~64个字符。

【描述】

set unit name命令用来配置设备的名字。

【举例】

# 修改Unit ID 1的设备的名字为hello

<H3C> display irf-fabric

Fabric name is H3C, system mode is L3.

Unit Name     Unit ID         

First             1           

Second          2(*)              

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] set unit 1 name hello

<H3C> display irf-fabric

Fabric name is H3C, system mode is L3.

Unit Name     Unit ID           

hello             1             

Second          2(*)                

1.1.13  sysname

【命令】

sysname sysname

undo sysname

【视图】

系统视图

【参数】

sysname:字符串,长度范围为1~30个字符,缺省情况下,S3600系列以太网交换机的设备名称为H3C。

【描述】

sysname命令用来设置当前设备所属的Fabric名字,修改以太网交换机的Fabric名字将影响命令行接口的提示符,如以太网交换机的Fabric名字为H3C,用户视图下的提示符为<H3C>。undo sysname命令用来恢复以太网交换机的Fabric名字的缺省值。

【举例】

# 修改设备的Fabric name为hello

<H3C> display irf-fabric

Fabric name is H3C, system mode is L3.

Unit Name     Unit ID         

First             1           

Second          2(*)              

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] sysname hello

[hello] display irf-fabric

Fabric name is hello, system mode is L3.

Unit Name     Unit ID           

First             1             

Second          2(*)                

 

 

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

新华三官网
联系我们