Cisco交换机配置入门2--帮助与注意事项

简介:
机型:Cisco 3750
 
现在我们来继续讲解关于输入Cisco命令时注意的一些事项与帮助
 
1、关于帮助
  直接使用“?”,可以获得相应模式下的所支持的命令列表,如果再问号前面加上一些命令的开头的字母,就可以获得一些以此字母开头的命令,如:
AITG_FrontekCoreSW#s?
*s=show  send    session  set  setup
show     systat

输入"S?",就可以获得以S开头的所有字母。

2、命令帮助
如果对某个命令的用法不熟悉时,也可以使用“?”来获取其详细的帮助,如想对show的命令作一个具体的了解,可以使用:“show ?”
AITG_FrontekCoreSW#show ?
  aaa                Show AAA values
  access-lists       List access lists
  accounting         Accounting data for active sessions
  adjacency          Adjacent nodes
  aliases            Display alias commands
  archive            Archive functions
  arp                ARP table
  auto               Show Automation Template
  auto               Show Automation Template
  boot               show boot attributes
  buffers            Buffer pool statistics
  cable-diagnostics  Show Cable Diagnostics Results
  cca                CCA information
  cdp                CDP information
  cef                CEF address family independent status
  class-map          Show QoS Class Map
  clock              Display the system clock
  cluster            Cluster information
  cns                CNS agents
  configuration      Configuration details
  controllers        Interface 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
  dtp                DTP information
  eap                Shows EAP registration/session information
  env                Environmental facilities
  eou                EAPoUDP
  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
  flowcontrol        show flow control information
  history            Display the session command history
  hosts              IP domain-name, lookup style, nameservers, and host table
  html               HTML helper commands
  idb                List 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
  ipc                Interprocess communications commands
  ipv6               IPv6 information
  key                Key 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
  logging            Show the contents of logging buffers
  login              Display Secure Login Configurations and State
  mac                MAC configuration
  mac-address-table  MAC forwarding table
  memory             Memory statistics
  mls                mls global commands
  monitor            Monitoring different system events
  mvr                Show mvr global parameters
  ntp                Network 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
  rtr                Service Assurance Agent (SAA)
  running-config     Current operating configuration
  scp                SCP commands
  sdm                Switch 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
  standby            Hot 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
  tcp                Status 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
  version            System hardware and software status
  vlan               VTP VLAN status
  vmps               VMPS version information
  vtp                VTP information
  xdr                Show details about XDR

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

AITG_FrontekCoreSW#show interface ?
  Async              Async interface
  BVI                Bridge-Group Virtual Interface
  CTunnel            CTunnel interface
  Dialer             Dialer interface
  Filter             Filter interface
  Filtergroup        Filter Group interface
  GigabitEthernet    GigabitEthernet IEEE 802.3z
  Loopback           Loopback interface
  Null               Null interface
  Port-channel       Ethernet Channel of interfaces
  Portgroup          Portgroup interface
  Pos-channel        POS Channel of interfaces
  Tunnel             Tunnel interface
  Vif                PGM 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
  crb                Show interface routing/bridging info
  dampening          Show interface dampening info
  debounce           Show interface debounce time info
  description        Show interface description
  etherchannel       Show interface etherchannel information
  fair-queue         Show interface Weighted Fair Queueing (WFQ) info
  fcpa               Fiber Channel
  flowcontrol        Show interface flowcontrol information
  irb                Show interface routing/bridging info
  mac-accounting     Show interface MAC accounting info
  mpls-exp           Show interface MPLS experimental accounting info
  mtu                Show interface mtu
  precedence         Show interface precedence accounting info
  private-vlan       Show interface private vlan information
  pruning            Show 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
  summary            Show interface summary
  switchport         Show interface switchport information
  transceiver        Show 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)
.........

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








本文转自redking51CTO博客,原文链接:http://blog.51cto.com/redking/15609 ,如需转载请自行联系原作者



相关文章
|
13天前
|
网络协议 安全 网络虚拟化
思科交换机配置命令归纳
【11月更文挑战第8天】本文总结了思科交换机的常见配置命令,包括模式转换、基本配置、查看命令、VLAN 配置、Trunk 配置、以太网通道配置、VTP 配置、三层交换机配置、生成树配置以及其他常用命令,适用于网络管理和维护。
|
1月前
|
安全 网络安全 网络虚拟化
Cisco-交换机划分Vlan
Cisco-交换机划分Vlan
|
1月前
|
安全 网络安全 网络虚拟化
Cisco-三层交换机实现VLAN间路由
Cisco-三层交换机实现VLAN间路由
|
1月前
|
安全 网络安全 数据安全/隐私保护
Cisco-交换机配置聚合端口
Cisco-交换机配置聚合端口
|
3月前
|
数据中心
配置案例 | CE交换机如何配置堆叠?
配置案例 | CE交换机如何配置堆叠?
|
3月前
盒式交换机又是如何配置堆叠的呢?
盒式交换机又是如何配置堆叠的呢?
|
3月前
|
前端开发 数据中心
数据中心框式交换机如何配置堆叠?
数据中心框式交换机如何配置堆叠?
|
3月前
|
Shell 网络安全 Python
网络工程师如何在ensp模拟器上玩python自动化配置交换机。
网络工程师如何在ensp模拟器上玩python自动化配置交换机。
210 0
|
6月前
|
网络性能优化 网络虚拟化 网络架构
配置接口限速示例(盒式交换机)
接口限速简介 接口限速对通过整个端口的全部报文流量速率进行限制,不对具体流量进行区分,可以实现给某个接口分配固定的带宽,控制方式单一,配置简单。 入方向与出方向的接口限速属于并列关系,用户可以根据需要同时配置,也可以单独配置。
100 2
|
4月前
|
网络安全 数据安全/隐私保护 网络虚拟化
下一篇
无影云桌面