群集分类: 【LB HA HB】负载均衡 高可用性 高性能 【案例待续、、、、、】
再者就是路由设备,思科上可以利用hsrp做到线路的冗余,华为的利用vrrp可以做到:案例链接 http://zhaoweinana.blog.51cto.com/blog/5628672/965254
还有就是链路 在LAN上 有stp rstp mstp 和链路聚合
在WAN上则有 1.浮动静态路由
2.standby interface
3.链路捆绑
下面我们就用华为的设备模拟实现WAN上的应用
浮动路由 standby interface 实验拓扑
浮动静态路由的配置:
下面是R5的配置命令:
interface Ethernet0
ip address 192.168.2.254 255.255.255.0
ospf enable area 0.0.0.0
interface Serial0
ip address 192.168.3.1 255.255.255.0
ospf enable area 0
interface Serial1
ip address 192.168.4.1 255.255.255.0
ospf enable
ip route-static 192.168.1.0 255.255.255.0 192.168.4.2 preference 60
R7 的配置:
interface Ethernet0
ip address 192.168.1.254 255.255.255.0
ospf enable area 0.0.0.0
interface Serial0
ip address 192.168.3.2 255.255.255.0
ospf enable area 0
interface Serial1
ip address 192.168.4.2 255.255.255.0
ospf enable
ip route-static 192.168.2.0 255.255.255.0 192.168.4.1 preference 60
测试结果:
华为的默认的ospf优先级比静态路由的高 所以默认走ospf的路线
shutdown s0后
重新复位后
standby的配置
R5
interface Ethernet0
ip address 192.168.2.254 255.255.255.0
interface Serial0
link-protocol ppp
standby interface Serial 1
standby timer enable-delay 3
standby timer disable-delay 3
ip address 192.168.3.1 255.255.255.0
interface Serial1
ip address 192.168.4.1 255.255.255.0
ip route-static 192.168.1.0 255.255.255.0 192.168.3.2 preference 60
ip route-static 192.168.1.0 255.255.255.0 192.168.4.2 preference 60
R7
interface Ethernet0
ip address 192.168.1.254 255.255.255.0
interface Serial0
ip address 192.168.3.2 255.255.255.0
interface Serial1
link-protocol ppp
standby interface Serial 1
standby timer enable-delay 3
standby timer disable-delay 3
ip address 192.168.4.2 255.255.255.0
ip route-static 192.168.2.0 255.255.255.0 192.168.3.1 preference 60
ip route-static 192.168.2.0 255.255.255.0 192.168.4.1 preference 60
测试结果:
链路捆绑实验拓扑
配置
R5
interface Ethernet0
ip address 192.168.2.254 255.255.255.0
interface Serial0
link-protocol ppp
ppp mp
ppp mp interface Virtual-Template1
!
interface Serial1
link-protocol ppp
ppp mp
ppp mp interface Virtual-Template1
!
interface Virtual-Template1
link-protocol ppp
ip address 192.168.100.1 255.255.255.0
ip route-static 192.168.1.0 255.255.255.0 192.168.100.2 preference 60
R7
interface Ethernet0
ip address 192.168.1.254 255.255.255.0
interface Serial0
clock DTECLK1
link-protocol ppp
ppp mp
ppp mp interface Virtual-Template1
interface Serial1
clock DTECLK1
link-protocol ppp
ppp mp
ppp mp interface Virtual-Template1
interface Virtual-Template1
link-protocol ppp
ip address 192.168.100.2 255.255.255.0
ip route-static 192.168.2.0 255.255.255.0 192.168.100.1 preference 60
测试结果:
转载于:https://blog.51cto.com/zhaoweinana/985392