高可用性网络链路的应用

今天为大家介绍三种常用的高可用性链路:浮动路由、备份中心、链路捆绑。
第一种:浮动路由
1》浮动路由简介:
浮动静态路由是一种特殊的静态路由,通过配置一个比主路由的管理距离更大的静态路由,保证网络中主路由失效的情况下,提供备份路由。但在主路由存在的情况下它不会出现在路由表中。浮动静态路由主要用于拔号备份.
静态路由的用处是当以太链路优先选择,当以太链路出现故障的时候,选用串行链路,而在以太链路恢复后,再优先选以太链路。因此只要改变串行链路的管理距离。
2》试验拓扑图:
clip_image002
3》浮动路由配置方法:
【R1路由配置信息】
【配置接口IP地址等相关信息】
[Router]SYSNA R1
[R1]int s0
[R1-Serial0]ip add 192.168.10.1 24
[R1-Serial0]int s1
[R1-Serial1]ip add 192.168.20.1 24
[R1]int e0
[R1-Ethernet0]ip add 192.168.1.254 24
【配置ospf路由协议与静态路由协议】
[R1]ospf enable【启用ospf】
[R1-ospf]quit
[R1]int e0 【接口上启用ospf】
[R1-Ethernet0]ospf enable area 0
[R1-Ethernet0]int s0
[R1-Serial0]ospf enable area 0
[R1-Serial0]quit
[R1]ip route-static 192.168.2.0 24 192.168.20.2【静态路由】
【R2路由配置信息】
【配置接口ip地址等相关信息】
[R2]int e0
[R2-Ethernet0]ip add 192.168.2.254 24
[R2-Ethernet0]int s0
[R2-Serial0]ip add 192.168.10.2 24
[R2-Serial0]int s1
[R2-Serial1]ip add 192.168.20.2 24
【配置路由协议】
[R2]ospf enable【启用ospf】
[R2-ospf]quit
[R2]int e0
[R2-Ethernet0]ospf enable area 0【在接口上启用ospf】
[R2-Ethernet0]int s0
[R2-Serial0]ospf enable area 0
[R2-Serial0]quit
[R2]ip route-static 192.168.1.0 24 192.168.20.1【配置静态路由】
[R2]int e0
[R2-Ethernet0]ip add 192.168.2.254 24
[R2-Ethernet0]undo shut
4》连通性测试
R1上路由表
clip_image004
断开s0接口
clip_image006
第二种:备份中心standby interface
1》备份中心简介:
它使网络具备高可用性,具有备份功能。任何接口都可以作为备份接口,或者主接口。而且对一个主接口,可以为它提供多个备份接口。备份中心支持备份负载分担功能。当备份链中所有活动接口的流量达到设定的门限上限时,路由器启动一个优先级最高的可用备用接口,同主接口一起进行负载分担;当备份链中所有活动接口的流量小于设定的门限下限时,路由器关闭一个优先级别最低的备用接口。
2》试验拓扑图:
clip_image007
3》备份中心配置方法
[R1]int s0
[R1-Serial0]ip add 192.168.10.1 24【配置地址信息】
[R1-Serial0]int s1【配置接口ip地址信息】
[R1-Serial1]ip add 192.168.20.1 24
[R1]int e0
[R1-Ethernet0]ip add 192.168.1.254 24
[R1]ip route-static 192.168.2.0 24 192.168.10.2 【配置静态ip地址】
[R1]ip route-static 192.168.2.0 24 192.168.20.2【配置静态ip地址】
[R1]int s0【进入接口S0】
[R1-Serial0]standby interface s1【声明s1为s0接口的备份接口】
[R1-Serial0]standby timer enable-delay 5【设置从主接口转到备份接口的确认时间为5秒钟】
[R1-Serial0]standby timer disable-delay 5【设置从备份接口转到主接口的确认时间为5秒钟】
[R1-Serial0]quit
【R2路由配置信息】
[R2]int e0
[R2-Ethernet0]ip add 192.168.2.254 24
[R2-Ethernet0]int s0
[R2-Serial0]ip add 192.168.10.2 24
[R2-Serial0]int s1
[R2-Serial1]ip add 192.168.20.2 24
[R2]ip route-static 192.168.1.0 24 192.168.10.1
[R2]ip route-static 192.168.1.0 24 192.168.20.1
[R2]int s0 【进入主接口】
[R2-Serial0]standby interface s1【声明备用接口为s1】
[R2-Serial0]standby timer enable-delay 5【设置从主接口转到备份接口的确认时间为5秒钟】
[R2-Serial0]standby timer disable-delay 5【设置从备份接口转到主接口的确认时间为5秒钟】
[R2-Serial0]quit
4》连通性测试:
R1路由表
clip_image009
断开S0
clip_image011
第三种:ppp链路捆绑
1》链路捆绑简介
为了增加带宽,可以将多个PPP 链路捆绑使用,称为MultiLink PPP,简称MP。MP 会将报文分片(小于最小分片包长时不分片)后,从MP 链路下的多个PPP 通道发送到PPP 对端,对端将这些分片组装起来递给网络层。
2》试验拓扑图:
clip_image013
3》链路捆绑配置信息
[R1]int e0
[R1-Ethernet0]ip add 192.168.1.254 24【配置接口的IP地址信息】
[R1]int virtual-template 1【创建虚拟链路接口vir 1】
[R1-Virtual-Template1]ip add 192.168.100.1 24【为虚拟链路接口配置IP地址】
[R1-Virtual-Template1]int s0【进入接口S0】
[R1-Serial0]ppp mp int virtual-template 1【将s0捆绑到虚拟链路中】
[R1-Serial0]int s1【进入s1接口】
[R1-Serial1]ppp mp int virtual-template 1【将s1捆绑到虚拟链路中】
[R1-Serial0]int s1 【进入接口S1】
[R1-Serial1]ppp mp【在接口上启动多链路捆绑】
[R1-Serial1]int s0【进入接口S0】
[R1-Serial0]ppp mp【在该接口上启动链路捆绑】
[R1]ip route 192.168.2.0 24 192.168.100.2【配置静态路由】
【R2路由器配置信息】
[R2]int e0
[R2-Ethernet0]ip add 192.168.2.254 24【配置ip地址等相关信息】
[R2]int virtual-template 1【创建虚拟捆绑链路vir1】
[R2-Virtual-Template1]ip add 192.168.100.2 24
[R2-Virtual-Template1]int s0【进入接口S0】
[R2-Serial0]ppp mp int virtual-template 1【在该接口上启动虚链路捆绑】
[R2-Serial0]int s1
[R2-Serial1]ppp mp int virtual-template 1
[R2-Serial0]int s1
[R2-Serial1]ppp mp【在接口s1上启动虚链路捆绑】
[R2-Serial1]int s0
[R2-Serial0]ppp mp
[R2]ip route 192.168.1.0 24 192.168.100.1
4》连通性测试:
测试pc1与pc2之间的连通性
clip_image015
断开s0
clip_image017

你可能感兴趣的:(h3c,备份中心,链路捆绑,静态浮动路由)