接入级交换机排错常用命令

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

交换机常用排错命令

公司目前使用的交换机型号主要有CISCO3524/3548,CISCO2924,2948G,其中2948G是CA T OS系统,其它都是IOS系统,以下列举一些常用的命令

一、S HOW命令

a)IOS系统

Show mac-address-table 查看MAC地址

0901_CYYQ_01#show mac-address-table ?

address mac address name 指定MAC地址查找端口

aging-time Show address aging time

count Show address count 统计地址总数

dynamic Show 802.1d dynamic addresses 指定显示动态地址

interface interface name 指定显示某接口下学到的地址notification MAC notification parameters and history table

secure Show secure addresses

self Show system self addresses

static Show static addresses

vlan vlan name 指定显示某VLAN下的地址

| Output modifiers 输出过滤

例子:

0901_CYYQ_01#show mac-address-table dynamic vlan 901

Non-static Address Table:

Destination Address Address Type VLAN Destination Port

------------------- ------------ ---- --------------------

0000.21ff.ffff Dynamic 901 FastEthernet0/22

0000.4ca3.2267 Dynamic 901 FastEthernet0/2

……………………………

0000.f076.21d0 Dynamic 901 FastEthernet0/21

0000.f076.628a Dynamic 901 FastEthernet0/43

0901_CYYQ_01#show mac-address-table | include 0005.5d

0005.5d00.1d5d Dynamic 901 FastEthernet0/13

0005.5d0f.db8b Dynamic 901 FastEthernet0/20

0005.5d5d.d2b8 Dynamic 901 FastEthernet0/11

0005.5d67.15e3 Dynamic 901 FastEthernet0/20

0901_CYYQ_01#show mac-address-table interface f0/1 如果下面有机器接上,但地址没有说

Non-static Address Table:

Destination Address Address Type VLAN Destination Port

------------------- ------------ ---- --------------------

0050.1821.af83 Dynamic 901 FastEthernet0/1

5254.ab4e.0099 Dynamic 901 FastEthernet0/1

Show interface 检查接口状态

0901_CYYQ_01#show interfaces f0/1

FastEthernet0/1 is up, line protocol is up

Hardware is Fast Ethernet, address is 0005.325f.f601 (bia 0005.325f.f601)

MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,

reliability 255/255, txload 1/255, rxload 1/255

Encapsulation ARPA, loopback not set

Keepalive not set

Full-duplex, 100Mb/s, 100BaseTX/FX

ARP type: ARPA, ARP Timeout 04:00:00

Last input 00:00:08, output 00:00:00, output hang never

Last clearing of "show interface" counters never

Queueing strategy: fifo

Output queue 0/40, 0 drops; input queue 0/75, 0 drops

5 minute input rate 19000 bits/sec, 35 packets/sec

5 minute output rate 476000 bits/sec, 68 packets/sec

305967593 packets input, 4049522368 bytes

Received 1204589 broadcasts, 0 runts, 0 giants, 0 throttles

0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 如果不为0,且持续增长,说明线路有问题

0 watchdog, 797179 multicast

0 input packets with dribble condition detected

201607417 packets output, 2686439280 bytes, 490 underruns

0 output errors, 0 collisions, 2 interface resets

0 babbles, 0 late collision, 0 deferred

0 lost carrier, 0 no carrier

490 output buffer failures, 0 output buffers swapped out

Show log 查看LOG记录

show processes cpu 查看CPU

交换机正常值一般在50%左右

Show env 查看设备运行环境状态

b)CAT OS 系统

SHOW PORT

相关文档
最新文档