Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1419814
  • 博文数量: 269
  • 博客积分: 3602
  • 博客等级: 中校
  • 技术积分: 4536
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-17 21:13
文章分类

全部博文(269)

文章存档

2014年(8)

2013年(139)

2012年(122)

分类: 系统运维

2013-02-26 13:36:38

主要命令见下表:


Show Commands for Interfaces Command

目的

show interfaces [interface-id]

显示所有端口或某一端口的和配置.

show interfaces interface-id status [err-disabled]

显示一系列端口的状态或错误-关闭的状态

show interfaces [interface-id] switchport

显示二层端口的状态,可以用来决定此口是否为二层或三层口。

show interfaces [interface-id] description

显示端口描述

show running-config interface [interface-id]

显示当前配置中的端口配置情况

show version

显示软硬件等情况

举例如下:

Switch# show interfaces status


Port Name Status Vlan Duplex Speed Type

Gi0/1 connected routed a-full a-100 10/100/1000Base

TX

Gi0/2 wce server 20.20.2 disabled routed auto auto 10/100/1000Base TX

Gi0/3 ip wccp web-cache notconnect routed auto auto 10/100/1000Base TX

Gi0/4 notconnect routed auto auto 10/100/1000Base TX

Gi0/5 notconnect routed auto auto 10/100/1000Base TX

Gi0/6 disabled routed auto auto 10/100/1000Base TX

Gi0/7 disabled routed auto auto 10/100/1000Base TX

Gi0/8 disabled routed auto 100 10/100/1000Base TX

Gi0/9 notconnect routed auto auto 10/100/1000Base TX

Gi0/10 notconnect routed auto auto 10/100/1000Base TX

Gi0/11 disabled routed auto auto unknown

Gi0/12 notconnect routed auto auto unknown



Switch# show interfaces fastethernet 0/1 switchport


Name: Fa0/1

Switchport: Enabled

Administrative Mode: static access

Operational Mode: down

Administrative Trunking Encapsulation: dot1q

Negotiation of Trunking: Off

Access Mode VLAN: 1 (default)

Trunking Native Mode VLAN: 1 (default)

Trunking VLANs Enabled: ALL

Pruning VLANs Enabled: 2-1001

Protected: false

Unknown unicast blocked: disabled

Unknown multicast blocked: disabled

Voice VLAN: dot1p (Inactive)

Appliance trust: 5



Switch# show running-config interface fastethernet0/2


Building configuration...

Current configuration : 131 bytes

!

interface FastEthernet0/2

switchport mode access

switchport protected

no ip address

mls qos cos 7

mls qos cos override

end

阅读(2322) | 评论(0) | 转发(0) |
0

上一篇:BGP报文格式

下一篇:Vlan划分--Trunk链路--VTP

给主人留下些什么吧!~~