基于IPv4的VRRP典型配置举例(交换应用),;;当SwitchA正常工作时,HostA发送给HostB的报文通过SwitchA转发;当SwitchA出现故障时,HostA发送给HostB的报文通过SwitchB转发。-:.Vlan--#配置VLAN20<SwitchA>system-view[SwitchA-vlan2]1/5[SwitchA-vlan2]quit[SwitchA]interfacevlan-interface2[SwitchA-Vlan-interface2]#创建备份组1,[SwitchA-Vlan-interface2]vrrpvrid1virtual-#设置SwitchA在备份组1中的优先级为110o[SwitchA-Vlan-interface2]vrrpvrid1priority110#设置SwitchAT作在抢占方式,抢占延迟时间为5秒。[SwitchA-Vlan-interface2]vrrpvrid1preempt-modetimerdelay5配置SwitchB#配置VLAN2o<SwitchB>system-view[SwitchB]vlan2[SwitchB-Vlan2]1/5[SwitchB-vlan2]quit[SwitchB]interfacevlan-interface2[SwitchB-Vlan-interface2]#创建备份组1,[SwitchB-Vlan-interface2]vrrpvrid1virtual-#,抢占延迟时间为5秒。[SwitchB-Vlan-interface2]vrrpvrid1preempt-modetimerdelay5验证配置结果配置完成后,在HostA±可以ping通HostB。通过displayvrrpverbose命令查看配置后的结果。#显示SwitchA上备份组1的详细信息。[SwitchA-Vlan-interface2]displayvrrpverboseIPv4StandbyInformation:RunMethod:VIRTUAL-MACVirtualIPPing:EnableTotalnumberofvirtualrouters:1Interface:Vlan-:UPState:MasterConfigPri:110RunPri:110PreemptMode:YESDelayTime:5AuthType:NONEVirtualIP::0000-5e00-0101MasterIP:#显示SwitchB上备份组1的详细信息。[SwitchB-Vlan-interface2]displayvrrpverboseIPv4StandbyInformation:RunMethod:VIRTUAL-MACVirtualIPPing:EnableTotalnumberofvirtualrouters:1Interface:Vlan-interface2VRID::1AdminStatus:UPConfigPri:100PreemptMode:YESState:BackupRunPri:100DelayTime:5Au比Type :NONEVirtualIP::,SwitchB为Backup路由器,HostA发送给HostB的报文通过SwitchA转发。SwitchA出现故障后,在HostA上仍然可以ping通HostB。通过d
基于IPv4的VRRP典型配置举例 来自淘豆网www.taodocs.com转载请标明出处.