【网络】接口状态

在主机上或是通信设备上查看接口的可用状态。 如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#

你可能感兴趣的:(【网络】接口状态)