athycisco 发表于 2013-8-8 22:33:36

VRRP+PVST,麻烦大家来检查下什么问题 谢谢


R4和R5是3层交换机,R6和R7则是二层。
核心接入层配置了VRRP和PVST。代码如下:
R4:(F1/13,14,15都是TRUNK口)
R4:   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                   -----------------抢占

PVST:
spanning-tree vlan 10 root primary
spanning-tree vlan 20 root secondary



R5:   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   

PVST:
spanning-tree vlan 20 root primary
spanning-tree vlan 10 root secondary


R6:(F0/13,14都是TRUNK口)
F1/5 属于vlan 10

R7:(F0/13,14都是TRUNK口)
F1/5 属于vlan 20

C1 :ip 192.168.1.5 24 192.168.1.100
C2 :ip 192.168.2.5 24 192.168.2.100


问题:
C1只能ping通192.168.1.254(重启所有设备后能ping通192.168.1.100 192.168.2.100 192.168.2.254 - -、、、、)
C2不管重启不重启设备。。只能ping通192.168.2.253...........,,,,- -球各位多多指教 我做5遍了。。。

px5285177 发表于 2013-8-8 22:33:37

我所有路由器都是3725. R8R9模拟PC. 关掉路由功能,配IP,指网管.
配置就是按照你帖子里面的配的...没别的配置...
配完后,检查Spann tree的根.和vrrp的master.都OK
PIng 也oK...

shaoyung 发表于 2013-8-8 22:47:05

athycisco 发表于 2013-8-8 22:53:15

shaoyung 发表于 2013-8-8 22:47 static/image/common/back.gif


哥们 能指教下??

minekey 发表于 2013-8-9 00:30:47

无图无真相!

chi5864458 发表于 2013-8-9 00:48:03

在所有设备上SHOW SPA VLAN 20看看。

●「挥霍青春 发表于 2013-8-9 02:01:23

{:6_273:}

ccie34 发表于 2013-8-9 06:47:53

你还是给个拓扑图吧,我都看不懂,你的F1/5 连接什么? 三层交换机上vlan间路由,你的设备是否需要
开启ip routing ?

R4 和R5 是使用F1/15 trunk 连接在一起的?
trunk allow vlan 2
trunk native vlan 1

配置了么?
spanning-tree mode rapid-pvst ?

shengfu 发表于 2013-8-9 08:11:41

{:6_269:}

athycisco 发表于 2013-8-9 10:06:22

minekey 发表于 2013-8-9 00:30 static/image/common/back.gif
无图无真相!

不好意思!!!马上上图,当时忘记了

athycisco 发表于 2013-8-9 10:06:52


athycisco 发表于 2013-8-9 10:10:02

上图了 大家帮帮忙啊。。。。

athycisco 发表于 2013-8-9 12:05:33

ccie34 发表于 2013-8-9 06:47 static/image/common/back.gif
你还是给个拓扑图吧,我都看不懂,你的F1/5 连接什么? 三层交换机上vlan间路由,你的设备是否需要
开启ip ...

你好 给图了

Learner 发表于 2013-8-9 12:59:58

可能是模拟器的问题!

px5285177 发表于 2013-8-9 14:39:17

你可以试试保存,重启..我在GNS上做了.ping没有问题

R9#ping 192.168.1.100

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.100, timeout is 2 seconds:
..!!!
Success rate is 60 percent (3/5), round-trip min/avg/max = 64/69/76 ms
R9#ping 192.168.2.100

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.100, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/117/252 ms
R9#ping 192.168.2.254

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.254, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/236/1068 ms
R9#ping 192.168.1.254

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.254, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 16/38/52 ms
R9#ping 192.168.1.5

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.5, timeout is 2 seconds:
!!!!!


R8#ping 192.168.1.100

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.100, timeout is 2 seconds:

*Mar1 00:11:19.795: %CDP-4-DUPLEX_MISMATCH: duplex mismatch discovered on FastEthernet0/0 (not full duplex), with R6 FastEthernet1/5 (full duplex).!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/255/1024 ms
R8#ping 192.168.2.100

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.100, timeout is 2 seconds:
..!!!
Success rate is 60 percent (3/5), round-trip min/avg/max = 32/97/140 ms
R8#ping 192.168.2.254

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.254, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/64/108 ms


页: [1] 2 3
查看完整版本: VRRP+PVST,麻烦大家来检查下什么问题 谢谢