49 IRF 经典案例
一 H3C-FWW-RF
脚本
<IRF-MATER-FW1000>display current-configuration
#version 7.1.064, Alpha 7164
#sysname IRF-MATER-FW1000
#
context Admin id 1
#telnet server enable
#irf mac-address persistent timerirf auto-update enableundo irf link-delayirf member 1 priority 13irf member 2 priority 1
#interface range name fw1 interface GigabitEthernet1/0/22 to GigabitEthernet1/0/23
#xbar load-singlepassword-recovery enablelpu-type f-series
#
vlan 1
#
irf-port 1/1 port group interface GigabitEthernet1/0/22port group interface GigabitEthernet1/0/23
#
irf-port 2/2port group interface GigabitEthernet2/0/22port group interface GigabitEthernet2/0/23
#
interface NULL0
#
interface GigabitEthernet1/0/0port link-mode routecombo enable copper
#
interface GigabitEthernet1/0/1port link-mode routecombo enable copperip address 192.168.0.1 255.255.255.0
#
interface GigabitEthernet1/0/2port link-mode routecombo enable copper
#
interface GigabitEthernet1/0/3port link-mode routecombo enable copper
#
interface GigabitEthernet1/0/4port link-mode routecombo enable copper
#
interface GigabitEthernet1/0/5port link-mode routecombo enable copper
#
interface GigabitEthernet1/0/6port link-mode routecombo enable copper
#
interface GigabitEthernet1/0/7port link-mode routecombo enable copper
#
interface GigabitEthernet1/0/8port link-mode routecombo enable copper
#
interface GigabitEthernet1/0/9port link-mode routecombo enable copper
#
interface GigabitEthernet1/0/10port link-mode routecombo enable copper
#
interface GigabitEthernet1/0/11port link-mode routecombo enable copper
#
interface GigabitEthernet1/0/12port link-mode routecombo enable copper
#
interface GigabitEthernet1/0/13port link-mode routecombo enable copper
#
interface GigabitEthernet1/0/14port link-mode routecombo enable copper
#
interface GigabitEthernet1/0/15port link-mode routecombo enable copper
#
interface GigabitEthernet1/0/16port link-mode routecombo enable copper
#
interface GigabitEthernet1/0/17port link-mode routecombo enable copper
#
interface GigabitEthernet1/0/18port link-mode routecombo enable copper
#
interface GigabitEthernet1/0/19port link-mode routecombo enable copper
#
interface GigabitEthernet1/0/20port link-mode routecombo enable copper
#
interface GigabitEthernet1/0/21port link-mode routecombo enable copper
#
interface GigabitEthernet2/0/0port link-mode routecombo enable copper
#
interface GigabitEthernet2/0/1port link-mode routecombo enable copper
#
interface GigabitEthernet2/0/2port link-mode routecombo enable copper
#
interface GigabitEthernet2/0/3port link-mode routecombo enable copper
#
interface GigabitEthernet2/0/4port link-mode routecombo enable copper
#
interface GigabitEthernet2/0/5port link-mode routecombo enable copper
#
interface GigabitEthernet2/0/6port link-mode routecombo enable copper
#
interface GigabitEthernet2/0/7port link-mode routecombo enable copper
#
interface GigabitEthernet2/0/8port link-mode routecombo enable copper
#
interface GigabitEthernet2/0/9port link-mode routecombo enable copper
#
interface GigabitEthernet2/0/10port link-mode routecombo enable copper
#
interface GigabitEthernet2/0/11port link-mode routecombo enable copper
#
interface GigabitEthernet2/0/12port link-mode routecombo enable copper
#
interface GigabitEthernet2/0/13port link-mode routecombo enable copper
#
interface GigabitEthernet2/0/14port link-mode routecombo enable copper
#
interface GigabitEthernet2/0/15port link-mode routecombo enable copper
#
interface GigabitEthernet2/0/16port link-mode routecombo enable copper
#
interface GigabitEthernet2/0/17port link-mode routecombo enable copper
#
interface GigabitEthernet2/0/18port link-mode routecombo enable copper
#
interface GigabitEthernet2/0/19port link-mode routecombo enable copper
#
interface GigabitEthernet2/0/20port link-mode routecombo enable copper
#
interface GigabitEthernet2/0/21port link-mode routecombo enable copper
#
interface GigabitEthernet1/0/22combo enable fiber
#
interface GigabitEthernet1/0/23combo enable fiber
#
interface GigabitEthernet2/0/22combo enable fiber
#
interface GigabitEthernet2/0/23combo enable fiber
#scheduler logfile size 16
#
line class auxuser-role network-operator
#
line class consoleuser-role network-admin
#
line class tty user-role network-operator
#
line class vtyuser-role network-operator
#
line aux 0user-role network-admin
#
line aux 1user-role network-operator
#
line con 0 1authentication-mode schemeuser-role network-admin
#
line vty 0 4authentication-mode schemeuser-role network-admin
#
line vty 5 63user-role network-operator
#
domain system
#aaa session-limit ftp 16aaa session-limit telnet 16aaa session-limit ssh 16domain default enable system
#
role name level-0description Predefined level-0 role
#
role name level-1description Predefined level-1 role
#
role name level-2description Predefined level-2 role
#
role name level-3description Predefined level-3 role
#
role name level-4description Predefined level-4 role
#
role name level-5description Predefined level-5 role
#
role name level-6description Predefined level-6 role
#
role name level-7description Predefined level-7 role
#
role name level-8description Predefined level-8 role
#
role name level-9description Predefined level-9 role
#
role name level-10description Predefined level-10 role
#
role name level-11description Predefined level-11 role
#
role name level-12description Predefined level-12 role
#
role name level-13description Predefined level-13 role
#
role name level-14description Predefined level-14 role
#
user-group system
#
local-user admin class managepassword hash $h$6$UbIhNnPevyKUwfpm$LqR3+yg1IjNct39MkOR0H0iQXLkYB3jMqM4vbAeoXOhbabIIFnjJPEGR00YiYA1Sz4LiY3FmEdru2fOLMb1shQ==service-type telnet terminal httpauthorization-attribute user-role level-3authorization-attribute user-role network-adminauthorization-attribute user-role network-operator
#ip http enableip https enable
#
return
<IRF-MATER-FW1000>
二 H3C-SW- IRF
#version 7.1.075, Alpha 7571
#sysname H3C
#irf mac-address persistent timerirf auto-update enableundo irf link-delayirf member 3 priority 1
#lldp global enable
#interface range name sw3 interface Ten-GigabitEthernet3/0/49 to Ten-GigabitEthernet3/0/50
#system-working-mode standardxbar load-singlepassword-recovery enablelpu-type f-series
#
vlan 1
#
irf-port 3/2port group interface Ten-GigabitEthernet3/0/49port group interface Ten-GigabitEthernet3/0/50
#stp global enable
#
interface NULL0
#
interface FortyGigE3/0/53port link-mode bridge
#
interface FortyGigE3/0/54port link-mode bridge
#
interface GigabitEthernet3/0/1port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/2port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/3port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/4port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/5port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/6port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/7port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/8port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/9port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/10port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/11port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/12port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/13port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/14port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/15port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/16port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/17port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/18port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/19port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/20port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/21port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/22port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/23port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/24port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/25port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/26port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/27port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/28port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/29port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/30port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/31port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/32port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/33port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/34port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/35port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/36port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/37port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/38port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/39port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/40port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/41port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/42port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/43port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/44port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/45port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/46port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/47port link-mode bridgecombo enable fiber
#
interface GigabitEthernet3/0/48port link-mode bridgecombo enable fiber
#
interface M-GigabitEthernet0/0/0
#
interface Ten-GigabitEthernet3/0/51port link-mode bridgecombo enable fiber
#
interface Ten-GigabitEthernet3/0/52port link-mode bridgecombo enable fiber
#
interface Ten-GigabitEthernet3/0/49combo enable fiber
#
interface Ten-GigabitEthernet3/0/50combo enable fiber
#scheduler logfile size 16
#
line class auxuser-role network-operator
#
line class consoleuser-role network-admin
#
line class ttyuser-role network-operator
#
line class vtyuser-role network-operator
#
line aux 2user-role network-operator
#
line con 2user-role network-admin
#
line vty 0 63user-role network-operator
#
radius scheme systemuser-name-format without-domain
#
domain name system
#domain default enable system
#
role name level-0description Predefined level-0 role
#
role name level-1description Predefined level-1 role
#
role name level-2description Predefined level-2 role
#
role name level-3description Predefined level-3 role
#
role name level-4description Predefined level-4 role
#
role name level-5description Predefined level-5 role
#
role name level-6description Predefined level-6 role
#
role name level-7description Predefined level-7 role
#
role name level-8description Predefined level-8 role
#
role name level-9description Predefined level-9 role
#
role name level-10description Predefined level-10 role
#
role name level-11description Predefined level-11 role
#
role name level-12description Predefined level-12 role
#
role name level-13description Predefined level-13 role
#
role name level-14description Predefined level-14 role
#
user-group system
#
return
三 H3C-AC-IRF
[AC-IRF-mater-if-range-ac1]
[AC-IRF-mater-if-range-ac1]
[AC-IRF-mater-if-range-ac1]
[AC-IRF-mater-if-range-ac1]
[AC-IRF-mater-if-range-ac1]
[AC-IRF-mater-if-range-ac1]quit
[AC-IRF-mater]
[AC-IRF-mater]ir
[AC-IRF-mater]irf
[AC-IRF-mater]irf-port
[AC-IRF-mater]irf-port 1/2
[AC-IRF-mater-irf-port1/2]p
[AC-IRF-mater-irf-port1/2]po
[AC-IRF-mater-irf-port1/2]port gr
[AC-IRF-mater-irf-port1/2]port group 1t
[AC-IRF-mater-irf-port1/2]port group t
[AC-IRF-mater-irf-port1/2]port group int
[AC-IRF-mater-irf-port1/2]port group interface t
[AC-IRF-mater-irf-port1/2]port group interface Ten-GigabitEthernet 1/0/26
You must perform the following tasks for a successful IRF setup:
Save the configuration after completing IRF configuration.
Execute the "irf-port-configuration active" command to activate the IRF ports.
[AC-IRF-mater-irf-port1/2]port group interface Ten-GigabitEthernet 1/0/27
[AC-IRF-mater-irf-port1/2]dis
[AC-IRF-mater-irf-port1/2]display t
[AC-IRF-mater-irf-port1/2]display th
[AC-IRF-mater-irf-port1/2]display this
#
irf-port 1/2port group interface Ten-GigabitEthernet1/0/26port group interface Ten-GigabitEthernet1/0/27
#
return
[AC-IRF-mater-irf-port1/2]int
[AC-IRF-mater-irf-port1/2]quit
[AC-IRF-mater]int
[AC-IRF-mater]interface ra
[AC-IRF-mater]interface range ac1^% Wrong parameter found at '^' position.
[AC-IRF-mater]interface range na
[AC-IRF-mater]interface range name ac1
[AC-IRF-mater-if-range-ac1]un
[AC-IRF-mater-if-range-ac1]undo sh
[AC-IRF-mater-if-range-ac1]undo shutdown
[AC-IRF-mater-if-range-ac1]quit
[AC-IRF-mater]
<AC-IRF-mater>sa
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
<AC-IRF-mater>
<AC-IRF-mater>re
<AC-IRF-mater>reboot
Start to check configuration with next startup configuration file, please wait.........DONE!
This command will reboot the device. Continue? [Y/N]:y