CISCO交换机命令全集加说明4

时间:2024-11-16 07:47:35 来源:网络 浏览:14次

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).
 
评论
评论
发 布