免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 7175 | 回复: 20
打印 上一主题 下一主题

Show interfaces 的详解 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-02-28 18:01 |只看该作者 |倒序浏览
这是一个 typical 的输出 for a Show interfaces command 大家都很熟悉

下面是对它的详细的说明 有一些东西 我想还是很有用的。大家不一定全知道,实际中用的
你可以知道show 有多么重要

Router>;show int e0
1 Ethernet0 is administratively down, line protocol is down
2  Hardware is Lance, address is 000C.9952.8180 (bia 000C.9952.8180)
3  Internet address 10.1.1.101/24
4  MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, rely 255/255, load 1/255
5  Encapsulation ARPA, loopback not set, keepalive set (10 sec)
6  ARP type: ARPA, ARP Timeout 04:00:00
7  Last input 00:00:00, output 00:00:00, output hang never
8  Last clearing of show interface counters never
9  Queueing strategy: fifo
10  Output queue 0/40, 0 drops; input queue 0/75, 0 drops
11  5 minute input rate 1000 bits/sec, 2 packets/sec
12  5 minute output rate 1000 bits/sec, 2 packets/sec
13     237272 packets input, 26758701 bytes, 0 no buffer
14     Received 221125 broadcasts, 0 runts, 0 giants, 0 throttles
15     1 input errors, 0 CRC, 0 frame, 0 overrun, 1 ignored, 0 abort
16     0 input packets with dribble condition detected
17     254166 packets output, 33263412 bytes, 0 underruns
18     2 output errors, 0 collisions, 5 interface resets
19     0 babbles, 0 late collision, 5 deferred
20     2 lost carrier, 0 no carrier
21     0 output buffer failures, 0 output buffers swapped out


Let's look at some of its more important fields.

1 The first line 表示 E0 的状态可能 有三种
?up (active)
?down (inactive) If the interface misses  连续的3个 keepalives , the system 认为 it to
  be unusable and marks it as "down".
?administratively down (inactive because ad shut it down use the
  Shutdown command)
2 The second line MAC address。
3 logical protocol address
4 MTU 是interface的 最大的 transmission unit size。 BW 是 带宽 单位是 kilobits per
second.这个parameter 只用来算 routing metrics for specific routing protocols
  DLY 是 interface 的 delay 是以 微秒为单位的
  rely 是 可靠性 255/255 就是相当于 100% load 是 负载 也是 255/255 是 100%
  rely 和 load 都是 5 minute 的 平均值.
5 封装类型 和 loopback ,keepalive 为 10 sec
7 Last input 给了时间 since a packet has been 成功的 received on the interface.
  last output  gives the time elapsed since a packet has been successfully
  transmitted on the interface.
  output hang  shows the time elapse 自从上次自动的 reset. 这里是 never
8  Last clearing 表示 the time at which the counters used to
measure the cumulative statistics shown in the display were last reset to zero.
如果它 displayed, "***" 就是时间太长无法显示.
9 first in first out
10 表示  number of packets in the output或是input的 queues for the interface.
   斜线后是 the maximum size of the queue. drop掉的数字就是因为queue full 引起的.
11 和 12行 表示最后 5 分钟 内的 bit 数和 packet数是平均值 不是精确值 是大概的
13 行是 所有经过这个端口 而没有错误的packet 是input的. 最后的 0 no buffer 是指收到的正确的packet
   没有因为 buffer 不够而丢掉.  
14 行是 收到的 多播或是广播包. runts 一般是指引起collisions 的 packet 一般越是小的packet就越引起
   collisions ruts 就是指的这种包. 如果这个数 大于 百万分之一(byte的单位可以自己算) 就不正常.
   gaints 是指大于 1518 byte的packet 一般大于1518 的就直接 discard 了
15 行的1 input error info 表示了 这个接口上 所有的 input error这个东西包括了13行的 no buffer
   14行的 runts 和 gaints 15 行的CRC frame和 overrun ,ignore . CRC 指的是 packet. frame指的是
   frame 的 CRC 错. 如果 CRC 的数过大 一般是由 冲突过多或是 以太网的设备 故障比如interface.
   overrun 指 的是 receiver hardware was unable to pass received data 一般多是对于 硬件的buffer
   overrun就是表明 input的rate 大于 interface的 接受的 rate了
   ignored 是指 被buffer 忽略的packet 多是 由 noise 或是 广播风暴 引起的.
16 行 a dribble 指示了 长frame 里的 bit error .这个frame 被标记错误可是 接受了没有 丢掉.
17 行成功的传送的 packet 和 byte 数 是平均数 underruns 是指 传输过快 而不受 router 控制的次数
18 行 output error 指发生错误被借口丢掉没有传的packet .
      collisions是指因为 冲突 需要重传的frame. 这个数过大是因为 LAN is over extended.
      intreface reset 是 interface 被完全 自动的 reset 的次数 . 这个一般是 因为 moden 或是 电缆
      引起的 不过 如果 interface 是 shutdown 或是 loopback了
      
对于 show int serial 0

如果 serial 0 is up ,line protocol is up 表示 physical 正常 同时也表示 载波信号已经收到.
其实 line protocol 是 datalink 层的 , 同时 它 up 也是指 keepalives 收到. 如果两端的 封装定义的不
一致或是没有 clock rate 都是 line protocol down . 当然如果是 back to back 的连接serial 0 is down
也可能是 对端端口被 ad 手工的 down了 不一定就是 自己的硬件问题.

我不是  na, np 不知道 np 的troubleshooting 里是不是也讲这些.
实际工作中的一点儿经验 不知是不是有用!!!!!

论坛徽章:
0
2 [报告]
发表于 2003-03-01 00:39 |只看该作者

Show interfaces 的详解

写的不错

论坛徽章:
0
3 [报告]
发表于 2003-03-01 00:52 |只看该作者

Show interfaces 的详解

好东西,顶

论坛徽章:
0
4 [报告]
发表于 2003-03-01 10:47 |只看该作者

Show interfaces 的详解

:wink: 我想知道各位在哪里 高就? 有没有 电信或是网通的 偶是新网通的 北方的

论坛徽章:
0
5 [报告]
发表于 2003-03-01 20:25 |只看该作者

Show interfaces 的详解

3q

论坛徽章:
0
6 [报告]
发表于 2003-03-17 11:53 |只看该作者

Show interfaces 的详解

water1950你是哪的?

论坛徽章:
0
7 [报告]
发表于 2003-03-17 21:07 |只看该作者

Show interfaces 的详解

偶是河北的 过几天要到 北京去了

论坛徽章:
0
8 [报告]
发表于 2003-03-17 23:22 |只看该作者

Show interfaces 的详解

thanks

论坛徽章:
0
9 [报告]
发表于 2003-03-18 08:31 |只看该作者

Show interfaces 的详解

楼主,我是新网通的,唐山的,你呢?同事呀。。。

论坛徽章:
0
10 [报告]
发表于 2003-03-18 22:06 |只看该作者

Show interfaces 的详解

我在学CCNA 你的东西很有用 谢了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP