返回列表 发帖

CISCO交换机命令全集加说明

Table of Contents
  
  Command Descriptions
  
  address-violation
  autobaud
  back-pressure
  banner motd
  bridge (forwarding-time)
  bridge-group
  bridge-group (allow-overlap)
baidu
  bridge-group (enable)
  bridge (hello-time)
  bridge (max-age)
  bridge (priority)
  cdp (advertise-v2)
  cdp (enable)
  cdp (holdtime)
  cdp (timer)
  cgmp
  cgmp (hold-time)
  cgmp (leave-processing)
  cgmp (remove)
  cgmp (reserved)
  clear (cgmp)
  clear (dns-cache)
  clear (counters)
  clear (mac-address-table)
  clear (uplink-fast statistics)
  clear (vtp statistics)
  cluster
  configure
  copy (nvram tftp)
  copy (tftp)
  copy (xmodem)
  databits
  delete (nvram)
  delete (vtp)
  description
  disable
  duplex
  ecc
  enable
  enable (password)
  enable (secret)
  enable (use-tacacs)
  end
  exit
  fddi (authorization)
  fddi (auth-string)
  fddi (notify-timer)
  fddi (novell-snap-translation)
  fddi (unmatched-snap-translation)
  hostname
  interface
  ip (address)
  ip (default-gateway)
  ip (domain-name)
  ip (http port)
  ip (http server)
  ip (mgmt-vlan)
  ip (name-server)
  line console
  login (tacacs)
  mac-address-table (aging-time)
  mac-address-table (permanent)
  mac-address-table (restricted static)
  menu
  modem (dialin)
  modem (init-string)
  monitor-port
  monitor-port (monitored)
  monitor-port (port)
  multicast-store-and-forward
  network-port
  pagp-port-priority
  parity
  password-thresh
  ping
  port (block)
  port-channel (mode)
  port-channel (preserve-order)
  port-channel (template-port)
  port secure
  port secure (clear)
  reload
  reload (in)
  rip
  service (config)
  session
  show (bridge-group)
  show cdp (interface)
  show cdp (neighbors)
  show (cgmp)
  show cluster
  show (history)
  show (interfaces)
  
  Command Descriptions
  This chapter is a command-by-command description of the firmware version 9.00 CLI commands for the Catalyst 1900 series and Catalyst 2820 series switches.
  address-violation
  Use the address-violation global configuration command to specify the action for a port address violation. Use the no address-violation command to set the switch to its default value (suspend).
  address-violation {suspend | disable | ignore}
  no address-violation
  Syntax Description
  suspend Suspend port on address violation. A suspended port is temporarily disabled until a certain number of frames with the proper address is received.
  disable Disable port on address violation.
  ignore Ignore address violation.
  
  Default
  The port is suspended on address violation.
  Command Mode
  Global configuration
  Usage Guidelines
  An address violation occurs when a secured port receives a source address that has been assigned to another secured port or when a port tries to learn an address that exceeds the address-table size limit.
  Example
  This command causes the switch to disable the port on address violation.
  hostname(config)# address-violation disable
  Related Commands
  port secure
  show (port system)
  autobaud
  Use the autobaud line-configuration command to enable remote baud-rate matching. Use the no autobaud command to disable remote baud-rate matching.
  autobaud
  no autobaud
  Syntax Description
  This command has no arguments or keywords.
  Default
  Remote baud-rate matching is enabled.
  Command Mode
  Line configuration
  Example
  This example shows how to enable remote baud-rate matching.
  hostname(config-line)# autobaud
  Related Commands
  databits
  line console
  modem (dialin)
  parity
  show (line)
  show (terminal)
  speed
  stopbits
  terminal
  back-pressure
  Use the back-pressure global configuration command to enable back pressure. Use the no back-pressure command to disable back pressure.
  back-pressure
  no back-pressure
  Syntax Description
  This command has no arguments or keywords.
  Default
  Back pressure is disabled.
  Command Mode
  Global configuration
  Usage Guidelines
  When the back-pressure command is enabled, the switch forces a collision when there is no buffer to receive frames. This collision causes the transmitter to retransmit dropped frames immediately, increasing performance. The command is valid only for a 10BaseT port operating in half-duplex mode.
  Example
  This example shows how to enable back pressure.
  hostname(config)# back-pressure
  Related Commands
  configure
  duplex
  show (interfaces)
  show (port system)
  banner motd
  Use the banner motd global configuration command to set the message-of-the-day (MOTD) banner. Use the no banner motd command to remove the banner.
  banner [motd] d message d
  no banner [motd]
  Syntax
  motd Optional command acronym for "message of the day."
  d Delimiting character---a pound sign (#), for example. Do not use the delimiting character in the banner message.
  message Message text up to 400 characters or 20 lines.
  
  Default
  No MOTD is set.
  Command Mode
  Global configuration
  Usage Guidelines
  When configuring a multiline banner, the multiline help prompt displays after you enter the first line of the banner:
  Enter TEXT message. End with the character c
  
  where c is the delimiting character you choose.
  When a MOTD banner is set, it displays at the login screen to the serial port console and all telnet connections (except the rcommand connections from a command switch). The maximum size of the banner is 400 characters or 20 lines, whichever is reached first.
  Examples
  This example sets the MOTD banner to Empowering the Internet Generation.
  hostname(config)# banner motd # Empowering the Internet Generation #
  
  This example shows how to set the MOTD banner message with line feeds.
  hostname(config)# banner #
  
  Enter TEXT message. End with the character #.
  Line 1 is now up.
  Line 2 is still down.
  #
  
  This example shows how to remove the MOTD banner.
  hostname(config)# no banner motd
  Related Commands
  None
  bridge (forwarding-time)
  Use the bridge forwarding-time global configuration command to set the Spanning-Tree Protocol (STP) forward-delay time for a particular bridge group. Use the no bridge forwarding-time command to reset the forward-delay time to its default value.
  bridge bridge-group forwarding-time time
  no bridge bridge-group forwarding-time
  Syntax Description
  bridge-group Number from 1 to 4.
  time Number from 4 to 30 seconds.
  
  Default
  The default is 15 seconds.
  Command Mode
  Global configuration
  Usage Guidelines
  This command is available only when bridge groups are enabled.
  Example
  The following example shows how to set the forward-delay time to 10 seconds for bridge-group 1.
  hostname(config)# bridge 1 forwarding-time 10
  Related Commands
  bridge (hello-time)
  bridge (max-age)
  bridge (priority)
  bridge-group (allow-overlap)
  bridge-group (enable)
  show (bridge-group)
  show (spantree)
  spantree
  bridge-group
  Use the bridge-group interface configuration command to modify the assignments of ports to bridge groups. Use the no bridge-group command to remove ports from a bridge group.
  bridge-group bridge-group
  no bridge-group bridge-group
  Syntax Description
  bridge-group Number from 1 to 4.
  
  Default
  All ports are assigned to bridge group 1.
  Command Mode
  Interface configuration
  Usage Guidelines
  This command is available only when bridge groups are enabled.
  If bridge groups can overlap, the bridge-group command adds a port to the bridge group specified by the bridge-group argument. If bridge groups cannot overlap, the port is moved from its current bridge group to the specified bridge group.
  Example
  The following example shows how to assign the Ethernet port 0/1 to bridge group 2:
  hostname(config)# interface eth 0/1
  hostname(config-if)# bridge-group 2
  Related Commands
  bridge (forwarding-time)
  bridge (hello-time)
  bridge (max-age)
  bridge (priority)
  bridge-group (allow-overlap)
  bridge-group (enable)
  show (bridge-group)
  show (spantree)
  spantree
  bridge-group (allow-overlap)
  Use the bridge-group allow-overlap global configuration command to allow ports to belong to multiple bridge groups. Use the no bridge-group allow-overlap command to prevent ports from belonging to multiple bridge groups.
  bridge-group allow-overlap
  no bridge-group allow-overlap
  Syntax Description
  This command has no additional arguments or keywords.
  Default
  Ports are prevented from belonging to multiple bridge groups.
  Command Mode
  Global configuration
  Usage Guidelines
  This command is available only when bridge groups are enabled.
  You cannot disable overlapping bridge groups when ports belong to multiple bridge groups.
  Example
  The following example shows how to permit ports to become members of multiple bridge groups.
  hostname(config)# bridge-group allow-overlap
  Related Commands
  bridge (forwarding-time)
  bridge (hello-time)
  bridge (max-age)
  bridge (priority)
  bridge-group
  bridge-group (enable)
  show (bridge-group)
  show (spantree)
  spantree
  bridge-group (enable)
  Use the bridge-group enable global configuration command to enable port grouping using bridge groups. Use the no bridge-group enable command to use virtual LANs (VLANs) as the port grouping method.
  bridge-group enable
  no bridge-group enable
  Syntax Description
  This command has no additional arguments or keywords.
  Default
  Bridge groups are disabled.
  Command Mode
  Global configuration
  Usage Guidelines
  When you use the bridge-group enable command or the no bridge-group enable command, the switch resets.
  When bridge groups are disabled, the command bridge-group enable is the only available bridge-group command. The following switch-feature commands are not available when bridge groups are enabled:
  clear (vtp statistics) show (vlan-membership) trunk-vlan
  ip (mgmt-vlan) show (vlan-membership server) uplink-fast
  pagp-port-priority show (vtp) uplink-fast (multicast-rate)
  port-channel (mode) show (vtp statistics) vlan
  port-channel (preserve-order) spantree-option (vlan) vlan-membership
  port-channel (template-port) spantree-template (forwarding-time) vlan-membership (reconfirm)
  show (spantree-option) spantree-template (hello-time) vlan-membership (server)
  show (spantree-template) spantree-template (max-age) vlan-membership (server retry)
  show (trunk) spantree-template (priority) vtp
  show (uplink-fast) spantree-template (vlan) vtp trunk pruning-disable
  show (vlan) trunk
  
  Example
  The following example shows how to enable bridge groups:
  hostname(config)# bridge-group enable
  Related Commands
  bridge (forwarding-time)
  bridge (hello-time)
  bridge (max-age)
  bridge (priority)
  bridge-group
  bridge-group (allow-overlap)
  show (bridge-group)
  show (spantree)
  spantree
  bridge (hello-time)
  Use the bridge hello-time global configuration command to configure the Spanning-Tree Protocol (STP) hello time for a bridge group. Use the no bridge hello-time command to use the default value.
  bridge bridge-group hello-time time
  no bridge bridge-group hello-time
  Syntax Description
  bridge-group Number from 1 to 4.
  time Number from 1 to 10 seconds.
  
  Default
  The time argument default is 2 seconds.
  Command Mode
  Global configuration
  Usage Guidelines
  This command is available only when bridge groups are enabled.
  Example
  The following example shows how to configure a 3-second STP hello time for bridge group 2.
  hostname(config)# bridge 2 hello-time 3
  Related Commands
  bridge (forwarding-time)
  bridge (max-age)
  bridge (priority)
  bridge-group
  bridge-group (allow-overlap)
  bridge-group (enable)
  show (bridge-group)
  show (spantree)
  spantree
  bridge (max-age)
  Use the bridge max-age global configuration command to configure the maximum age time in Spanning-Tree Protocol (STP) for a bridge group. Use the no bridge max-age command to set the argument to its default value.
  bridge bridge-group max-age time
  no bridge bridge-group max-age
  Syntax Description
  bridge-group Number from 1 to 4.
  time Number from 6 to 40 seconds.
  
  Default
  The time argument default is 20 seconds.
  Command Mode
  Global configuration
  Usage Guidelines
  This command is available only when bridge groups are enabled.
  Example
  The following example shows how to set the maximum age time for STP to 22 seconds for bridge group 1.
  hostname(config)# bridge 1 max-age 22
  Related Commands
  bridge (forwarding-time)
  bridge (hello-time)
  bridge (priority)
  bridge-group
  bridge-group (allow-overlap)
  bridge-group (enable)
  show (bridge-group)
  show (spantree)
  spantree
  bridge (priority)
  Use the bridge priority global configuration command to configure the Spanning-Tree Protocol (STP) bridge priority for a bridge group. Use the no bridge priority command to reset the bridge priority to its default value.
  bridge bridge-group priority priority
  no bridge bridge-group priority priority
  Syntax Description
  bridge-group Number from 1 to 4.
  priority Number from 1 to 65535.
  
  Default
  The priority default is 32768.
  Command Mode
  Global configuration
  Usage Guidelines
  This command is available only when bridge groups are enabled.
  Example
  The following example shows how to configure STP bridge priority to 33000 for bridge group 1.
  hostname(config)# bridge 1 priority 33000
  Related Commands
  bridge (forwarding-time)
  bridge (hello-time)
  bridge (max-age)
  bridge-group
  bridge-group (allow-overlap)
  bridge-group (enable)
  show (spantree)
  spantree
  cdp (advertise-v2)
  Use the cdp advertise-v2 global configuration command to enable Cisco Discovery Protocol version 2 (CDPv2) on all switch interfaces. Use the no cdp advertise-v2 command to disable CDPv2 on the switch.
  cdp advertise-v2
  no cdp advertise-v2
  Syntax Description
  This command has no additional arguments or keywords.
  Default
  CDPv2 is enabled.
  Command Mode
  Global configuration
  Example
  The following example shows how to enable CDPv2 on all switch interfaces.
  hostname(config)# cdp advertise-v2
  Related Commands
  cdp (enable)
  cdp (holdtime)
  cdp (timer)
  show cdp (interface)
  show cdp (neighbors)
  cdp (enable)
  Use the cdp enable interface configuration command to enable Cisco Discovery Protocol (CDP) on a port interface. Use the no cdp enable command to disable CDP on an interface.
  cdp enable
  no cdp enable
  Syntax Description
  This command has no additional arguments or keywords.
  Default
  CDP is enabled on all interfaces.
  Command Mode
  Interface configuration
  Usage Guidelines
  The cdp enable command is not available on repeater ports.
  Example
  The following example shows how to disable CDP on Fast Ethernet port interface 0/27.
  hostname(config)# interface fastethernet 0/27
  hostname(config-if)# no cdp enable
  Related Commands
  cdp (advertise-v2)
  cdp (holdtime)
  cdp (timer)
  show cdp (interface)
  show cdp (neighbors)
  cdp (holdtime)
  Use the cdp holdtime global configuration command to set the Cisco Discovery Protocol (CDP) hold time. Use the no cdp holdtime command to use the default value.
  cdp holdtime holdtime
  no cdp holdtime
  Syntax Description
  holdtime Number of seconds receiver keeps packet (5 to 255).
  

[ 本帖最后由 homesu 于 2007-9-25 22:18 编辑 ]
附件: 您需要登录才可以下载或查看附件。没有帐号?注册



[ 本帖最后由 homesu 于 2007-9-25 22:18 编辑 ]

TOP

和我们学的不一样

TOP

这是个好东西

好好好好好好

TOP

宠辱不惊,静观堂前花开花落;去留无意,漫看天边云卷云舒。

TOP

真的很不错,正在学习,收藏了!

TOP

看不懂

有翻译的就好了

TOP

...

TOP

thank

TOP

谢谢  顶一下

TOP

真的很不错,正在学习,收藏了

真的很不错,正在学习,收藏了

TOP

真的很不错,正在学习,收藏了

真的很不错,正在学习,收藏了

TOP

看着晕

TOP

好东东,下来看看,有中文的么?

TOP

wo yao xia zai

TOP

返回列表