API Guide
Identifier GUID-4035B363-5E50-4542-9452-EF971126DCF4
Version 9
Status Translation approved
查看接口配置
要查看基本接口信息,请使用 show interface、show running-configuration 和 show interface status 命令。通过
输入 CTRL+C 停止从 show 命令滚动输出。以 EXEC 模式显示有关物理或虚拟接口的信息,包括运行/停止状态、MAC 和 IP 地址以
及输入/输出流量计数器。
show interface [type]
• phy-eth node/slot/port[:subport] — 显示有关连接到接口的物理介质的信息。
• status — 显示接口状态。
• ethernet node/slot/port[:subport] — 显示以太网接口信息。
• loopback id — 显示环回接口信息,从 0 到 16383。
• mgmt node/slot/port — 显示管理接口信息。
• port-channel id-number — 显示端口通道接口信息,从 1 到 128。
• vlan vlan-id — 显示 VLAN 接口信息,从 1 到 4093。
查看接口信息
OS10# show interface
Ethernet 1/1/1 is up, line protocol is down
Hardware is Eth, address is 00:0c:29:66:6b:90
Current address is 00:0c:29:66:6b:90
Pluggable media present, QSFP+ type is QSFP+ 40GBASE CR4
Wavelength is 64
Receive power reading is 0.000000 dBm
Interface index is 15
Internet address is not set
Mode of IPv4 Address Assignment: not set
Interface IPv6 oper status: Enabled
MTU 1532 bytes, IP MTU 1500 bytes
LineSpeed 0, Auto-Negotiation on
Configured FEC is off, Negotiated FEC is off
Flowcontrol rx off tx off
ARP type: ARPA, ARP Timeout: 60
Last clearing of "show interface" counters: 02:46:35
Queuing strategy: fifo
Input statistics:
0 packets, 0 octets
0 64-byte pkts, 0 over 64-byte pkts, 0 over 127-byte pkts
0 over 255-byte pkts, 0 over 511-byte pkts, 0 over 1023-byte pkts
0 Multicasts, 0 Broadcasts, 0 Unicasts
0 runts, 0 giants, 0 throttles
0 CRC, 0 overrun, 0 discarded
Output statistics:
0 packets, 0 octets
0 64-byte pkts, 0 over 64-byte pkts, 0 over 127-byte pkts
0 over 255-byte pkts, 0 over 511-byte pkts, 0 over 1023-byte pkts
0 Multicasts, 0 Broadcasts, 0 Unicasts
0 throttles, 0 discarded, 0 Collisions, 0 wred drops
Rate Info(interval 30 seconds):
Input 0 Mbits/sec, 0 packets/sec, 0% of line rate
Output 0 Mbits/sec, 0 packets/sec, 0% of line rate
Time since last interface status change: 02:46:36
Ethernet 1/1/2 is up, line protocol is up
Hardware is Eth, address is 00:0c:29:66:6b:94
Current address is 00:0c:29:66:6b:94
Pluggable media present, QSFP+ type is QSFP+ 40GBASE CR4
Wavelength is 64
Receive power reading is 0.000000 dBm
Interface index is 17
Internet address is not set
Mode of IPv4 Address Assignment: not set
Interface IPv6 oper status: Enabled
256
接口