- 积分
- 696
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 注册时间
- 2010-10-5
- 最后登录
- 1970-1-1
- 阅读权限
- 40
- 听众
- 收听
中级工程师
![Rank: 7](https://cdn.hh010.com/static/image/common/star_level2.gif) ![Rank: 7](https://cdn.hh010.com/static/image/common/star_level1.gif) ![Rank: 7](https://cdn.hh010.com/static/image/common/star_level1.gif) ![Rank: 7](https://cdn.hh010.com/static/image/common/star_level1.gif)
|
吉祥三宝总共三道实验题,acl和eigrp这俩题都没什么问题,但对vtp/stp这道题的第五个问题的解题思路我觉得原作者(咱论坛下的那个附件里有解题思路那个)有些不严谨,若有不对的地方还请前辈多多包含,下面讲一下我的看法
这是原作者的解题思路
5——vlan 1的根桥 可以用show spanning-tree vlan 1来确定根桥的位置
sw-ac3#show spanning-tree vlan 1
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 24577
Address 0010.1102.14C4 《===根桥的MAC
Cost 19
Port 6(FastEthernet0/6)《===本地可以通过f0/6到根桥
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 00E0.F768.81B1
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/5 Altn BLK 19 128.5 P2p
Fa0/6 Root FWD 19 128.6 P2p
Fa0/7 Desg FWD 19 128.7 P2p
sw-ac3# show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID Local Intrfce Holdtme Capability Platform Port ID
sw-ds1 Fas 0/5 148 S 2960 Fas 0/3
sw-ac2 Fas 0/6 148 S 2960 Fas 0/7 《===f0/6连的sw-ac2是根桥
vlan-r1 Fas 0/7 148 R C2800 Fas 0/0
但仅仅通过sw-ac3能到根桥的端口和sw-ac3的cdp neighbor信息就判断sw-ac2就是vlan1的根桥,我觉得很不妥,因为同样在sw-ac3上,vlan22的spanning-tree信息和vlan1的很类似,但是vlan22的根桥是sw-ac1!
sw-ac3#show span vlan 22
VLAN0022
Spanning tree enabled protocol ieee
Root ID Priority 32790
Address 000C.8581.C59B
Cost 19
Port 6(FastEthernet0/6)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32790 (priority 32768 sys-id-ext 22)
Address 00E0.F768.81B1
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/5 Altn BLK 19 128.5 P2p
Fa0/6 Root FWD 19 128.6 P2p
Fa0/7 Desg FWD 19 128.7 P2p
所以我的想法是:
1、先用show spanning-tree vlan 1查看vlan1根桥的MAC地址 0010.1102.14C4
2、用 show cdp neighbor entry * 命令查出邻居的IP
3、在sw-ac3交换机上ping 所有邻居的IP,接着show arp,查看arp缓存表 这是我新增加的
sw-ac3#show arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.1.249 0 0010.1102.14C4 ARPA Vlan1
Internet 192.168.1.250 - 00E0.F768.81B1 ARPA Vlan1
Internet 192.168.1.254 0 0001.C9E5.BE01 ARPA Vlan1
可以发现0010.1102.14C4所对应的IP是192.168.1.249
4、返回第二步,可以查看到IP 192.168.1.249 的机器是 SW-AC2
Device ID: sw-ac2
Entry address(es):
IP address : 192.168.1.249
Platform: cisco 2960, Capabilities: Switch
Interface: FastEthernet0/6, Port ID (outgoing port): FastEthernet0/7
Holdtime: 135
Version :
Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version 12.2(25)FX, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2005 by Cisco Systems, Inc.
Compiled Wed 12-Oct-05 22:05 by pt_team
advertisement version: 2
Duplex: full
至此,哪个交换机是根桥就很清楚了。。。vlan22同理,我觉得这样更有说服力,大家有什么看法?
|
评分
-
查看全部评分
|