• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

路由器

2021-07-07提问
  • 0关注
  • 1收藏,746浏览
粉丝:0人 关注:0人

问题描述:

请教一份路由器堆叠的配置文件?谢谢

组网及组网描述:


最佳答案

粉丝:226人 关注:0人

3.12.2  IRF典型配置举例(BFD MAD检测方式)

1. 组网需求

由于网络规模迅速扩大,当前中心设备(Device A)转发能力已经不能满足需求,现需要在保护现有投资的基础上将网络转发能力提高一倍,并要求网络易管理、易维护。

2. 组网图

图3-14 IRF典型配置组网图(BFD MAD检测方式)

 

3. 配置思路

·     Device A处于局域网的汇聚层,为了将汇聚层的转发能力提高一倍,需要另外增加一台设备Device B。

·     鉴于IRF技术具有管理简便、网络扩展能力强、可靠性高等优点,所以本例使用IRF技术构建网络汇聚层(即在Device A和Device B上配置IRF功能),接入层设备通过聚合双链路上行。

·     为了防止万一IRF链路故障导致IRF分裂、网络中存在两个配置冲突的IRF,需要启用MAD检测功能。因为成员设备比较少,我们采用BFD MAD检测方式来监测IRF的状态。

4. 配置步骤

(1)     配置Device A

设置Device A的成员编号为1,创建IRF端口2,并将它与物理端口Ten-GigabitEthernet2/0/4绑定。

<Sysname> system-view

[Sysname] irf member 1

 Info: Member ID change will take effect after the member reboots and operates in IRF mode.

[Sysname] irf-port 2

[Sysname-irf-port2] port group interface ten-gigabitethernet 2/0/4

[Sysname-irf-port2] quit

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

[Sysname] quit

<Sysname> save

将设备的运行模式切换到IRF模式。

<Sysname> system-view

[Sysname] chassis convert mode irf

The device will switch to IRF mode and reboot. You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? [Y/N]:y

 Do you want to convert the content of the next startup configuration file flash:/startup.cfg to make it available in IRF mode? [Y/N]:y

 Please wait...

 Saving the converted configuration file to the main board succeeded.

Slot 1:

 Saving the converted configuration file succeeded.

 Now rebooting, please wait...

设备重启后Device A组成了只有一台成员设备的IRF。

(2)     配置Device B

配置Device B的成员编号为2,创建IRF端口1,并将它与物理端口Ten-GigabitEthernet2/0/4绑定。

<Sysname> system-view

[Sysname] irf member 2

 Info: Member ID change will take effect after the member reboots and operates in IRF mode.

[Sysname] irf-port 1

[Sysname-irf-port1] port group interface ten-gigabitethernet 2/0/4

[Sysname-irf-port1] quit

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

[Sysname] quit

<Sysname> save

参照图3-14进行物理连线。

将设备的运行模式切换到IRF模式。

<Sysname> system-view

[Sysname] chassis convert mode irf

The device will switch to IRF mode and reboot. You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? [Y/N]:y

 Do you want to convert the content of the next startup configuration file flash:/startup.cfg to make it available in IRF mode? [Y/N]:y

 Please wait...

 Saving the converted configuration file to the main board succeeded.

Slot 1:

 Saving the converted configuration file succeeded.

 Now rebooting, please wait...

设备B重启后与设备A形成IRF。

(3)     配置BFD MAD检测

创建三层聚合接口1。

<Sysname> system-view

[Sysname] interface route-aggregation 1

[Sysname-Route-Aggregation1] quit

#分别将接口GigabitEthernet1/4/0/1与GigabitEthernet2/4/0/1加入到聚合组1中。

[Sysname] interface gigabitethernet 1/4/0/1

[Sysname-GigabitEthernet1/4/0/1] port link-aggregation group 1

[Sysname-GigabitEthernet1/4/0/1] quit

[Sysname] interface gigabitethernet 2/4/0/1

[Sysname-GigabitEthernet2/4/0/1] port link-aggregation group 1

[Sysname-GigabitEthernet2/4/0/1] quit

#配置三层聚合接口1的MAD IP地址。

[Sysname] interface route-aggregation 1

[Sysname-Route-Aggregation1] mad bfd enable

[Sysname-Route-Aggregation1] mad ip address 192.168.2.1 24 member 1

[Sysname-Route-Aggregation1] mad ip address 192.168.2.2 24 member 2

[Sysname-Route-Aggregation1] quit

暂无评论

2 个回答
粉丝:20人 关注:2人

3.12.1  IRF典型配置举例(LACP MAD检测方式)

1. 组网需求

为提高网络出口可靠性,使用Device ADevice B做为内网出口设备,为便于对设备Device ADevice B易管理、易维护。使用IRF技术,并使用LACP MAD功能及时发现和处理IRF的分裂事件。

2. 组网图

图3-13 IRF典型配置组网图(LACP MAD检测方式)

 

 

3. 配置思路

·              鉴于第二代智能弹性架构IRF技术具有管理简便、网络扩展能力强、可靠性高等优点,所以本例使用IRF技术构建接入层(即在Device ADevice B上配置IRF功能)。

·              为了防止万一IRF链路故障导致IRF分裂、网络中存在两个配置冲突的IRF,需要启用MAD检测功能。因为接入层设备较多,我们采用LACP MAD检测。

4. 配置步骤

(1)      配置Device A

# 配置Device A的成员编号为1,创建IRF端口2,并将它与物理端口Ten-GigabitEthernet2/0/4绑定。

<Sysname> system-view

[Sysname] irf member 1

 Info: Member ID change will take effect after the member reboots and operates in IRF mode.

[Sysname] irf-port 2

[Sysname-irf-port2] port group interface ten-gigabitethernet 2/0/4

[Sysname-irf-port2] quit

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

[Sysname] quit

<Sysname> save

# 将设备的运行模式切换到IRF模式。

<Sysname> system-view

[Sysname] chassis convert mode irf

The device will switch to IRF mode and reboot. You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? [Y/N]:y

 Do you want to convert the content of the next startup configuration file flash:/startup.cfg to make it available in IRF mode? [Y/N]:y

 Please wait...

 Saving the converted configuration file to the main board succeeded.

Slot 1:

 Saving the converted configuration file succeeded.

 Now rebooting, please wait...

设备重启后Device A组成了只有一台成员设备的IRF

(2)      配置Device B

# 配置Device B的成员编号为2,创建IRF端口1,并将它与物理端口Ten-GigabitEthernet2/0/4绑定。

<Sysname> system-view

[Sysname] irf member 2

 Info: Member ID change will take effect after the member reboots and operates in IRF mode.

[Sysname] irf-port 1

[Sysname-irf-port1] port group interface ten-gigabitethernet 2/0/4

[Sysname-irf-port1] quit

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

[Sysname] quit

<Sysname> save

# 参照3-13进行物理连线。

# 将设备的运行模式切换到IRF模式。

<Sysname> system-view

[Sysname] chassis convert mode irf

The device will switch to IRF mode and reboot. You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? [Y/N]:y

 Do you want to convert the content of the next startup configuration file flash:/startup.cfg to make it available in IRF mode? [Y/N]:y

 Please wait...

 Saving the converted configuration file to the main board succeeded.

Slot 1:

 Saving the converted configuration file succeeded.

 Now rebooting, please wait...

设备B重启后与设备A形成IRF

(3)      配置LACP MAD检测

# 设置IRF域编号为1

<Sysname> system-view

[Sysname] irf domain 1

# 创建一个动态聚合接口,并使能LACP MAD检测功能。

[Sysname] interface bridge-aggregation 2

[Sysname-Bridge-Aggregation2] link-aggregation mode dynamic

[Sysname-Bridge-Aggregation2] mad enable

 You need to assign a domain ID (range: 0-4294967295)

 [Current domain is: 1]:

 The assigned  domain ID is: 1

MAD LACP only enable on dynamic aggregation interface.

[Sysname-Bridge-Aggregation2] quit

# 在聚合接口中添加成员端口1/2/0/42/2/0/4,专用于Device ADevice B实现LACP MAD检测。

[Sysname] interface gigabitethernet 1/2/0/4

[Sysname-GigabitEthernet1/2/0/4] port link-aggregation group 2

[Sysname-GigabitEthernet1/2/0/4] quit

[Sysname] interface gigabitethernet 1/2/0/4

[Sysname-GigabitEthernet1/2/0/4] port link-aggregation group 2

(4)      配置中间设备Device C

提示

如果中间设备是一个IRF系统,则必须通过配置确保其IRF域编号与被检测的IRF系统不同。

 

Device C作为中间设备来转发、处理LACP协议报文,协助Device ADevice B进行多Active检测。从节约成本的角度考虑,使用一台支持LACP协议扩展功能的设备即可。

# 创建一个动态聚合接口。

<Sysname> system-view

[Sysname] interface bridge-aggregation 2

[Sysname-Bridge-Aggregation2] link-aggregation mode dynamic

[Sysname-Bridge-Aggregation2] quit

# 在聚合接口中添加成员端口GigabitEthernet4/0/1GigabitEthernet4/0/2,用于帮助LACP MAD检测。

[Sysname] interface gigabitethernet 4/0/1

[Sysname-GigabitEthernet4/0/1] port link-aggregation group 2

[Sysname-GigabitEthernet4/0/1] quit

[Sysname] interface gigabitethernet 4/0/2

[Sysname-GigabitEthernet4/0/2] port link-aggregation group 2

3.12.2  IRF典型配置举例(BFD MAD检测方式)

1. 组网需求

由于网络规模迅速扩大,当前中心设备(Device A)转发能力已经不能满足需求,现需要在保护现有投资的基础上将网络转发能力提高一倍,并要求网络易管理、易维护。

2. 组网图

图3-14 IRF典型配置组网图(BFD MAD检测方式)


 

3. 配置思路

·              Device A处于局域网的汇聚层,为了将汇聚层的转发能力提高一倍,需要另外增加一台设备Device B

·              鉴于IRF技术具有管理简便、网络扩展能力强、可靠性高等优点,所以本例使用IRF技术构建网络汇聚层(即在Device ADevice B上配置IRF功能),接入层设备通过聚合双链路上行。

·              为了防止万一IRF链路故障导致IRF分裂、网络中存在两个配置冲突的IRF,需要启用MAD检测功能。因为成员设备比较少,我们采用BFD MAD检测方式来监测IRF的状态。

4. 配置步骤

(1)      配置Device A

# 设置Device A的成员编号为1,创建IRF端口2,并将它与物理端口Ten-GigabitEthernet2/0/4绑定。

<Sysname> system-view

[Sysname] irf member 1

 Info: Member ID change will take effect after the member reboots and operates in IRF mode.

[Sysname] irf-port 2

[Sysname-irf-port2] port group interface ten-gigabitethernet 2/0/4

[Sysname-irf-port2] quit

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

[Sysname] quit

<Sysname> save

# 将设备的运行模式切换到IRF模式。

<Sysname> system-view

[Sysname] chassis convert mode irf

The device will switch to IRF mode and reboot. You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? [Y/N]:y

 Do you want to convert the content of the next startup configuration file flash:/startup.cfg to make it available in IRF mode? [Y/N]:y

 Please wait...

 Saving the converted configuration file to the main board succeeded.

Slot 1:

 Saving the converted configuration file succeeded.

 Now rebooting, please wait...

设备重启后Device A组成了只有一台成员设备的IRF

(2)      配置Device B

# 配置Device B的成员编号为2,创建IRF端口1,并将它与物理端口Ten-GigabitEthernet2/0/4绑定。

<Sysname> system-view

[Sysname] irf member 2

 Info: Member ID change will take effect after the member reboots and operates in IRF mode.

[Sysname] irf-port 1

[Sysname-irf-port1] port group interface ten-gigabitethernet 2/0/4

[Sysname-irf-port1] quit

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

[Sysname] quit

<Sysname> save

# 参照3-14进行物理连线。

# 将设备的运行模式切换到IRF模式。

<Sysname> system-view

[Sysname] chassis convert mode irf

The device will switch to IRF mode and reboot. You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? [Y/N]:y

 Do you want to convert the content of the next startup configuration file flash:/startup.cfg to make it available in IRF mode? [Y/N]:y

 Please wait...

 Saving the converted configuration file to the main board succeeded.

Slot 1:

 Saving the converted configuration file succeeded.

 Now rebooting, please wait...

设备B重启后与设备A形成IRF

(3)      配置BFD MAD检测

# 创建三层聚合接口1

<Sysname> system-view

[Sysname] interface route-aggregation 1

[Sysname-Route-Aggregation1] quit

#分别将接口GigabitEthernet1/4/0/1GigabitEthernet2/4/0/1加入到聚合组1中。

[Sysname] interface gigabitethernet 1/4/0/1

[Sysname-GigabitEthernet1/4/0/1] port link-aggregation group 1

[Sysname-GigabitEthernet1/4/0/1] quit

[Sysname] interface gigabitethernet 2/4/0/1

[Sysname-GigabitEthernet2/4/0/1] port link-aggregation group 1

[Sysname-GigabitEthernet2/4/0/1] quit

#配置三层聚合接口1MAD IP地址。

[Sysname] interface route-aggregation 1

[Sysname-Route-Aggregation1] mad bfd enable

[Sysname-Route-Aggregation1] mad ip address 192.168.2.1 24 member 1

[Sysname-Route-Aggregation1] mad ip address 192.168.2.2 24 member 2

[Sysname-Route-Aggregation1] quit

 

3.12.3  IRF典型配置举例(ARP MAD检测方式)

1. 组网需求

由于网络规模迅速扩大,当前中心设备(Device A)转发能力已经不能满足需求,现需要在保护现有投资的基础上将网络转发能力提高一倍,并要求网络易管理、易维护。

2. 组网图

图3-15 IRF典型配置组网图(ARP MAD检测方式)


 

3. 配置思路

·              鉴于IRF技术具有管理简便、网络扩展能力强、可靠性高等优点,所以本例使用IRF技术构建网络接入层(即在Device ADevice B上配置IRF功能),IRF通过双链路上行。

·              为了防止万一IRF链路故障导致IRF分裂、网络中存在两个配置冲突的IRF,需要启用MAD检测功能。因为成员设备比较少,我们采用ARP MAD检测方式来监测IRF的状态,复用链路上行传递ARP MAD报文。为防止环路发生,在IRFDevice C上启用生成树功能。

4. 配置步骤

(1)      配置Device A

# 设置Device A的成员编号为1,创建IRF端口2,并将它与物理端口Ten-GigabitEthernet2/0/4绑定。

<Sysname> system-view

[Sysname] irf member 1

 Info: Member ID change will take effect after the member reboots and operates in IRF mode.

[Sysname] irf-port 2

[Sysname-irf-port2] port group interface ten-gigabitethernet 2/0/4

[Sysname-irf-port2] quit

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

[Sysname] quit

<Sysname> save

# 将设备的运行模式切换到IRF模式。

<Sysname> system-view

[Sysname] chassis convert mode irf

The device will switch to IRF mode and reboot. You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? [Y/N]:y

 Do you want to convert the content of the next startup configuration file flash:/startup.cfg to make it available in IRF mode? [Y/N]:y

 Please wait...

 Saving the converted configuration file to the main board succeeded.

Slot 1:

 Saving the converted configuration file succeeded.

 Now rebooting, please wait...

设备重启后Device A组成了只有一台成员设备的IRF

(2)      配置Device B

# 配置Device B的成员编号为2,创建IRF端口1,并将它与物理端口Ten-GigabitEthernet3/0/1绑定。

<Sysname> system-view

[Sysname] irf member 2

 Info: Member ID change will take effect after the member reboots and operates in IRF mode.

[Sysname] irf-port 1

[Sysname-irf-port1] port group interface ten-gigabitethernet 2/0/4

[Sysname-irf-port1] quit

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

[Sysname] quit

<Sysname> save

# 参照3-15进行物理连线。

# 将设备的运行模式切换到IRF模式。

<Sysname> system-view

[Sysname] chassis convert mode irf

The device will switch to IRF mode and reboot. You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? [Y/N]:y

 Do you want to convert the content of the next startup configuration file flash:/startup.cfg to make it available in IRF mode? [Y/N]:y

 Please wait...

 Saving the converted configuration file to the main board succeeded.

Slot 1:

 Saving the converted configuration file succeeded.

 Now rebooting, please wait...

设备B重启后与设备A形成IRF

(3)      配置ARP MAD检测

# IRF上全局使能生成树协议,并配置MST域,以防止环路的发生。

<Sysname> system-view

[Sysname] stp global enable

[Sysname] stp region-configuration

[Sysname-mst-region] region-name arpmad

[Sysname-mst-region] instance 1 vlan 3

[Sysname-mst-region] active region-configuration

[Sysname-mst-region] quit

# IRF配置为MAC地址立即改变。

[Sysname] undo irf mac-address persistent

# 设置IRF域编号为1

[Sysname] irf domain 1

# 创建VLAN 3,并将Device A(成员编号为1)上的端口1/4/0/2Device B(成员编号为2)上的端口2/4/0/2加入VLAN中。

[Sysname] vlan 3

[Sysname-vlan3] port gigabitethernet 1/4/0/2 gigabitethernet 2/4/0/2

[Sysname-vlan3] quit

# 创建VLAN-interface3,并在该接口下配置IP地址,使能ARP MAD功能。

[Sysname] interface vlan-interface 3

[Sysname-Vlan-interface3] mad arp enable

 You need to assign a domain ID (range: 0-4294967295)

 [Current domain is: 1]:

 The assigned  domain ID is: 1

[Sysname-Vlan-interface3] ip address 192.168.2.1 24

(4)      配置中间设备Device C

提示

如果中间设备是一个IRF系统,则必须通过配置确保其IRF域编号与被检测的IRF系统不同。

 

Device C作为中间设备来转发、处理免费ARP报文,协助Device ADevice B进行多Active检测。从节约成本的角度考虑,使用一台支持ARP功能的设备即可。

# 在全局使能生成树协议,并配置MST域,以防止环路的发生。

<DeviceC> system-view

[DeviceC] stp global enable

[DeviceC] stp region-configuration

[DeviceC-mst-region] region-name arpmad

[DeviceC-mst-region] instance 1 vlan 3

[DeviceC-mst-region] active region-configuration

[DeviceC-mst-region] quit

# 创建VLAN 3,并将端口GigabitEthernet4/0/1GigabitEthernet4/0/2加入VLAN 3中,用于转发ARP MAD报文。

[DeviceC] vlan 3

[DeviceC-vlan3] port gigabitethernet 4/0/1 gigabitethernet 4/0/2

[DeviceC-vlan3] quit

3.12.4  IRF典型配置举例(ND MAD检测方式)

1. 组网需求

IPv6网络中,由于网络规模迅速扩大,当前中心设备(Device A)转发能力已经不能满足需求,现需要在保护现有投资的基础上将网络转发能力提高一倍,并要求网络易管理、易维护。

2. 组网图

图3-16 IRF典型配置组网图(ND MAD检测方式)


 

3. 配置思路

·              鉴于IRF技术具有管理简便、网络扩展能力强、可靠性高等优点,所以本例使用IRF技术构建网络接入层(即在Device ADevice B上配置IRF功能),IRF通过双链路上行。

·              为了防止万一IRF链路故障导致IRF分裂、网络中存在两个配置冲突的IRF,需要启用MAD检测功能。因为成员设备比较少,我们采用ND MAD检测方式来监测IRF的状态,复用链路上行传递ND MAD报文。为防止环路发生,在IRFDevice C上启用生成树功能。

4. 配置步骤

(1)      配置Device A

# 设置Device A的成员编号为1,创建IRF端口2,并将它与物理端口Ten-GigabitEthernet2/0/4绑定。

<Sysname> system-view

[Sysname] irf member 1

 Info: Member ID change will take effect after the member reboots and operates in IRF mode.

[Sysname] irf-port 2

[Sysname-irf-port2] port group interface ten-gigabitethernet 2/0/4

[Sysname-irf-port2] quit

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

[Sysname] quit

<Sysname> save

# 将设备的运行模式切换到IRF模式。

<Sysname> system-view

[Sysname] chassis convert mode irf

The device will switch to IRF mode and reboot. You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? [Y/N]:y

 Do you want to convert the content of the next startup configuration file flash:/startup.cfg to make it available in IRF mode? [Y/N]:y

 Please wait...

 Saving the converted configuration file to the main board succeeded.

Slot 1:

 Saving the converted configuration file succeeded.

 Now rebooting, please wait...

设备重启后Device A组成了只有一台成员设备的IRF

(2)      配置Device B

# 配置Device B的成员编号为2,创建IRF端口1,并将它与物理端口Ten-GigabitEthernet2/0/4绑定。

<Sysname> system-view

[Sysname] irf member 2

 Info: Member ID change will take effect after the member reboots and operates in IRF mode.

[Sysname] irf-port 1

[Sysname-irf-port1] port group interface ten-gigabitethernet 2/0/4

[Sysname-irf-port1] quit

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

[Sysname] quit

<Sysname> save

# 参照3-16进行物理连线。

# 将设备的运行模式切换到IRF模式。

<Sysname> system-view

[Sysname] chassis convert mode irf

The device will switch to IRF mode and reboot. You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? [Y/N]:y

 Do you want to convert the content of the next startup configuration file flash:/startup.cfg to make it available in IRF mode? [Y/N]:y

 Please wait...

 Saving the converted configuration file to the main board succeeded.

Slot 1:

 Saving the converted configuration file succeeded.

 Now rebooting, please wait...

设备B重启后与设备A形成IRF

(3)      配置ND MAD检测

# IRF上全局使能生成树协议,并配置MST域,以防止环路的发生。

<Sysname> system-view

[Sysname] stp global enable

[Sysname] stp region-configuration

[Sysname-mst-region] region-name arpmad

[Sysname-mst-region] instance 1 vlan 3

[Sysname-mst-region] active region-configuration

[Sysname-mst-region] quit

# IRF配置为桥MAC立即改变。

[Sysname] undo irf mac-address persistent

# 设置IRF域编号为1

[Sysname] irf domain 1

# 创建VLAN 3,并将Device A(成员编号为1)上的端口GigabitEthernet1/4/0/2Device B(成员编号为2)上的端口GigabitEthernet2/4/0/2加入VLAN 3中。

[Sysname] vlan 3

[Sysname-vlan3] port gigabitethernet 1/4/0/2 gigabitethernet 2/4/0/2

[Sysname-vlan3] quit

# 创建VLAN-interface3,并配置IPv6地址,使能ND MAD检测功能。

[Sysname] interface vlan-interface 3

[Sysname-Vlan-interface3] ipv6 address 2001::1 64

[Sysname-Vlan-interface3] mad nd enable

 You need to assign a domain ID (range: 0-4294967295)

 [Current domain is: 1]:

 The assigned  domain ID is: 1

(4)      配置中间设备Device C

提示

如果中间设备是一个IRF系统,则必须通过配置确保其IRF域编号与被检测的IRF系统不同。

 

Device C作为中间设备来转发、处理ND报文,协助Device ADevice B进行多Active检测。从节约成本的角度考虑,使用一台支持ND功能的设备即可。

# 在全局使能生成树协议,并配置MST域,以防止环路的发生。

<DeviceC> system-view

[DeviceC] stp global enable

[DeviceC] stp region-configuration

[DeviceC-mst-region] region-name arpmad

[DeviceC-mst-region] instance 1 vlan 3

[DeviceC-mst-region] active region-configuration

[DeviceC-mst-region] quit

# 创建VLAN 3,并将端口GigabitEthernet4/0/1GigabitEthernet4/0/2加入VLAN 3中,用于转发ND MAD报文。

[DeviceC] vlan 3

[DeviceC-vlan3] port gigabitethernet 4/0/1 gigabitethernet 4/0/2

[DeviceC-vlan3] quit

3.12.5  将成员设备从IRF模式恢复到独立运行模式配置举例

1. 组网需求

3-17所示,IRF已经稳定运行,Device ADevice BIRF的成员设备。现因网络调整,需要将Device ADevice BIRF模式下恢复到独立运行模式待用。

2. 组网图

图3-17 将成员设备从IRF模式恢复到独立运行模式组网图


 

3. 配置思路

(1)      断开IRF连接。可以直接将IRF物理连接线缆拔出也可以使用命令行关闭主设备上所有的IRF物理端口。本举例采用命令行关闭的方式。

(2)      IRF分裂后,分别将两台成员设备从IRF模式切换到独立运行模式。

4. 配置步骤

(1)      确定主设备。

<IRF> display irf

MemberID  Slot  Role   Priority   CPU-Mac         Description

 *+1    0     Master   1         00e0-fc0a-15e0  DeviceA

   1    1     Standby  1         00e0-fc0f-8c02  DeviceA

   2    0     Standby  1         00e0-fc0f-15e1  DeviceB

   2    1     Standby  1         00e0-fc0f-15e2  DeviceB

--------------------------------------------------

 

 * indicates the device is the master.

 + indicates the device through which the user logs in.

 

 The Bridge MAC of the IRF is: 000f-e26a-58ed

 Auto upgrade                : no

 Mac persistent              : always

 Domain ID                   : 0

通过以上显示信息可以看出,Device A是主设备。

(2)      断开IRF连接:手工关闭主设备(Device A)的IRF物理端口Ten-Gigabitethernet 1/2/0/4。(本举例中只有一条IRF物理链路,如果有多条,则需要手工关闭所有的IRF物理端口)

<IRF> system-view

[IRF] interface ten-gigabitethernet 1/2/0/4

[IRF-Ten-Gigabitethernet1/2/0/4] shutdown

[IRF-Ten-Gigabitethernet1/2/0/4] quit

(3)      Device A的运行模式切换到独立运行模式。

[IRF] undo chassis convert mode

 The device will switch to stand-alone mode and reboot. You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? [Y/N]:y

 Do you want to convert the content of the next startup configuration file flash:/vrpcfg.cfg to make it available in stand-alone mode? [Y/N]:y

 Please wait.............

 Saving the converted configuration file to main board succeeded.

Chassis 1 Slot 1:

 Saving the converted configuration file succeeded.

 Now rebooting, please wait...

Device A自动重启来完成模式的切换。

(4)      登录Device B后,将Device B的运行模式切换到独立运行模式。

<IRF> system-view

[IRF] undo chassis convert mode

 The device will switch to stand-alone mode and reboot. You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? [Y/N]:y

 Do you want to convert the content of the next startup configuration file flash:/vrpcfg.cfg to make it available in stand-alone mode? [Y/N]:y

 Please wait.............

 Saving the converted configuration file to main board succeeded.

Chassis 2 Slot 1:

 Saving the converted configuration file succeeded.

 Now rebooting, please wait...

Device B自动重启来完成模式的切换。

说明

如果IRF上创建了VLAN接口、配置了IP地址,并且Device ADevice B上都存在该VLAN的成员端口(即配置了端口加入VLAN)。此时,Device ADevice B恢复到独立运行模式后,会产生IP地址冲突,请登录其中一台设备,修改该VLAN接口的IP地址。

 

 

暂无评论

粉丝:124人 关注:6人

您好,请知:

以下是IRF配置参考案例:

网络拓扑图:


图中两台S5820交换机都分别使用万兆口50口、51口进行互联,其中1号设备、2号设备均已在拓扑图中标识清楚,1代表成员1、2代表成员2

配置步骤

1、1号设备设定为IRF 1号成员,2号设备设定为IRF 2号成员。

2、绑定IRF端口。

3、激活IRF功能。

4、检查设备是否已堆叠完成。

配置关键点

1、1号设备关键配置如下:

[H3C]irf member 1 renumber 1     //将1号设备设定为成员1

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

[H3C]int range Ten-GigabitEthernet 1/0/50 to Ten-GigabitEthernet 1/0/51

[H3C-if-range]shutdown

[H3C-if-range]quit

 

[H3C]irf-port 1/1  //将物理端口绑定到IRF端口

[H3C-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/50

[H3C-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/51

[H3C-irf-port1/1]quit

 

[H3C]int range Ten-GigabitEthernet 1/0/50 to Ten-GigabitEthernet 1/0/51

[H3C-if-range]undo shutdown

[H3C-if-range]quit


[H3C]irf-port-configuration active  //激活IRF

[H3C]save


2、2号设备关键配置点如下:


[H3C]irf member 1 renumber 2  //将2号设备设定为成员2

 

[H3C]int range Ten-GigabitEthernet 1/0/50 to Ten-GigabitEthernet 1/0/51

[H3C-if-range]shutdown

[H3C-if-range]quit

[H3C]irf-port 1/2  //将物理端口绑定到IRF端口

[H3C-irf-port1/2]port group interface Ten-GigabitEthernet 1/0/50

[H3C-irf-port1/2]port group interface Ten-GigabitEthernet 1/0/51

[H3C-irf-port1/2]quit

 

[H3C]int range Ten-GigabitEthernet 1/0/50 to Ten-GigabitEthernet 1/0/51

[H3C-if-range]undo shutdown

[H3C-if-range]quit

[H3C]irf-port-configuration active  //激活IRF

[H3C]save


3、分别将成员1设备、成员2设备重启


4、测试

<H3C>dis irf  //查看IRF的信息,看到成员1和成员2的设备信息都在一起

MemberID    Role    Priority  CPU-Mac         Description

 *+1        Master  1         30bd-490a-0104  ---

   2        Standby 1         30bd-525e-0204  ---

--------------------------------------------------

 * indicates the device is the master.

 + indicates the device through which the user logs in.

 

 The bridge MAC of the IRF is: 30bd-490a-0100

 Auto upgrade                : yes

 Mac persistent              : 6 min

 Domain ID                   : 0

<H3C>

 

<H3C>dis irf link  //查看成员1、成员2 IRF链路的状态均为UP

Member 1

 IRF Port  Interface                             Status

 1         Ten-GigabitEthernet1/0/50             UP

           Ten-GigabitEthernet1/0/51             UP

 2         disable                               --

Member 2

 IRF Port  Interface                             Status

 1         disable                               --

 2         Ten-GigabitEthernet2/0/50             UP

           Ten-GigabitEthernet2/0/51             UP

<H3C>


<H3C>dis irf configuration  //查看IRF的配置信息

 MemberID NewID    IRF-Port1                     IRF-Port2

 1        1        Ten-GigabitEthernet1/0/50     disable

                   Ten-GigabitEthernet1/0/51

 2        2        disable                       Ten-GigabitEthernet2/0/50

                                                 Ten-GigabitEthernet2/0/51

<H3C>


<H3C>dis irf topology  //查看IRF的拓扑信息

                              Topology Info

 -------------------------------------------------------------------------

               IRF-Port1                IRF-Port2

 MemberID    Link       neighbor      Link       neighbor    Belong To

 2           DIS        ---           UP         1           30bd-490a-0104

 1           UP         2             DIS        ---         30bd-490a-0104

<H3C>

至此S5820交换机的IRF已配置完成!

暂无评论

编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

分享扩散:

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作

举报

×

侵犯我的权益 >
对根叔社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明