科技行者

行者学院 转型私董会 科技行者专题报道 网红大战科技行者

知识库

知识库 安全导航



ZDNet>网络频道>ZD评测>Cisco交换机配置入门2--帮助与注意事项

  • 扫一扫
    分享文章到微信

  • 扫一扫
    关注官方公众号
    至顶头条

现在我们来继续讲解关于输入Cisco 命令时注意的一些事项与帮助。

来源:中国IT实验室 2008年05月19日

关键字:Cisco交换机 交换机配置 网络交换机 交换机

Cisco 交换机配置入门

机型:Cisco 3750

现在我们来继续讲解关于输入Cisco 命令时注意的一些事项与帮助

1.关于帮助

直接使用“?”,可以获得相应模式下的所支持的命令列表,如果再问号前面加上一些命令的开头的字母,就可以获得一些以此字母开头的命令,如:

AITG_FrontekCoreSW#s?
*s=show  sendsession  set  setup
show systat
输入"S?",就可以获得以S开头的所有字母。

2、命令帮助

如果对某个命令的用法不熟悉时,也可以使用“?”来获取其详细的帮助,如想对show的命令作一个具体的了解,可以使用:“show ?”

AITG_FrontekCoreSW#show ?
aaaShow AAA values
access-lists   List access lists
accounting Accounting data for active sessions
adjacency  Adjacent nodes
aliasesDisplay alias commands
archiveArchive functions
arpARP table
auto   Show Automation Template
auto   Show Automation Template
boot   show boot attributes
buffersBuffer pool statistics
cable-diagnostics  Show Cable Diagnostics Results
ccaCCA information
cdpCDP information
cefCEF address family independent status
class-map  Show QoS Class Map
clock  Display the system clock
clusterCluster information
cnsCNS agents
configuration  Configuration details
controllersInterface controller status
dampening  Display dampening information
debugging  State of each debugging option
derived-config Derived operating configuration
dhcp   Dynamic Host Configuration Protocol status
diagnostic Show command for diagnostic
dot1q-tunnel   Display dot1q tunnel ports
dot1x  Dot1x information
dtpDTP information
eapShows EAP registration/session information
envEnvironmental facilities
eouEAPoUDP
errdisable Error disable
etherchannel   EtherChannel information
exception  exception informations
file   Show filesystem information
flash1:display information about flash1: file system
flash: display information about flash: file system
flowcontrolshow flow control information
historyDisplay the session command history
hosts  IP domain-name, lookup style, nameservers, and host table
html   HTML helper commands
idbList of Hardware Interface Descriptor Blocks
identity   Identity profiles and policies
idprom show IDPROMs for interfaces
interfaces Interface status and configuration
inventory  Show the physical inventory
ip IP information
ipcInterprocess communications commands
ipv6   IPv6 information
keyKey information
kron   Kron Subsystem
l2protocol-tunnel  Display L2PT status and configurations
lacp   Port channel information
line   TTY line information
link   Show Link
location   Display the system location
loggingShow the contents of logging buffers
login  Display Secure Login Configurations and State
macMAC configuration
mac-address-table  MAC forwarding table
memory Memory statistics
mlsmls global commands
monitorMonitoring different system events
mvrShow mvr global parameters
ntpNetwork time protocol
pagp   Port channel information
parser Show parser commands
platform   platform specific show commands
pm Show Port Manager commands
policy-manager Policy Manager
policy-map Show QoS Policy Map
port-security  Show secure port information
post   Show the results of the system POST
power  Switch Power
privilege  Show current privilege level
processes  Active process statistics
protocols  Active network routing protocols
queue  Show queue contents
queueing   Show queueing configuration
radius Shows radius information
region Region Manager Status
registry   Function registry information
reload Scheduled reload information
resource   Resource group statistics
rhosts Remote-host+user equivalences
rmon   rmon statistics
route-map  route-map information
rtrService Assurance Agent (SAA)
running-config Current operating configuration
scpSCP commands
sdmSwitch database management
service-module Service Module commands
sessions   Information about Telnet connections
setup  Show express setup settings
snmp   snmp statistics
spanning-tree  Spanning tree topology
stacks Process stack utilization
standbyHot Standby Router Protocol (HSRP) information
startup-config Contents of startup configuration
storm-control  Show storm control configuration
subsys Show subsystem information
switch show information about the stack ring
system Show the system configuration
table-map  Show Table Map
tacacs Shows tacacs+ server statistics
tcpStatus of TCP connections
tech-support   Show system information for Tech-Support
template   Template information
terminal   Display terminal configuration parameters
time-range Time range
track  Tracking information
udld   UDLD information
users  Display information about terminal lines
versionSystem hardware and software status
vlan   VTP VLAN status
vmps   VMPS version information
vtpVTP information
xdrShow details about XDR

3、显示完整的命令
 
再一个部分命令的后面直接加上“?”就可以显示其输出结果,如例子:

AITG_FrontekCoreSW#show interface ?
Async  Async interface
BVIBridge-Group Virtual Interface
CTunnelCTunnel interface
Dialer Dialer interface
Filter Filter interface
FiltergroupFilter Group interface
GigabitEthernetGigabitEthernet IEEE 802.3z
Loopback   Loopback interface
Null   Null interface
Port-channel   Ethernet Channel of interfaces
Portgroup  Portgroup interface
Pos-channelPOS Channel of interfaces
Tunnel Tunnel interface
VifPGM Multicast Host interface
Virtual-Template   Virtual Template interface
Virtual-TokenRing  Virtual TokenRing
Vlan   Catalyst Vlans
accounting Show interface accounting
capabilities   Show interface capabilities information
counters   Show interface counters
crbShow interface routing/bridging info
dampening  Show interface dampening info
debounce   Show interface debounce time info
descriptionShow interface description
etherchannel   Show interface etherchannel information
fair-queue Show interface Weighted Fair Queueing (WFQ) info
fcpa   Fiber Channel
flowcontrolShow interface flowcontrol information
irbShow interface routing/bridging info
mac-accounting Show interface MAC accounting info
mpls-exp   Show interface MPLS experimental accounting info
mtuShow interface mtu
precedence Show interface precedence accounting info
private-vlan   Show interface private vlan information
pruningShow interface trunk VTP pruning information
random-detect  Show interface Weighted Random Early Detection (WRED) info
rate-limit Show interface rate-limit info
stats  Show interface packets & octets, in & out, by switching
 path
status Show interface line status
summaryShow interface summary
switchport Show interface switchport information
transceiverShow interface transceiver
trunk  Show interface trunk information
vlan   Show interface vlan information
|  Output modifiers
<cr>

以上是帮助选项,我们再来看看其他的快捷方式:

1、使用TAB键

当输入命令的一部分字母时,按下TAB键,系统就可以自动输入此命令的剩余字母,如:

AITG_FrontekCoreSW#sh---TAB键
AITG_FrontekCoreSW#show
AITG_FrontekCoreSW#show int---TAB键
AITG_FrontekCoreSW#show interfaces

2、命令缩写

有些命令没有必要将所有的字母输入完全,输入一部分就可以了,如:

AITG_FrontekCoreSW#sh int =show interface
Vlan1 is up, line protocol is up
Hardware is EtherSVI, address is 0019.aa89.dd40 (bia 0019.aa89.dd40)
.........

建议大家最好将命令记全。

推广二维码
邮件订阅

如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。

重磅专题