山石防火墙HA配置--主备模式--命令行

发布时间 2023-10-19 18:31:18作者: 年楚河

配置山石防火墙HA主备模式分为4部分 

  1. 配置TRACK
  2. 配置HA组
  3. 配置HA链路
  4. 检查状态

1.配置track检测对象(非必须)

主备设备配置相同
config
track ha0
interface e0/1 interface e0/2

 

2.配置HA组属性

config

ha group 0
priority 100       //优先级,值越小越优先
preempt 1          //抢占时间,秒
hello interval 200
hello thredhold 15
arp 15
minitor track ha0   //非必须

config

ha group 0
priority 150
preempt 0       // 0表示不抢占
hello interval 200
hello thredhold 15
arp 15
minitor track ha0  //非必须


 

3.配置HA链路信息

主:

config

ha link interface e0/1
ha link interface e0/2
ha link ip 1.1.1.1/30    
ha cluster 1 node 0  

备:   

config

ha link interface e0/1
ha link interface e0/2
ha link ip 1.1.1.2/30
ha cluster 1 node 1

4.查看状态

show ha group 0 

 show ha link status