【网络】接口状态

在主机上或是通信设备上查看接口的可用状态。 如Linux主机上:

root@ubuntu:~# ifconfig
eth0      Link encap:Ethernet  HWaddr fa:16:3e:e4:22:fa 
          inet addr:192.168.56.185  Bcast:192.168.56.255  Mask:255.255.255.0
          inet6 addr: fe80::f816:3eff:fee4:22fa/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:55798187 errors:0 dropped:151349 overruns:0 frame:0
          TX packets:11139056 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:13187062256 (13.1 GB)  TX bytes:64443662032 (64.4 GB)

通信设备上,如交换机上:

Router#show ip int b
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            10.118.202.232  YES NVRAM  up                    up


Router#show interfaces FastEthernet 0/0
FastEthernet0/0 is up, line protocol is up
  Hardware is MV96340 Ethernet, address is b414.89cb.10a0 (bia b414.89cb.10a0)
  Internet address is 10.118.202.232/24
  MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Full-duplex, 100Mb/s, 100BaseTX/FX
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input 00:00:00, output 00:00:00, output hang never
  Last clearing of "show interface" counters never
  Input queue: 1/75/10209296/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 308000 bits/sec, 135 packets/sec
  5 minute output rate 503000 bits/sec, 116 packets/sec
     1700702357 packets input, 844523626 bytes
     Received 292705373 broadcasts, 0 runts, 0 giants, 94822 throttles
     79731784 input errors, 0 CRC, 0 frame, 0 overrun, 79731784 ignored
     0 watchdog
     0 input packets with dribble condition detected
     1931737604 packets output, 2288646686 bytes, 0 underruns
     0 output errors, 0 collisions, 0 interface resets
     13635531 unknown protocol drops
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier
     0 output buffer failures, 0 output buffers swapped out
Router#

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值