H3C S5130 交换机堆叠IRF配置

配置思路
堆叠网络拓扑图.jpg
SW-DD1为主设备,编号irf-port1/1
SW-DD2为备设备,编号irf-port2/1
端口采用10G光口

最终连线如下:
XGE1/0/51<-->XGE2/0/52
XGE1/0/52<-->XGE2/0/51
配置步骤

1、配置SW-DD1

1-1、将Ten-GigabitEthernet1/0/51 ~Ten-GigabitEthernet1/0/52 端口关闭

<Sysname> system-view 
[Sysname] sysname SW-DD1
[SW-DD1-if-range] interface range ten-gigabitethernet 1/0/51 to ten-gigabitethernet 1/0/52
[SW-DD1-if-range] shutdown 
[SW-DD1-if-range] quit

1-2、配置 IRF 端口 1/1,并将它与物理端口 Ten-GigabitEthernet1/0/51 和 Ten-GigabitEthernet1/0/52
绑定。

[SW-DD1] irf-port 1/1 
[SW-DD1-irf-port1/1] port group interface ten-gigabitethernet 1/0/51
[SW-DD1-irf-port1/1] port group interface ten-gigabitethernet 1/0/52
[SW-DD1] quit

1-3、开启 Ten-GigabitEthernet1/0/51~Ten-GigabitEthernet1/0/52 端口,并保存配置。

[SW-DD1] interface range ten-gigabitethernet 1/0/51 to ten-gigabitethernet 1/0/52
[SW-DD1-if-range] undo shutdown
[SW-DD1-if-range] quit
[SW-DD1] save 

1-4、激活 IRF 端口下的配置。

[SW-DD1] irf-port-configuration active 

2、配置SW-DD2

2-1、将SW-DD2的成员编号配置为 2,并重启设备使新编号生效。

<Sysname> system-view
[Sysname] sysname SW-DD2
[SW-DD2] irf member 1 renumber 2
Renumbering the member ID may result in configuration change or loss. Continue? [Y/N]:y
[SW-DD2] quit
<SW-DD2> reboot 

2-2、将Ten-GigabitEthernet2/0/51 ~Ten-GigabitEthernet2/0/52 端口关闭

[SW-DD2-if-range] interface range ten-gigabitethernet 2/0/51 to ten-gigabitethernet 2/0/52
[SW-DD2-if-range] shutdown 
[SW-DD2-if-range] quit

2-3、配置 IRF 端口 2/2,并将它与物理端口 Ten-GigabitEthernet2/0/51 和 Ten-GigabitEthernet2/0/52
绑定。

[SW-DD2] irf-port 2/2 
[SW-DD2-irf-port2/2] port group interface ten-gigabitethernet 2/0/51
[SW-DD2-irf-port2/2] port group interface ten-gigabitethernet 2/0/52
[SW-DD2] quit

2-4、开启 Ten-GigabitEthernet2/0/51~Ten-GigabitEthernet2/0/52 端口,并保存配置。

[SW-DD1] interface range ten-gigabitethernet 2/0/51 to ten-gigabitethernet 2/0/52
[SW-DD1-if-range] undo shutdown
[SW-DD1-if-range] quit
[SW-DD1] save 

2-5、激活 IRF 端口下的配置。

[SW-DD1] irf-port-configuration active 

3、SW-DD1和 SW-DD2 间将会进行主设备竞选,竞选失败的一方将重启,重启完成后,IRF 形
成。

验证配置
显示IRF中所有成员设备的相关信息   display irf
查看IRF的拓扑信息                 display irf topology
显示IRF链路信息                   display irf link
显示IRF配置信息                   display irf configuration
显示IRF链路的负载分担类型         display irf-port load-sharing mo
配置信息
SW-DD1
    
<SW-DD1>dis cu
#
 version 7.1.075, Alpha 7571
#
 sysname SW-DD1
#
 irf mac-address persistent timer
 irf auto-update enable
 undo irf link-delay
 irf member 1 priority 1
 irf member 2 priority 1
#
 lldp global enable
#
 system-working-mode standard
 xbar load-single
 password-recovery enable
 lpu-type f-series
#
vlan 1
#
irf-port 1/1
 port group interface Ten-GigabitEthernet1/0/51
 port group interface Ten-GigabitEthernet1/0/52
#
irf-port 2/2
 port group interface Ten-GigabitEthernet2/0/51
 port group interface Ten-GigabitEthernet2/0/52
#
 stp global enable
#
interface NULL0
#
interface FortyGigE1/0/53
 port link-mode bridge
#
interface FortyGigE1/0/54
 port link-mode bridge
#
interface FortyGigE2/0/53
 port link-mode bridge
#
interface FortyGigE2/0/54
 port link-mode bridge
#
interface GigabitEthernet1/0/1
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/2
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/3
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/4
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/5
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/6
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/7
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/8
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/9
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/10
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/11
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/12
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/13
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/14
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/15
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/16
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/17
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/18
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/19
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/20
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/21
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/22
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/23
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/24
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/25
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/26
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/27
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/28
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/29
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/30
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/31
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/32
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/33
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/34
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/35
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/36
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/37
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/38
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/39
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/40
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/41
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/42
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/43
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/44
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/45
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/46
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/47
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/48
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/1
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/2
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/3
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/4
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/5
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/6
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/7
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/8
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/9
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/10
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/11
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/12
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/13
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/14
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/15
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/16
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/17
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/18
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/19
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/20
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/21
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/22
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/23
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/24
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/25
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/26
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/27
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/28
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/29
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/30
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/31
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/32
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/33
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/34
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/35
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/36
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/37
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/38
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/39
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/40
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/41
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/42
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/43
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/44
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/45
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/46
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/47
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet2/0/48
 port link-mode bridge
 combo enable fiber
#
interface M-GigabitEthernet0/0/0
#
interface Ten-GigabitEthernet1/0/49
 port link-mode bridge
 combo enable fiber
#
interface Ten-GigabitEthernet1/0/50
 port link-mode bridge
 combo enable fiber
#
interface Ten-GigabitEthernet2/0/49
 port link-mode bridge
 combo enable fiber
#
interface Ten-GigabitEthernet2/0/50
 port link-mode bridge
 combo enable fiber
#
interface Ten-GigabitEthernet1/0/51
 combo enable fiber
#
interface Ten-GigabitEthernet1/0/52
 combo enable fiber
#
interface Ten-GigabitEthernet2/0/51
 combo enable fiber
#
interface Ten-GigabitEthernet2/0/52
 combo enable fiber
#
 scheduler logfile size 16
#
line class aux
 user-role network-operator
#
line class console
 user-role network-admin
#
line class tty
 user-role network-operator
#
line class vty
 user-role network-operator
#
line aux 0 1
 user-role network-operator
#
line con 0 1
 user-role network-admin
#
line vty 0 63
 user-role network-operator
#
radius scheme system
 user-name-format without-domain
#
domain name system
#
 domain default enable system
#
role name level-0
 description Predefined level-0 role
#
role name level-1
 description Predefined level-1 role
#
role name level-2
 description Predefined level-2 role
#
role name level-3
 description Predefined level-3 role
#
role name level-4
 description Predefined level-4 role
#
role name level-5
 description Predefined level-5 role
#
role name level-6
 description Predefined level-6 role
#
role name level-7
 description Predefined level-7 role
#
role name level-8
 description Predefined level-8 role
#
role name level-9
 description Predefined level-9 role
#
role name level-10
 description Predefined level-10 role
#
role name level-11
 description Predefined level-11 role
#
role name level-12
 description Predefined level-12 role
#
role name level-13
 description Predefined level-13 role
#
role name level-14
 description Predefined level-14 role
#
user-group system
#
return
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 201,681评论 5 474
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 84,710评论 2 377
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 148,623评论 0 334
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 54,202评论 1 272
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 63,232评论 5 363
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,368评论 1 281
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 37,795评论 3 393
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,461评论 0 256
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 40,647评论 1 295
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,476评论 2 317
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,525评论 1 329
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,226评论 3 318
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 38,785评论 3 303
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,857评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,090评论 1 258
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 42,647评论 2 348
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,215评论 2 341

推荐阅读更多精彩内容