
hostname(config)# interface ethernet0/0
hostname(config-if-eth0/0)# zone untrust
hostname(config-if-eth0/0)# ip address 100.1.1.4/29
hostname(config-if-eth0/0)# exit
hostname(config)# interface ethernet0/1
hostname(config-if-eth0/1)# zone trust
hostname(config-if-eth0/1)# ip address 192.168.1.4/29
hostname(config-if-eth0/1)# exit
hostname(config)# policy from trust to untrust
hostname(config-policy)# rule from any to any service any permit
Rule id 7 is created
hostname(config-policy)# exit
hostname(config)#
发现接口工作失败,则进行主备切换。
hostname(config)# track trackobj1
hostname(config-trackip)# interface ethernet0/0 weight 255
hostname(config-trackip)# exit
hostname(config)#
安全网关A
hostname(config)# ha group 0
hostname(config-ha-group)# priority 50
hostname(config-ha-group)# monitor track trackobj1
hostname(config-ha-group)# exit
hostname(config)#
安全网关B
hostname(config)# ha group 0
hostname(config-ha-group)# priority 100
hostname(config-ha-group)# exit
hostname(config)#
安全网关A
hostname(config)# ha link interface ethernet0/2
hostname(config)# ha link interface ethernet0/3
hostname(config)# ha link ip 1.1.1.1/24
hostname(config)#
安全网关B
hostname(config)# ha link interface ethernet0/2
hostname(config)# ha link interface ethernet0/3
hostname(config)# ha link ip 1.1.1.2/24
hostname(config)#
安全网关A
hostname(config)# ha cluster 1
安全网关B
hostname(config)# ha cluster 1
安全网关A
hostname(config)# interface ethernet0/1
hostname(config-if-eth0/1)# manage ip 192.168.1.253
安全网关B
hostname(config)# interface ethernet0/1
hostname(config-if-eth0/0)# manage ip 192.168.1.254