H3C防火墙双带宽主备自动切换配置

H3C防火墙双带宽主备自动切换配置

Select a shortcode

二、配置步骤

1. 配置接口及路由

bash

复制

下载

# 配置外网接口(主备)
interface GigabitEthernet1/0/1
 description ISP1-Primary
 ip address 192.168.1.2 255.255.255.0
 nat outbound

interface GigabitEthernet1/0/2
 description ISP2-Backup
 ip address 192.168.2.2 255.255.255.0
 nat outbound

# 配置默认路由(主备优先级)
ip route-static 0.0.0.0 0 192.168.1.1 preference 60  # 主路由,优先级较低(优先生效)
ip route-static 0.0.0.0 0 192.168.2.1 preference 70  # 备份路由,优先级较高

# 配置NQA检测主线路(触发切换)
nqa entry admin isp1-test  # 创建NQA测试例
 type icmp-echo
 destination-address ipv4 192.168.1.1  # 检测ISP1网关
 frequency 1000  # 每1秒检测一次
 reaction 1 checked-element probe-fail threshold-type consecutive 3 action-type trigger-only  # 连续3次失败触发动作

# 将NQA与主路由绑定
track 1 nqa entry admin isp1-test  # 创建Track关联NQA
ip route-static 0.0.0.0 0 192.168.1.1 track 1 preference 60  # 主路由绑定Track

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注