CISCO交换机命令全集加说明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.

推荐阅读