欢迎来到天天文库
浏览记录
ID:39687984
大小:112.37 KB
页数:4页
时间:2019-07-09
《华为典型VRRP配置案例》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
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状态信息查看[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状态信息查看[SW2]displayvrrpbriefVRIDStateInterfaceTypeVirtualIP----------------------------------------------------------------1BackupVlanif10Normal192.168.1.2542Mast
8、erVla
此文档下载收益归作者所有