Print

华三&华为堆叠配置

2025-11-05 发表

配置步骤

华三:

 

# 将用作IRF物理端口的HundredGigE1/3/0/1~HundredGigE1/3/0/2的手工关闭。使用端口批量配置功能可以更快速的完成配置。

<DeviceA> system-view

[DeviceA] interface range hundredgige 1/3/0/1 to hundredgige 1/3/0/2

[DeviceA-if-range] shutdown

[DeviceA-if-range] quit

# 创建IRF端口2,与端口HundredGigE1/3/0/1和HundredGigE1/3/0/2绑定。

[DeviceA] irf-port 1/2

[DeviceA-irf-port1/2] port group interface hundredgige 1/3/0/1

[DeviceA-irf-port1/2] port group interface hundredgige 1/3/0/2

[DeviceA-irf-port1/2] quit

# 开启HundredGigE1/3/0/1~HundredGigE1/3/0/2端口。

[DeviceA] interface range hundredgige 1/3/0/1 to hundredgige 1/3/0/2

[DeviceA-if-range] undo shutdown

[DeviceA-if-range] quit

# 将当前配置保存到下次启动配置文件。

[DeviceA] quit

<DeviceA> save

# 激活IRF端口的配置。

<DeviceA> system-view

[DeviceA] irf-port-configuration active

 

配置Device B

# 配置Device B的成员编号为2,并重启设备使配置生效。

<DeviceB> system-view

[DeviceB] irf member 1 renumber 2

Renumbering the member ID may result in configuration change or loss. Continue? [Y/N]:y

[DeviceB] quit

<DeviceB> reboot

# 将用作IRF物理端口的HundredGigE2/3/0/25~HundredGigE2/3/0/26的手工关闭。使用端口批量配置功能可以更快速的完成配置。

<DeviceB> system-view

[DeviceB] interface range hundredgige 2/3/0/25 to hundredgige 2/3/0/26

[DeviceB-if-range] shutdown

[DeviceB-if-range] quit

# 创建IRF端口1,与端口HundredGigE2/3/0/25和HundredGigE2/3/0/26绑定。

[DeviceB] irf-port 2/1

[DeviceB-irf-port2/1] port group interface hundredgige 2/3/0/25

[DeviceB-irf-port2/1] port group interface hundredgige 2/3/0/26

[DeviceB-irf-port2/1] quit

# 开启HundredGigE2/3/0/25~HundredGigE2/3/0/26端口。

[DeviceB] interface range hundredgige 2/3/0/25 to hundredgige 2/3/0/26

[DeviceB-if-range] undo shutdown

[DeviceB-if-range] quit

# 将当前配置保存到下次启动配置文件。

[DeviceB] quit

<DeviceB> save

# 激活IRF端口的配置。

<DeviceB> system-view

[DeviceB] irf-port-configuration active

# 系统会提示发生IRF合并,竞选失败的设备重启后两台设备形成一个IRF。

 

 

 

华为:

<HUAWEI> system-view

[HUAWEI] sysname Switch1

[Switch1] stack

[Switch1-satck] stack member 1 priority 150

[Switch1-satck] quit

[Switch1] interface stack-Port 1/1

[Switch1-Stack-Port1/1] port member-group interface 10GE 1/0/2 10GE 1/0/4

[Switch1-Stack-Port1/1] quit

<Switch1> save //堆叠相关的配置不需要保存,会自动写入flash。为防止其他配置丢失,这里建议执行save命令进行保存

The current configuration will be written to flash:/vrpcfg.zip. Are you sure to continue?[Y/N]y

Now saving the current configuration to the slot 0....... Save the configuration successfully.

<HUAWEI> system-view

[HUAWEI] sysname Switch2

[Switch2] stack

[Switch2-satck] stack member 1 priority 100

[Switch2-satck] stack member 1 renumber 2

[Switch2-satck] quit [Switch2] interface Stack-Port 1/1

[Switch2-Stack-Port1/1] port member-group interface 10GE 1/0/2 10GE 1/0/4

[Switch2-Stack-Port1/1] quit

<Switch2> save //堆叠相关的配置不需要保存,会自动写入flash。为防止其他配置丢失,这里建议执行save命令进行保存

The current configuration will be written to flash:/vrpcfg.zip. Are you sure to continue?[Y/N]y

Now saving the current configuration to the slot 0....... Save the configuration successfully.