雏鹰部落

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 5046|回复: 12

[讨论/求助] 关于冗余求助,急啊,大家快帮我们下啊

[复制链接]
发表于 2014-5-5 21:52:45 | 显示全部楼层 |阅读模式
我在SW3和SW4上做了VRRP和PVST命令,使得VLAN2、VLAN3、VLAN4、VLAN5的主VRRP在SW3上;VLAN6、VLAN7、VLAN8、VLAN9的主VRRP在SW4上;然后配置了PVST使得VLAN2、VLAN3、VLAN4、VLAN5走SW3;VLAN6、VLAN7、VLAN8、VLAN9走SW4;然后测试的时候down掉其中一台SW3或SW4都能ping通外网的,但是down掉SW5后,VLAN2就不能ping通外网了;后来我想是不是因为SW5认为down掉后,由于SW3还活动的,所以VLAN2、VLAN3、VLAN4、VLAN5的主VRRP还在SW3上;而SW3上连接的SW5是down掉的,所以通不了(因为我把SW5认为down掉后,属于Vlan 2的主机还是能ping通SW3上的虚拟网关的)。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
 楼主| 发表于 2014-5-5 21:54:34 | 显示全部楼层
这是GNS3的拓扑图

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
 楼主| 发表于 2014-5-5 21:55:53 | 显示全部楼层
图图图图图图图

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
 楼主| 发表于 2014-5-5 21:57:29 | 显示全部楼层
SW3上的PVST配置:
spanning-tree vlan 2 priority 8192
spanning-tree vlan 3 priority 8192
spanning-tree vlan 4 priority 8192
spanning-tree vlan 5 priority 8192
spanning-tree vlan 6 priority 16384
spanning-tree vlan 7 priority 16384
spanning-tree vlan 8 priority 16384
spanning-tree vlan 9 priority 16384

SW4上的PVST配置:
spanning-tree vlan 2 priority 16384
spanning-tree vlan 3 priority 16384
spanning-tree vlan 4 priority 16384
spanning-tree vlan 5 priority 16384
spanning-tree vlan 6 priority 8192
spanning-tree vlan 7 priority 8192
spanning-tree vlan 8 priority 8192
spanning-tree vlan 9 priority 8192

 楼主| 发表于 2014-5-5 22:00:19 | 显示全部楼层
VRRP的配置我就不发了,因为我上面说过终端主机能通外网,说明我VRRP配置应该没错;
还有SW5和SW6之间的端口聚合技术因为GNS3上三层做不了,所以我只是塔了线,具体没配置什么,所以可以忽略;SW3和SW4之间配置了二层的端口聚合
 楼主| 发表于 2014-5-5 22:02:21 | 显示全部楼层
真心求会的能帮助我,很急啊,谢了啊
发表于 2014-5-6 08:47:32 | 显示全部楼层
跟踪一下故障时点的路径。查查路由吧。
发表于 2014-5-6 10:01:26 | 显示全部楼层
利用路径跟踪能解决你的问题。如果你down掉的是SW5的F0/4接口,你只需在SW3配置:
track 1 interface fastEthernet 0/4 line-protocol
interface xx
vrrp 1 track 1

如果你down的是F0/0或者是(f0/3,F0/1)
OSPF关于目标网段的路由能够动态更新,切换下一跳。

如有疑问,请添加QQ 393581839帮你解决。
发表于 2014-5-6 13:58:48 | 显示全部楼层
楼主,这个问题很简单,首先你要明白SW3/SW4是通过什么路由访问外网的,如果是默认路由的话,你是手动还是OSPF下发的(我看你运行了OSPF),那如果是OSPF下发的话,如果SW5 down了,那么默认路由的下一跳是会发生变化的,可以走备份的SW4路径(即使VRRP没有切换),那么如果你手动指定,那么,你可以设定浮动的静态默认路由来达到目的。在楼主的这种配置和思路中,VRRP的主备是不会切换的(这个我相信你是明白的),那么在你这种环境下,你可以配置VRRP的track功能,一旦SW3-SW5之间的链路down了,那么VRRP立马切换,当然这里也许会有坑,也许虚拟机down掉一条对方还是up的话,这种情况下也是有办法的,可以跟踪下一跳是否可达来实现。
问题和解决方案都在我的描述中,有问题继续跟帖。
 楼主| 发表于 2014-5-6 14:41:23 | 显示全部楼层
我比较笨,老师讲的是不错,但是我没有很好的理解。我吧SW3的配置发下
!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SW3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree vlan 2 priority 8192
spanning-tree vlan 3 priority 8192
spanning-tree vlan 4 priority 8192
spanning-tree vlan 5 priority 8192
spanning-tree vlan 6 priority 16384
spanning-tree vlan 7 priority 16384
spanning-tree vlan 8 priority 16384
spanning-tree vlan 9 priority 16384
!
!
track 2 interface FastEthernet0/4 line-protocol
!
!
!
!
!
interface Port-channel1
switchport mode trunk
!
interface FastEthernet0/0
switchport mode trunk
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
no switchport
ip address 192.168.2.1 255.255.255.0
!
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 FastEthernet1/0
no ip address
shutdown
duplex auto
speed auto
!
interface Vlan1
no ip address
!
interface Vlan2
ip address 192.168.1.28 255.255.255.224
ip helper-address 20.1.1.2
vrrp 2 ip 192.168.1.30
vrrp 2 priority 200
vrrp 2 track 2 decrement 60
!
interface Vlan3
ip address 192.168.1.60 255.255.255.224
ip helper-address 20.1.1.2
vrrp 3 ip 192.168.1.62
vrrp 3 priority 200
vrrp 3 track 2 decrement 60
!
interface Vlan4
ip address 192.168.1.92 255.255.255.224
ip helper-address 20.1.1.2
vrrp 4 ip 192.168.1.94
vrrp 4 priority 200
vrrp 4 track 2 decrement 60
!
interface Vlan5
ip address 192.168.1.124 255.255.255.224
ip helper-address 20.1.1.2
vrrp 5 ip 192.168.1.126
vrrp 5 priority 200
vrrp 5 track 2 decrement 60
!
interface Vlan6
ip address 192.168.1.156 255.255.255.224
ip helper-address 20.1.1.2
vrrp 6 ip 192.168.1.158
vrrp 6 priority 150
!
interface Vlan7
ip address 192.168.1.188 255.255.255.224
ip helper-address 20.1.1.2
vrrp 7 ip 192.168.1.190
vrrp 7 priority 150
!
interface Vlan8
ip address 192.168.1.220 255.255.255.224
ip helper-address 20.1.1.2
vrrp 8 ip 192.168.1.222
vrrp 8 priority 150
!
interface Vlan9
ip address 192.168.1.252 255.255.255.224
ip helper-address 20.1.1.2
vrrp 9 ip 192.168.1.254
vrrp 9 priority 150
!
router ospf 1
router-id 1.1.1.1
log-adjacency-changes
redistribute connected subnets
network 192.168.2.1 0.0.0.0 area 0
!
no ip http server
no ip http secure-server
!
!
!
mac-address-table static 0000.5e00.0103 interface FastEthernet0/0 vlan 3
mac-address-table static 0000.5e00.0105 interface FastEthernet0/0 vlan 5
mac-address-table static 0000.5e00.0104 interface FastEthernet0/0 vlan 4
mac-address-table static 0000.5e00.0102 interface FastEthernet0/0 vlan 2
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
password 123
login
!
!
end
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )

GMT+8, 2024-3-29 14:33 , Processed in 0.086541 second(s), 20 queries , Gzip On.

快速回复 返回顶部 返回列表