您的位置:首页 > 其它

Juniper ssg 550m HA 配置

2015-09-10 10:56 471 查看
这里以ethernet0/3 为HA接口CLI命令行配置SSG-550M-1(M)set nsrp cluster id 1
set nsrp rto-mirror syncset nsrp rto-mirror route
set nsrp vsd-group id 0 priority 50(配置vsd-group id 0 优先级)set nsrp vsd-group master-always-exist(配置总是有一台设备为MASTER)
set nsrp monitor interface ethernet0/0set nsrp monitor interface ethernet0/1set nsrp monitor interface ethernet0/2
save

SSG-550M-2(B)set nsrp cluster id 1set nsrp rto-mirror syncset nsrp rto-mirror route
set nsrp vsd-group id 0 priority 100(配置vsd-group id 0优先级,缺省优先级为100)set nsrp vsd-group master-always-exist(配置总是有一台设备为MASTER)
set nsrp monitor interface ethernet0/0set nsrp monitor interface ethernet0/1set nsrp monitor interface ethernet0/2save备注:按上面的顺序进行创建, set nsrp vsd-group的两条必须在 set nsrp monitor之前创建,如果先monitor了就会导致连不上设备, 另外monitor的端口必须全都接上网线,否则用命令检测时会警告没有同步,表现为一台是绿色,另一台HA灯为红色(不过这种情况下如何拔掉正常的那台,备用的其实也可以接管,但是会有警告)
SSG-550M-2(B)-> exec nsrp sync global-config save 同步配置(输入此命令等待数秒)将会返回一些调试信息SSG-550M-2(B)-> exec nsrp sync global-config check 检查是否同步 (如果没有报警,则表示NSRP配置没有问题,如果返回警告信息则需要检查NSRP配置)SSG550-2(M)-> exec nsrp sync global-config saveSSG550-2(M)-> load peer system config to saveSave global configuration successfully.Continue to save local configurations ... Save local configuration successfully.done.Please reset your box to let cluster configuration take effect!SSG550-2(M)-> exec nsrp sync global-config check-sumSSG550-2(M)-> configuration in syncSSG550-2(M)->SSG-550M-2(B)-> reset 重启设备

如果没有返回任何报警信息,则表示NSRP配置成功,则可进行下一步配置操作,当设备重启后将会看到下面图片信息,HA告示灯颜色提示HA正常工作。当设备正常运行时候,两台设备HA状态灯均为绿色闪烁,但是HA中备机HA指示灯显示为橘***(如上图)。如果某台设备的端口工作为DOWN的情况下,设备自动切换到另外一台主机,切换时间为1秒,并且此接口工作为DOWN的设备HA指示灯显示为红色。由于此项目中仅涉及到端口监控,因此只要是当端口DOWN掉的情况下会实现设备自动切换,当然如果某台设备电源被关掉等硬件故障也会促使设备由主机切换到备机。并且在此项目中没有采用NSRP抢占功能,因此设备默认不会切换到缺省主设备上。NSRP安全设备重启顺序:1)、重启运行状态下的备机2)、当备机正常启动之后,到主设备上面运行命令:SSG-550M-1(M)-> exec nsrp vsd-group 0 mode backupStart deactivate session (vsd=0) ...0 sessions deactivatedSSG-550M-1(B)-> ethernet0/0 interface change physical state to Downethernet0/1 interface change physical state to Downethernet0/2 interface change physical state to Down此时HA-MASTER将切换到备机上 ,然后重启原先主设备。

本文出自 “胖子的学习笔记” 博客,请务必保留此出处http://fanzhengang2008.blog.51cto.com/610591/1693365
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: