锐捷核心交换机虚拟化VSU配置步骤.docx
23页1、VSU基本配置1、对主备核心交换机进行初始配置核心交换机1:Switch1# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch1(config)# switch virtual domain 1 Switch1(config-vs-domain)# switch 1 Switch1(config-vs-domain)# switch 1 priority 200 >默认优先级为100,配置为较高的优先级,VSU建立 成功后将会成为管理主机Switch1(config-vs-domain)# exitSwitch1(config)# vsl-port 1 >VSL 链路至少需要2条,一条链路可靠性较低,当出现链路震荡时,VSU 会非常不稳定Switch1(config-vsl-ap-1)# port-member interfaceTenGigabitEthernet 2/1 >配置 VSL 链路Switch1(config-vsl-ap-1)# port-member interfaceTenGigabitEthernet 2/2Switch1(config-vsl-ap-1)# exit核心交换机2:Switch2# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch2(config)# switch virtual domain 1 >domaind id 必须和第一台一致 Switch2(config-vs-domain)# switch 2 >第二台设备必须更改ID为2Switch2(config-vs-domain)# switch 2 priority 150 Switch2(config-vs-domain)# exitSwitch2(config)# vsl-port 1 >VSL 链路至少需要2条,一条链路可靠性较低,当出现链路震荡时,VSU会非 常不稳定。
Switch2(config-vsl-ap-1)# port-member interface TenGigabitEthernet 2/1 >配置 VSL 链路Switch2(config-vsl-ap-1)# port-member interface TenGigabitEthernet 2/2Switch2(config-vsl-ap-1)# exit2、 连接好VSL链路,并确定接口已经UP3、 保存两台设备的配置,并一起切换为VSU模式核心交换机1Switch1# wrSwitch1# switch convert mode virtual >转换为VSU模式Convert mode will backup and delete config file, and reload the switch. Are you sure to continue[yes/no]: yesDo you want to recover config file from backup file in standalone mode (press 'ctrl + c' to cancel) [yes/no]: nono表示清空重配,核心交换机2Switch2# wr>转换为Switch2# switch convert mode virtualVSU模式Are you sure to convert switch to virtual mode[yes/no]: yesDo you want to recover config file from backup file in virtual mode (press 'ctrl + c' to cancel) [yes/no] : no选择转换模式后,设备会重启启动,并组建VSU。
4、确认VSU建立成功1. VSU的管理需要在其中的主机上进行2. VSU主机的引擎Primary灯绿色常亮,VSU从机的Primary 灯灭,可以用来判断主从机关系(设备优先级提前有指定, 高优先级的设备会成为主机)3. VSU组建后从机Console 口默认不能进行管理,可执行 EscEscEscEscC (即4次Esc键加C键)打开输出开关,建议 使用session device 2 slot (ml,m2,线卡槽位)登录其 它设备查看信息Ruijie# show switch virtual role 检查主备是否符合预1(1)100(100)200(200)LOCALOKACTIVEswitch-1>ACTIVE表示主机箱2(2)100(100)150(150)REMOTEOKSTANDBYswitch-2>STANDBY表示从机箱期Switch_id Domain_idStatus RolePriority PositionDescriptionRuijie# show ver slots 检查是否已经识别到了主从机的 所有线卡(说明以下结果仅为示例)Dev Slot Port Configured Module OnlineModule Software Status1 1 0 none none nonenonenonenone1 3 8 M18000-08XS-EDM18000-08XS-ED ok1 40nonenonenone1 548M18000-24GT20SFP4XS-EDM18000-24GT20SFP4XS-EDok1 60nonenonenone1 77RG-WALL1600-B-EDRG-WALL1600-B-EDok1 80nonenonenone1 FE10N/AM18010-FE-DIok1 FE20N/AM18010-FE-DIok1 FE30N/Anonenone1 FE40N/Anonenone1 M1 0 N/A1M20N/Anonenone210nonenonenone220nonenonenone238M18000-08XS-EDM18000-08XS-EDok240nonenonenone2548M18000-24GT20SFP4XS-EDM18000-24GT20SFP4XS-ED ok260nonenonenone277RG-WALL 1600-B-EDRG-WALL1600-B-EDok280nonenonenone2FE10N/Anonenone2FE20N/A2FE30N/Anone2FE40N/Anone2M10N/Anone2M20N/AM18010-CMIIbackupnonenonenone2、VSU优化配置1、配置双主机检测及例外口为什么要配置双主机检测?1. 当VSL的所有物理链路都异常断开时,从机箱认为主机箱 丢失会切换成主机箱,网络中将出现两台主机箱,两台机箱 的配置完全相同,在三层,两台机箱的任何一个虚接口(VLAN 接口和环回接口等等)的配置相同,网络中将会出现IP地 址冲突,导致网络不可用。
2. 配置双主机检测机制后,BFD专用链路会根据双主机报文 的收发检测出存在双主机箱,系统将根据双主机检测规则选 择一台机箱(低优先级机箱)进入恢复(recovery)模式, 除VSL端口、MGMT 口和管理员指定的例外端口(保留作为设 备其他端口 shutdown时可以Telnet)以外,其它端口都被 强制关闭所以双主机检测可以阻止以上异常故障出现时,保障网络依 然可用(前提是其他设备连接到双核心都具备冗余链路条件 VSU配置:Ruijie(config)# interface gi2/4/2Ruijie(config-if- GigabitEthernet 2/4/2)# no switchport >配置检测接口 2 为路由口Ruijie(config-if)# exitRuijie(config)# interface gi1/4/2 Ruijie(config-if- GigabitEthernet 1/4/2)# no switchport >配置检测接口 1 为路由口Ruijie (config-if)# exit>进入Ruijie (config)# switch virtual domain 1VSU参数配置Ruijie(config-vs-domain)# dual-active detection bfd >打开 BFD 开关,缺省关闭Ruijie(config-vs-domain)# dual-active bfd interface gil/4/2 >配置一对BFD检测接口Ruijie(config-vs-domain)# dual-active bfd interface gi2/4/2Ruijie(config-vs-domain)# dual-active exclude interface ten1/1/2 >指定例外口,上联路由口保留,出现双主机时可以telnetRuijie(config-vs-domain)# dual-active exclude interface ten2/1/2 >指定例外口2、配置 OSPF GR为什么要配置OSPF GR?1. VSU/双引擎主备切换时,OSPF等动态路由协议邻居会重 新建立,导致网络中断或数据流路径切换。
2. 配置GR (完美重启)功能后,GR能够保持邻居间的OSPF 邻居关系不中断,管理面重启时数据面依然正常按照原有路 径转发注意:11x交换机缺省开启GR (完美重启)功能OSPF GR功能需要邻居设备支持并开启GR Helper (我司设 备如支持GR Helper则默认开启,无需配置),邻居不具备 GR Helper功能时,VSU主从机异常切换时OSPF邻居关系依然会中断,造成网络短暂中断VSU配置:Ruijie(config)#router ospf 1Ruijie(config-router)#graceful-restart >开启GR功能邻居设备需要配置GR-helper功能。





