04 交换机的IRF的配置
R1
#
version 7.1.075, Alpha 7571
#
sysname R1-IRF //配置IRF的名字
#
irf domain 10 //配置 domain: IRF域,用于指定当前设备所属的IRF域名称。
irf mac-address persistent timer
irf auto-update enable
undo irf link-delay
irf member 1 priority 1 // 缺省情况下,设备的成员优先级为1。
//配置irf member 1 priority 1指定了成员1(即第一个加入堆叠的交换机)的优先级为1,这意味着它将是堆叠中的主交换机。
#
lldp global enable
#
system-working-mode standard
xbar load-single
password-recovery enable
lpu-type f-series
#
vlan 1
#
# 在独立运行模式下创建IRF端口并进入IRF端口视图。
irf-port 1/1 //物理连接的端口是 1/1
port group interface Ten-GigabitEthernet1/0/49
port group interface Ten-GigabitEthernet1/0/50
# 缺省情况下,IRF端口没有和任何IRF物理端口绑定。
多次执行本命令,可以将IRF端口与多个IRF物理端口绑定,
以实现IRF链路的备份/负载分担。
#
stp global enable
#
interface NULL0
#
interface FortyGigE1/0/53
port link-mode bridge
#
interface FortyGigE1/0/54
port link-mode bridge
#
interface GigabitEthernet1/0/1
port link-mode route
combo enable fiber
ip address 192.168.2.254 255.255.255.0
#
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 M-GigabitEthernet0/0/0
#
interface Ten-GigabitEthernet1/0/51
port link-mode bridge
combo enable fiber
#
interface Ten-GigabitEthernet1/0/52
port link-mode bridge
combo enable fiber
#
interface Ten-GigabitEthernet1/0/49
combo enable fiber
#
interface Ten-GigabitEthernet1/0/50
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
user-role network-operator
#
line con 0
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
R3
#
version 7.1.075, Alpha 7571
#
sysname R3-IRF
#
irf domain 1
irf mac-address persistent timer
irf auto-update enable
undo irf link-delay
irf member 3 priority 1
#
lldp global enable
#
system-working-mode standard
xbar load-single
password-recovery enable
lpu-type f-series
#
vlan 1
#
irf-port 3/2
port group interface Ten-GigabitEthernet3/0/49
port group interface Ten-GigabitEthernet3/0/50
#
stp global enable
#
interface NULL0
#
interface FortyGigE3/0/53
port link-mode bridge
#
interface FortyGigE3/0/54
port link-mode bridge
#
interface GigabitEthernet3/0/1
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/2
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/3
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/4
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/5
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/6
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/7
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/8
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/9
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/10
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/11
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/12
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/13
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/14
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/15
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/16
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/17
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/18
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/19
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/20
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/21
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/22
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/23
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/24
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/25
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/26
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/27
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/28
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/29
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/30
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/31
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/32
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/33
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/34
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/35
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/36
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/37
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/38
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/39
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/40
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/41
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/42
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/43
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/44
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/45
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/46
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/47
port link-mode bridge
combo enable fiber
#
interface GigabitEthernet3/0/48
port link-mode bridge
combo enable fiber
#
interface M-GigabitEthernet0/0/0
ip address 192.168.1.254 255.255.255.0
#
interface Ten-GigabitEthernet3/0/51
port link-mode bridge
combo enable fiber
#
interface Ten-GigabitEthernet3/0/52
port link-mode bridge
combo enable fiber
#
interface Ten-GigabitEthernet3/0/49
combo enable fiber
#
interface Ten-GigabitEthernet3/0/50
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 2
user-role network-operator
#
line con 2
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
R2
#
version 7.1.075, Alpha 7571
#
sysname H3C
#
irf domain 10
irf mac-address persistent timer
irf auto-update enable
undo irf link-delay
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 2/2
port group interface Ten-GigabitEthernet2/0/49
port group interface Ten-GigabitEthernet2/0/50
#
stp global enable
#
interface NULL0
#
interface FortyGigE2/0/53
port link-mode bridge
#
interface FortyGigE2/0/54
port link-mode bridge
#
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
ip address 192.168.3.254 255.255.255.0
#
interface Ten-GigabitEthernet2/0/51
port link-mode bridge
combo enable fiber
#
interface Ten-GigabitEthernet2/0/52
port link-mode bridge
combo enable fiber
#
interface Ten-GigabitEthernet2/0/49
combo enable fiber
#
interface Ten-GigabitEthernet2/0/50
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 1
user-role network-operator
#
line con 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
测试
<IRF-R2>display irf
MemberID Role Priority CPU-Mac Description
*+2 Master 3 7a33-b67a-0304 ---
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The bridge MAC of the IRF is: 7a33-b67a-0300
Auto upgrade : yes
Mac persistent : 6 min
Domain ID : 10
<IRF-R2>dis
<IRF-R2>display ir
<IRF-R2>display irf c
<IRF-R2>display irf configuration
MemberID NewID IRF-Port1 IRF-Port2
2 2 disable Ten-GigabitEthernet2/0/49
Ten-GigabitEthernet2/0/50
<IRF-R2>
<R1-IRF>display irf
MemberID Role Priority CPU-Mac Description
*+1 Master 32 7a33-b095-0204 ---
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The bridge MAC of the IRF is: 7a33-b095-0200
Auto upgrade : yes
Mac persistent : 6 min
Domain ID : 10
<R1-IRF>dis
<R1-IRF>display ir
<R1-IRF>display irf c
<R1-IRF>display irf configuration
MemberID NewID IRF-Port1 IRF-Port2
1 1 Ten-GigabitEthernet1/0/49 disable
Ten-GigabitEthernet1/0/50
<R1-IRF>
<R3-IRF>display irf
MemberID Role Priority CPU-Mac Description
*+3 Master 31 7a33-aa1e-0104 ---
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The bridge MAC of the IRF is: 7a33-aa1e-0100
Auto upgrade : yes
Mac persistent : 6 min
Domain ID : 1
<R3-IRF>display irf c
<R3-IRF>display irf configuration
MemberID NewID IRF-Port1 IRF-Port2
3 3 disable Ten-GigabitEthernet3/0/49
Ten-GigabitEthernet3/0/50
<R3-IRF>
显示IRF中所有成员设备的相关信息 | display irf |
显示IRF的拓扑信息 | display irf topology |
显示IRF链路信息 | display irf link |
显示所有成员设备上重启以后生效的IRF配置 | display irf configuration |
显示MAD配置信息 | display mad [ verbose ] |
原文地址:https://blog.csdn.net/qq_56248592/article/details/138049898
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!