米葫芦网

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

热度:13℃ 发布时间:2024-11-16 07:47:35

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

更多软件教程
  • 软件教程推荐
更多+
Greenfoot设置中文的方法

Greenfoot设置中文的方法

Greenfoot是一款简单易用的Java开发环境,该软件界面清爽简约,既可以作为一个开发框使用,也能够作为集成开发环境使用,操作起来十分简单。这款软件支持多种语言,但是默认的语言是英文,因此将该软件下载到电脑上的时候,会发现软件的界面语言是英文版本的,这对于英语基础较差的朋友来说,使用这款软件就会...

07-05

Egret UI Editor修改快捷键的方法

Egret UI Editor修改快捷键的方法

Egret UI Editor是一款开源的2D游戏开发代码编辑软件,其主要功能是针对Egret项目中的Exml皮肤文件进行可视化编辑,功能十分强大。我们在使用这款软件的过程中,可以将一些常用操作设置快捷键,这样就可以简化编程,从而提高代码编辑的工作效率。但是这款软件在日常生活中使用得不多,并且专业性...

07-05

KittenCode新建项目的方法

KittenCode新建项目的方法

KittenCode是一款十分专业的编程软件,该软件给用户提供了可视化的操作界面,支持Python语言的编程开发以及第三方库管理,并且提供了很多实用的工具,功能十分强大。我们在使用这款软件进行编程开发的过程中,最基本、最常做的操作就是新建项目,因此我们很有必要掌握新建项目的方法。但是这款软件的专业性...

07-05

Thonny设置中文的方法

Thonny设置中文的方法

Thonny是一款十分专业的Python编辑软件,该软件界面清爽简单,给用户提供了丰富的编程工具,具备代码补全、语法错误显示等功能,非常的适合新手使用。该软件还支持多种语言,所以在下载这款软件的时候,有时候下载到电脑中的软件是英文版本的,这对于英语基础较差的小伙伴来说,使用这款软件就会变得十分困难,...

07-05

最新软件下载