大致组网如下,两台防火墙做RBM+VRRP主备,上行接一台其他厂商设备,当RBM发生切换时,该厂商业务流量转发无法立即刷新,希望通过直接断开GE0/2接口的方式实现业务切换。RBM控制VRRP主备切换,不会联动接口物理、协议DOWN,现行主流版本也无法track启用vrrp的物理接口、进行监控联动DOWN,可以通过EAA方式实现需求。
管理主的相关配置:
RBM_P[H3C-rtm-liandong]dis th
#
rtm cli-policy liandong
event syslog priority all msg "RBM running status changed to standby" occurs 1 period 100
action 0 cli system-view
action 1 cli interface GigabitEthernet1/0/2
action 2 cli shutdown
action 3 cli quit
action 4 cli interface GigabitEthernet1/0/4
action 5 cli shutdown
user-role level-3
user-role network-operator
user-role network-admin
#
测试效果:
主设备检测到“RBM running status changed to standby”事件,实现联动接口down。此时,RBM和VRRP主已经切换到了RBM管理备机,由于管理主机的接口已经down,备机无法通过手动切换RBM状态的,需要手动undo shutdown联动接口,才可以正常回切。
RBM_P[H3C-remote-backup-group]switchover request ///手动切换
This operation will set the local device to standby mode and the peer device to active mode. Are you sure you want to continue? [Y/N]: y
RBM_P[H3C-remote-backup-group]%Dec 21 13:48:06:473 2024 H3C RBM/6/RBM_RUNNING_STATUS_CHANGED: -COntext=1; RBM running status changed to standby./////检测到相关事件
%Dec 21 13:48:06:480 2024 H3C VRRP4/6/VRRP_STATUS_CHANGE: -COntext=1;
The status of IPv4 virtual router 10 (configured on GigabitEthernet1/0/2) changed from Master to Backup: Controled by RBM.
%Dec 21 13:48:06:481 2024 H3C VRRP4/6/VRRP_STATUS_CHANGE: -COntext=1;
The status of IPv4 virtual router 20 (configured on GigabitEthernet1/0/4) changed from Master to Backup: Controled by RBM.
%Dec 21 13:48:06:559 2024 H3C IFNET/3/PHY_UPDOWN: -COntext=1; Physical state on the interface GigabitEthernet1/0/2 changed to down.
%Dec 21 13:48:06:560 2024 H3C IFNET/5/LINK_UPDOWN: -COntext=1; Line protocol state on the interface GigabitEthernet1/0/2 changed to down./////触发相关动作shutdown接口
%Dec 21 13:48:06:644 2024 H3C IFNET/3/PHY_UPDOWN: -COntext=1; Physical state on the interface GigabitEthernet1/0/4 changed to down.
%Dec 21 13:48:06:644 2024 H3C IFNET/5/LINK_UPDOWN: -COntext=1; Line protocol state on the interface GigabitEthernet1/0/4 changed to down. /////触发相关动作shutdown接口
%Dec 21 13:48:06:675 2024 H3C RTM/6/RTM_POLICY: -COntext=1; CLI policy liandong is running successfully.、////相关策略执行成功
RBM管理备机无法通过手动切换RBM状态的,需要手动undo shutdown主管理设备的联动接口,才可以正常回切。
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作