CCNP交换实验(5) -- 网关热备冗余
HSRP:
1.启用HSRP功能,并设置虚拟地址IP, 1为standby的组号。
2.相同组号的路由器属于同一个HSRP组,所有属于同一个HSRP组的路由器的虚拟地址必须一致。
3.HSRP的优先级默认为100,该值越大抢占为活动路由器的优先权越高
4.可以设置路由器是否抢占为活动路由器
5.由于局域网内大多使用三层交换机,此时HSRP是在交换机的SVI接口上配置的。
1.网关冗余热备份协议HSRP(CISCO私有)
2.VRRP
3.GLBP
enable
conf t
no ip do lo
enable pass cisco
line con 0
logg sync
exec-t 0 0
line vty 0 4
pass cisco
logg sync
exit
host
1.网关冗余热备份协议HSRP(CISCO私有)
-------------------------------------------------------------------------
R1:
int e0/0
ip add 10.1.1.1 255.255.255.0
no shut
exit
int e0/1
ip add 13.1.1.1 255.255.255.0
no shut
exit
router rip
version 2
no auto-summary
network 10.0.0.0
network 13.0.0.0
passive-int e0/0
exit
R2:
int e0/0
ip add 10.1.1.2 255.255.255.0
no shut
exit
int e0/1
ip add 23.1.1.2 255.255.255.0
no shut
exit
router rip
version 2
no auto-summary
network 10.0.0.0
network 23.0.0.0
passive-interface e0/0
exit
R3:
int l0
ip add 33.1.1.1 255.255.255.0
exit
int e0/1
ip add 13.1.1.3 255.255.255.0
no shut
exit
int e0/2
ip add 23.1.1.3 255.255.255.0
no shut
exit
router rip
version 2
no auto-summary
network 33.0.0.0
network 13.0.0.0
network 23.0.0.0
exit
R1:
int e0/0
standby 1 ip 10.1.1.254
standby 1 priority 120
standby 1 preempt
standby 1 authentication mode md5 key-string cisco
standby 2 ip 10.1.1.253
standby 2 preempt
standby 2 authentication mode md5 key-string cisco
exit
R2:
int e0/0
standby 1 ip 10.1.1.254
standby 1 preempt
standby 1 authentication mode md5 key-string cisco
standby 2 ip 10.1.1.253
standby 2 priority 120
standby 2 preempt
standby 2 authentication mode md5 key-string cisco
exit
R1/R2:
show standby brief
PC1:
no ip routing
int e0/0
ip add 10.1.1.100 255.255.255.0
no shut
exit
ip default-gateway 10.1.1.254
ping 33.1.1.1 repeat 10000
R3:
show standby brief
R1:
int e0/0
shutdown
exit
R3:
show standby brief
R1:
int e0/0
standby 1 track e0/1 30
exit
int e0/1
shutdown
exit
show standby brief
show standby
2.VRRP
--------------------------------------------------------------------------
R1:
default int e0/0
int e0/0
ip add 10.1.1.1 255.255.255.0
no shut
exit
router rip
network 10.0.0.0
passive-int e0/0
exit
R2:
default int e0/0
int e0/0
ip add 10.1.1.2 255.255.255.0
no shut
exit
router rip
network 10.0.0.0
passive-interface e0/0
exit
R1:
track 1 int e0/1 line-protocol
exit
int e0/0
vrrp 1 ip 10.1.1.254
vrrp 1 priority 120
vrrp 1 preempt
vrrp 1 authentication mode md5 key-string cisco
vrrp 2 ip 10.1.1.253
vrrp 2 preempt
vrrp 2 authentication mode md5 key-string cisco
vrrp 2 track 1 decrement 30
exit
R2:
track 1 int e0/1 line-protocol
exit
int e0/0
vrrp 1 ip 10.1.1.254
vrrp 1 priority 120
vrrp 1 preempt
vrrp 1 authentication mode md5 key-string cisco
vrrp 2 ip 10.1.1.253
vrrp 2 priority 120
vrrp 2 preempt
vrrp 2 authentication mode md5 key-string cisco
vrrp 2 track 1 decrement 30
exit
R1/R2:
show vrrp brief
3. GLBP
--------------------------------------------------------------------
R1:
int e0/0
ip add 10.1.1.1 255.255.255.0
no shut
exit
int e0/1
ip add 20.1.1.1 255.255.255.0
no shut
exit
router rip
version 2
no auto-summary
network 10.0.0.0
network 20.0.0.0
passive-interface e0/0
exit
R2:
int e0/0
ip add 10.1.1.2 255.255.255.0
no shut
exit
int e0/1
ip add 20.1.1.2 255.255.255.0
no shut
exit
router rip
version 2
no auto-summary
network 10.0.0.0
network 20.0.0.0
passive-interface e0/0
exit
R3:
int e0/0
ip add 10.1.1.3 255.255.255.0
no shut
exit
int e0/1
ip add 20.1.1.3 255.255.255.0
no shut
exit
router rip
version 2
no auto-summary
network 10.0.0.0
network 20.0.0.0
passive-interface e0/0
exit
R4:
int l0
ip add 44.1.1.1 255.255.255.0
exit
int e0/0
ip add 20.1.1.4 255.255.255.0
no shut
exit
router rip
version 2
no auto-summary
network 20.0.0.0
network 44.0.0.0
exit
-----------------------------------------------------
R1:
int e0/0
glbp 1 ip 10.1.1.254
glbp 1 priority 200
glbp 1 preempt
glbp 1 authentication text cisco
exit
R2:
int e0/0
glbp 1 ip 10.1.1.254
glbp 1 priority 180
glbp 1 preempt
glbp 1 authentication text cisco
exit
R3:
int e0/0
glbp 1 ip 10.1.1.254
glbp 1 priority 160
glbp 1 preempt
glbp 1 authentication text cisco
exit
R1:
show glbp
R7-PC1:
no ip routing
int e0/0
ip add 10.1.1.100 255.255.255.0
no shut
exit
ip default-gateway 10.1.1.254
ping 44.1.1.1
show arp
clear arp cache
ping 44.1.1.1
show arp
跟踪上行链路
------------------------------------------------------
R1:
track 2 int e0/1 line-protocol
int e0/0
glbp 1 wighting 110 lower 85 upper 105
glb1 1 weighting track 2 decrement 50
CCNP交换实验(5) -- 网关热备冗余的更多相关文章
- CCNP交换实验(7) -- NAT
1.静态NAT2.动态NAT3.复用内部全局地址的NAT(PAT) enableconf tno ip do loenable pass ciscoline con 0logg syncexec-t ...
- [na]vrrp两用(网关冗余+服务器热备)
VRRP的两种用途 早上想了想vrrp的使用,1,网关冗余 2,服务器热备 思想稍微有点不一样.主要在于监控口 服务器的话有心跳线,用户同步一些配置和迁移一些服务.达到热备的目的.:牵涉到四个优先级: ...
- web双机热备添加心跳检测ip的时候填了网关导致外网ip不能上网
web双机热备添加心跳检测ip的时候填了网关导致外网ip不能上网 1 连接 机器其他机器, 通过机房做的服务器的局域网,ssh到这台的局域网ip,删除网卡配置文件的网关哪一行,重启网卡. 2 如果没有 ...
- Nginx+keepalived双机热备(主从模式)
负载均衡技术对于一个网站尤其是大型网站的web服务器集群来说是至关重要的!做好负载均衡架构,可以实现故障转移和高可用环境,避免单点故障,保证网站健康持续运行.关于负载均衡介绍,可以参考:linux负载 ...
- Nginx+keepalived 双机热备(主从模式)
负载均衡技术对于一个网站尤其是大型网站的web服务器集群来说是至关重要的!做好负载均衡架构,可以实现故障转移和高可用环境,避免单点故障,保证网站健康持续运行.关于负载均衡介绍,可以参考:linux负载 ...
- 《nginx 四》双机主从热备
lvs+keepalived+nginx实现高性能负载均衡集群 LVS作用 LVS是一个开源的软件,可以实现传输层四层负载均衡.LVS是Linux Virtual Server的缩写,意思是Linux ...
- Nginx+keepalived双机热备(默认路径安装)- 基础篇
负载均衡技术对于一个网站尤其是大型网站的web服务器集群来说是至关重要的!做好负载均衡架构,可以实现故障转移和高可用环境,避免单点故障,保证网站健康持续运行.关于负载均衡介绍,可以参考:linux负载 ...
- CCNP路由实验之十五 NAT(网络地址转换)
CCNP路由实验之十五 NAT(网络地址转换) 众所周知,要让自己的电脑连上Internet,必须要到运营商(ISP)申请一个上网账号,依据此账号申请自己的宽频业务(拨号上网.商业固定IP等等) ...
- 【Nginx】(主从热备)LVS+Keepalived+Nginx实现高性能负载均衡集群
一.LVS 1.1 概述 1.2 Nginx与LVS区别什么 二.Keepalived 2.1 概述 2.2 keepalived和其工作原理 三.LVS+Keepalived+Nginx 搭建双机主 ...
随机推荐
- nodejs笔记2——请求路由
对于不同的URL请求,服务器应该有不同的反应.我们要为路由提供请求的URL和其他需要的GET及POST参数,随后路由需要根据这些数据来执行相应的代码.我们需要的所有数据都会包含在request对象中, ...
- leetcode先刷_Search in Rotated Sorted Array II
上一页下一页,找到相同的旋转阵列的问题.假设数组元素一再怎么办呢?会发生什么? 我给大家举一个极端的例子.如果是这样的阵列中的元件.1,1,2,1,1,1,1,我们想看看这个数组2,刚开始A[midd ...
- iOS Development: Proper Use of initWithNibName:bundle: Affects UITableViewController
Address:http://www.outofcore.com/2011/07/ios-development-proper-use-of-initwithnibnamebundle-affects ...
- [Swust OJ 585]--倒金字塔(LIS最长不下降子序列)
题目链接:http://acm.swust.edu.cn/problem/585/ Time limit(ms): 3000 Memory limit(kb): 65535 SWUST国的一支科学 ...
- 省份、城市、区县三级联动Html代码
<!DOCTYPE html><html><head> <meta http-equiv="Content-Type" content=& ...
- 开发板ip设置
vi /etc/init.d/rcS 在其中加入 ifconfig eth0 192.168.1.10 netmask 255.255.255.0 up 就可以了
- 为什么要选择cdn加速
CDN的通俗理解就是网站加速,CPU均衡负载,可以解决跨运营商,跨地区,服务器负载能力过低,带宽过少等带来的网站打开速度慢等问题. 比如: 1.一个企业的网站服务器在北京,运营商是电信,在广东的联通用 ...
- Codeforces Round #312 (Div. 2)
好吧,再一次被水题虐了. A. Lala Land and Apple Trees 敲码小技巧:故意添加两个苹果树(-1000000000, 0)和(1000000000, 0)(前者是位置,后者是价 ...
- C++标准库类型vector及迭代器iterator简介
Vector是C++标准库类型,称为容器,一个容器中的所有对象必须是同一种类型的.与数组相比,其最大的优点就是动态增长.Vector是一个类模板,并不是数据类型,而vector<int>和 ...
- 搭建OA平台
公司没有OA平台的原因是: 1.暂时没有上的必要. 2.总厂有一个web版的用友的OA. 但最近法方总经理提到了共享日历日程的需求. 这个需求的主要要整合的是把outlook的日历功能共享.原来微软是 ...