資源描述:
《華為典型VRRP配置案例》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫(kù)。
1、華為典型VRRP配置案例R1接口配置interfaceGigabitEthernet0/0/0ipaddress10.10.10.1255.255.255.0#interfaceGigabitEthernet0/0/1ipaddress20.20.20.1255.255.255.0#interfaceGigabitEthernet2/0/0ipaddress172.16.1.2255.255.255.0#interfaceGigabitEthernet2/0/1ipaddress172.16.2.2255.255.255.0R1OSPF配置ospf1router-
2、id1.1.1.1import-routedirectarea0.0.0.0network172.16.1.00.0.0.255network172.16.2.00.0.0.255SW1接口配置interfaceGigabitEthernet0/0/2portlink-typetrunkporttrunkallow-passvlan2to4094#interfaceGigabitEthernet0/0/3portlink-typetrunkundoporttrunkallow-passvlan1porttrunkallow-passvlan2to4094SW1OS
3、PF配置ospf1router-id11.11.11.11import-routedirectarea0.0.0.0network172.16.1.00.0.0.255SW1VRRP配置interfaceVlanif1ipaddress172.16.1.1255.255.255.0#interfaceVlanif10ipaddress192.168.1.1255.255.255.0vrrpvrid1virtual-ip192.168.1.254vrrpvrid1priority120vrrpvrid1trackinterfaceGigabitEthernet0/0
4、/1reduced30#interfaceVlanif20ipaddress192.168.2.1255.255.255.0vrrpvrid2virtual-ip192.168.2.254#SW1VRRP狀態(tài)信息查看[SW1]displayvrrpbriefVRIDStateInterfaceTypeVirtualIP----------------------------------------------------------------1MasterVlanif10Normal192.168.1.2542BackupVlanif20Normal192.16
5、8.2.254----------------------------------------------------------------Total:2Master:1Backup:1Non-active:0[SW1]SW2接口配置interfaceGigabitEthernet0/0/2portlink-typetrunkporttrunkallow-passvlan2to4094#interfaceGigabitEthernet0/0/3portlink-typetrunkundoporttrunkallow-passvlan1porttrunkallow
6、-passvlan2to4094#SW2OSPF配置ospf1router-id22.22.22.22import-routedirectarea0.0.0.0network172.16.2.00.0.0.255#SW2VRRP配置interfaceVlanif1ipaddress172.16.2.1255.255.255.0#interfaceVlanif10ipaddress192.168.1.2255.255.255.0vrrpvrid1virtual-ip192.168.1.254#interfaceVlanif20ipaddress192.168.2.2
7、255.255.255.0vrrpvrid2virtual-ip192.168.2.254vrrpvrid2priority120vrrpvrid2trackinterfaceGigabitEthernet0/0/1reduced30SW2VRRP狀態(tài)信息查看[SW2]displayvrrpbriefVRIDStateInterfaceTypeVirtualIP----------------------------------------------------------------1BackupVlanif10Normal192.168.1.2542Mast
8、erVla