- 积分
- 611
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 注册时间
- 2011-3-23
- 最后登录
- 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)
|
发表于 2011-7-4 08:50:27
|
显示全部楼层
用show spanning-tree看到口接的是根(比如:Port 1(FastEthernet0/1)。然后用show cdp neigh查到对就的接口的名字。就可以看到了
详细如下:
Switch#show spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 4097
Address 000B.BE86.4D27
Cost 19
Port 1(FastEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
sw2(config)#do show cdp neig
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
Switch Fas 0/1 119 S 2950 Fas 0/1
Switch Fas 0/2 125 S 2950 Fas 0/2
Sw1 Fas 0/1 179 S 2950 Fas 0/1
|
评分
-
查看全部评分
板凳
2011-7-4 08:50:27
回复(0)
收起回复
|