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
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
相关文章推荐
- 【未完】mariadb数据库安装,修改数据库路径
- 如何解决谷歌浏览器下jquery无法获取图片的尺寸
- mongoskin封装mongdo驱动的调用方式
- 详解DNS安装及配置多个二级域名的三种方法(图文教程)
- 关于iOS 真机不能调试process launch failed: timed out waiting for app to launch 和 failed to get the task for
- RHCSA 系列(三): 如何管理 RHEL7 的用户和组
- 如何选择一个适合自己的开源项目来阅读
- VX_A快捷键使用
- Android动画-TweenAnimation
- 微软编译器vs 编译器(cl.exe)和连接器参数
- Eclipse启动时卡死解决方法
- 使Linux终端朗读文字的小技巧分享
- Linux重启中init6与reboot的区别
- CentOS更改yum源
- iOS获取当前时区
- 详解ORACLE数据库的分区表
- Android拦截、监听系统返回键事件
- Load Runner11录制脚本出现乱码的解决方法
- 苹果发布iPhone 6s等多款产品
- 我的iis7设置