文坛里的一根葱 发表于 2013-8-9 23:12:50

VRRP配置

1.1组网及业务描述(VRRP多备份组)file:///C:\Users\ADMINI~1\AppData\Local\Temp\ksohtml\wps_clip_image-29825.png图1-1 l RTA、RTB组成一个备份组10 ,其中RTA担当Master,RTB担当Slave。l RTA、RTB组成另一个备份组20 ,其中RTA担当Slave,RTB担当Master。l PCA的网关都设置成备份组10虚拟的IP的地址。l PCB的网关都设置成另一备份组20虚拟的IP的地址。l PCA的数据经过RTA到达PCC ,PCB的数据经过RTB到达PCC,实现负载分担。1.1配置流程图file:///C:\Users\ADMINI~1\AppData\Local\Temp\ksohtml\wps_clip_image-12714.pngfile:///C:\Users\ADMINI~1\AppData\Local\Temp\ksohtml\wps_clip_image-30532.pngfile:///C:\Users\ADMINI~1\AppData\Local\Temp\ksohtml\wps_clip_image-11876.pngfile:///C:\Users\ADMINI~1\AppData\Local\Temp\ksohtml\wps_clip_image-13227.pngfile:///C:\Users\ADMINI~1\AppData\Local\Temp\ksohtml\wps_clip_image-7314.pngfile:///C:\Users\ADMINI~1\AppData\Local\Temp\ksohtml\wps_clip_image-19863.pngfile:///C:\Users\ADMINI~1\AppData\Local\Temp\ksohtml\wps_clip_image-13708.pngfile:///C:\Users\ADMINI~1\AppData\Local\Temp\ksohtml\wps_clip_image-4627.pngfile:///C:\Users\ADMINI~1\AppData\Local\Temp\ksohtml\wps_clip_image-28406.pngfile:///C:\Users\ADMINI~1\AppData\Local\Temp\ksohtml\wps_clip_image-12759.pngfile:///C:\Users\ADMINI~1\AppData\Local\Temp\ksohtml\wps_clip_image-2503.pngfile:///C:\Users\ADMINI~1\AppData\Local\Temp\ksohtml\wps_clip_image-22700.png图1-1 1.2配置步骤(1)进入system-view,配置端口的IP地址。各路由器和PC的IP地址可以采用图2--1中的设置。(1)配置路由协议配置一种路由协议,确保在没有VRRP备份组的情况下,PCA或者PCB可以分别通过RTA和RTB来ping通 PCC。(2)配置虚拟备份组10,设置虚拟IP地址。在RTA和RTB的Ethernet端口上配置虚拟组,设置虚拟IP。(3)   配置路由器的优先级设置RTA的priority为120,RTB的priority为100(100是默认值,不需要修改)。(4)配置另一虚拟备份组20,设置虚拟IP地址。在RTA和RTB的Ethernet端口上配置另一个虚拟组,设置虚拟IP。(5)配置虚拟组20的优先级在这个虚拟组中设置RTA的priority为100(100是默认值,不需要修改),RTB的priority为120。1.3配置参考1.1.1配置端口IP地址1. 配置RTA的端口IP地址<Quidway>system-viewSystem view: return to user view with Ctrl+Z.sysname RouterAinterface Ethernet 0/0ip address 10.1.1.3 255.255.255.0quitinterface Serial 2/0ip address 172.1.1.1 255.255.255.01. 配置RTB的端口IP地址<Quidway>system-viewSystem View: return to User View with Ctrl+Z.sysname RouterBinterface Ethernet 0/0ip address 10.1.1.4 255.255.255.0quitinterface Serial 2/1ip address 172.2.2.1 255.255.255.02. 配置RTC的端口IP地址<Quidway>system-viewSystem View: return to User View with Ctrl+Z.sysname RouterCinterface Ethernet 0/0ip address 10.2.2.1 255.255.255.0quitinterface Serial 1/0ip address 172.1.1.2 255.255.255.0quitinterface Serial 1/1ip address 172.2.2.2 255.255.255.01.3.1路由协议配置1. 配置RTA的路由协议router id 1.1.1.1ospfarea 0network 10.1.1.0 0.0.0.255network 172.1.1.0 0.0.0.2552. 配置RTB的路由协议router id 2.2.2.2ospfarea 0network 172.2.2.0 0.0.0.255network 10.1.1.0 0.0.0.2553. 配置RTC的路由协议router id 3.3.3.3ospfarea 0network 10.2.2.0 0.0.0.255network 172.1.1.0 0.0.0.255network 172.2.2.0 0.0.0.2551.3.2VRRP虚拟组配置1. 配置RTA的虚拟组vrrp ping-enableinterface Ethernet 0/0设置第一个虚拟组10,并设置RouterA为Master,RouterB为Slavevrrp vrid 10 virtual-ip 10.1.1.1vrrp vrid 10 priority 120设置第二个虚拟组20,并设置RouterA为Slave,RouterB为Mastervrrp vrid 20 virtual-ip 10.1.1.2vrrp vrid 20 priority 1002. 配置RTB的虚拟组vrrp ping-enableinterface Ethernet 0/0设置第一个虚拟组10,并设置RouterA为Master,RouterB为Slavevrrp vrid 10 virtual-ip 10.1.1.1vrrp vrid 10 priority 100设置第二个虚拟组20,并设置RouterA为Slave,RouterB为Mastervrrp vrid 20 virtual-ip 10.1.1.2vrrp vrid 20 priority 120

pet_890313 发表于 2013-8-10 08:28:26

{:6_299:}

Rockyw 发表于 2013-8-10 11:21:33

感谢楼主分享!

carla 发表于 2017-8-1 16:11:53

可以看
页: [1]
查看完整版本: VRRP配置