秋天养生短信:请问两台三层交换机的vrrp的配置 虚拟做不了vrrp。 3560也没有vrrp做。 但是还是想了解VRRP的配置。 cisco的vrrp配置。 竞赛题目要求 交换A: 创建两个vrrp组

来源:百度文库 编辑:偶看新闻 时间:2024/04/29 10:35:48
请问两台三层交换机的vrrp的配置

虚拟做不了vrrp。
3560也没有vrrp做。
但是还是想了解VRRP的配置。
cisco的vrrp配置。
竞赛题目要求
交换A:
创建两个vrrp组,分别为group10 , group20 实现交换A是vlan10的活跃路由,vlan20是备份路由。
交换B:
创建两个vrrp组,分别为group10 , group20 实现交换B是vlan20是活跃路由,vlan10是备份路由。
除了这些包括 要配置抢占模式。优先级。
就是求这些配置。!
谢谢了。
备注:图左边是A 。右边是B。!
搜索更多相关主题的帖子: 交换机 vrrp
使用GNS3学习路由重分布,策略路 ...
我有一台H3c的路由器 还有一台华 ...
求助,3750 QOS如何配置
F100-E的防火墙如何在VPN上实施 ...
网络工程师学习笔记1——不定期 ...
思科接入交换机3560环路问题!求解 ...
H3C 组网方案
H3C ER3260开机就一直停在STRAIN ...
1/5
TOP
社区任务五步走 赢取时尚上网本
alvinlgw86
新新人类

帖子
52
精华
0
积分
53
无忧币
798
注册时间
2010-3-10
最后登录
2011-10-25
发短消息
家园好友
当前离线
个人博客
沙发大中小发表于 2010-12-9 10:54 只看该作者
弱电安防培训--工信部认证 |广播:51CTO四地网友线下聚会 |华为ARG3企业级路由器问答接龙 | 大喇叭:51CTO六周年纪念T恤发布了!

A/B之间起trunk
A:
interface Vlan10
ip address 192.168.1.1 255.255.255.0
vrrp 10 ip 192.168.1.254
vrrp 10 priority 150
!
interface Vlan20
ip address 192.168.2.1 255.255.255.0
vrrp 20 ip 192.168.2.254
vrrp 20 ip preempt(抢占 show run不显示)
B:
interface Vlan10
ip address 192.168.1.2 255.255.255.0
vrrp 10 ip 192.168.1.254
vrrp 10 ip preempt(抢占show run不显示)
!
interface Vlan20
ip address 192.168.2.2 255.255.255.0
vrrp 20 ip 192.168.2.254
vrrp 20 priority 150
本帖最近评分记录
独钩寒江雪 无忧币 +2 热心广援 2010-12-9 20:06
TOP
社区任务五步走 赢取时尚上网本
a84991234
新新人类

帖子
35
精华
0
积分
40
无忧币
23
注册时间
2008-11-12
最后登录
2011-7-5
发短消息
家园好友
当前离线
个人博客
板凳大中小发表于 2010-12-9 12:41 只看该作者
弱电安防培训--工信部认证 |广播:51CTO四地网友线下聚会 |华为ARG3企业级路由器问答接龙 | 大喇叭:51CTO六周年纪念T恤发布了!

A/B之前做个trunk 或聚合端口
SWA:   vlan 10  为主  vlan 20 为备份
int vlan 10
ip add 192.168.1.254 255.255.255.0
vrrp 10 ip 192.168.1.100    -----------------设置一个虚地址
vrrp 10 priority 254               -----------------优先级  值越高越优先
vrrp 10 preempt                   -----------------抢占
int vlan 20
ip add 192.168.2.254 255.255.255.0
vrrp 20 ip 192.168.2.100    -----------------设置一个虚地址
vrrp 20 priority 100               -----------------优先级  值越高越优先
vrrp 20 preempt                   -----------------抢占
SWB:   vlan 20  为主  vlan 10 为备份
int vlan 10
ip add 192.168.1.253 255.255.255.0
vrrp 10 ip 192.168.1.100    -----------------设置一个虚地址
vrrp 10 priority 100               -----------------优先级  值越高越优先
vrrp 10 preempt                   -----------------抢占
int vlan 20
ip add 192.168.2.253 255.255.255.0
vrrp 20 ip 192.168.2.100    -----------------设置一个虚地址
vrrp 20 priority 254               -----------------优先级  值越高越优先
vrrp 20 preempt                   -----------------抢占
验证:
1.sh vrrp

2.更细致测试就,将SWA 的vlan 10 shutdown  ,观察发现SWB的vlan 10  会由备份变成主
[ 本帖最后由 a84991234 于 2010-12-9 12:53 编辑 ]
本帖最近评分记录
独钩寒江雪 无忧币 +2 热心广援 2010-12-9 20:06
TOP
社区任务五步走 赢取时尚上网本
qq380868023
初级工程师

帖子
435
精华
0
积分
500
无忧币
441
注册时间
2010-3-20
最后登录
2011-10-27


发短消息
家园好友
当前在线
个人博客
地板大中小发表于 2010-12-9 15:01 只看该作者
引用:
原帖由 a84991234 于 2010-12-9 12:41 发表 
A/B之前做个trunk 或聚合端口
SWA:   vlan 10  为主  vlan 20 为备份
int vlan 10
ip add 192.168.1.254 255.255.255.0
vrrp 10 ip 192.168.1.100    -----------------设置一个虚地址
vrrp 10 priority 254  ...
做VRRP前 在他们口之前一定要做tr吗?
TOP
社区任务五步走 赢取时尚上网本
a84991234
新新人类

帖子
35
精华
0
积分
40
无忧币
23
注册时间
2008-11-12
最后登录
2011-7-5
发短消息
家园好友
当前离线
个人博客
5#大中小发表于 2010-12-9 16:21 只看该作者
你可以配置了VRRP后再trunk,不过通常良好的习惯最好就先做trunk 或聚合
TOP
社区任务五步走 赢取时尚上网本
BenIsSimple
新新人类

帖子
7
精华
0
积分
8
无忧币
16
注册时间
2010-2-14
最后登录
2011-7-29
发短消息
家园好友
当前离线
个人博客
6#大中小发表于 2010-12-9 21:04 只看该作者
要trunk 的
TOP
社区任务五步走 赢取时尚上网本
kaka1983918
新新人类

帖子
17
精华
0
积分
18
无忧币
5
注册时间
2010-6-30
最后登录
2011-3-31
发短消息
家园好友
当前离线
个人博客
7#大中小发表于 2010-12-9 22:12 只看该作者

我的sh run
switch0#sh run
Building configuration...
Current configuration : 1408 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname switch0
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$qi5E$WUjRihiWgN.Y.lw1VscKP.
!
no aaa new-model
!
resource policy
!
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface Vlan1
no ip address
!
interface Vlan10
ip address 192.168.1.253 255.255.255.0
vrrp 10 ip 192.168.1.1
vrrp 10 priority 120
!
interface Vlan20
ip address 192.168.2.253 255.255.255.0
vrrp 20 ip 192.168.2.1
!
ip http server
no ip http secure-server
!
!
!
mac-address-table static 0000.5e00.010a interface FastEthernet0/1 vlan 10
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
password 7 14141B180F0B
logging synchronous
login
transport output none
line aux 0
line vty 0 4
password 7 13061E010803
login
transport input none
!
!
end
本帖最近评分记录
独钩寒江雪 无忧币 +4 热心广援 2010-12-10 22:28
TOP
社区任务五步走 赢取时尚上网本
kaka1983918
新新人类

帖子
17
精华
0
积分
18
无忧币
5
注册时间
2010-6-30
最后登录
2011-3-31
发短消息
家园好友
当前离线
个人博客
8#大中小发表于 2010-12-9 22:13 只看该作者
我的sh run
switch1#sh run
Building configuration...
Current configuration : 1334 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname switch1
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$gq/G$Fk1MaZjUYnyZtGSboMwQB/
!
no aaa new-model
!
resource policy
!
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface Vlan1
no ip address
!
interface Vlan10
ip address 192.168.1.254 255.255.255.0
vrrp 10 ip 192.168.1.1
!
interface Vlan20
ip address 192.168.2.254 255.255.255.0
vrrp 20 ip 192.168.2.1
vrrp 20 priority 120
!
ip http server
no ip http secure-server
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
password 7 060506324F41
logging synchronous
login
transport output none
line aux 0
line vty 0 4
password 7 121A0C041104
login
transport input none
!
!
end
TOP
社区任务五步走 赢取时尚上网本
qq380868023
初级工程师

帖子
435
精华
0
积分
500
无忧币
441
注册时间
2010-3-20
最后登录
2011-10-27


发短消息
家园好友
当前在线
个人博客
9#大中小发表于 2010-12-10 09:06 只看该作者
谢谢了。
TOP
社区任务五步走 赢取时尚上网本
tbagsfans
助理工程师

帖子
224
精华
0
积分
226
无忧币
118
注册时间
2008-10-6
最后登录
2011-10-25
发短消息
家园好友
当前离线
个人博客
10#大中小发表于 2010-12-10 10:37 只看该作者
vrrp默认启用抢占,所以抢占不在show runn中显示…………
TOP
社区任务五步走 赢取时尚上网本
ckwentao
初级工程师

帖子
430
精华
0
积分
446
无忧币
863
注册时间
2008-5-21
最后登录
2011-10-18

发短消息
家园好友
当前离线
个人博客
11#大中小发表于 2010-12-10 21:22 只看该作者
看你的网络拓扑就知道在PT中模拟。HSRP  VRRP是实现不了的。早点学会GNS3吧。这样来的更快!
TOP
社区任务五步走 赢取时尚上网本
qq380868023
初级工程师

帖子
435
精华
0
积分
500
无忧币
441
注册时间
2010-3-20
最后登录
2011-10-27


发短消息
家园好友
当前在线
个人博客
12#大中小发表于 2010-12-11 09:41 只看该作者
引用:
原帖由 ckwentao 于 2010-12-10 21:22 发表 
看你的网络拓扑就知道在PT中模拟。HSRP  VRRP是实现不了的。早点学会GNS3吧。这样来的更快!
恩!谢谢了。