华为S3900系列一些端口基本配置命令
作者:admin 日期:2008-09-25
1,broadcast-suppression
【命令】
broadcast-suppression { ratio | pps max-pps }
undo broadcast-suppression
【视图】
系统视图/以太网端口视图
【参数】
ratio:指定端口允许通过的最大广播流量所占该端口传输能力的百分比,取值范围为1~100,缺省值为100,步长为1。百分比越小,允许接收的广播流量也越小。
max-pps:指定以太网端口每秒允许接收的最大广播包数量,单位为pps:
l 在系统视图下,取值范围为1~262143;
l 在以太网端口视图下,对于Ethernet端口,取值范围为1~148810,对于GigabitEthernet端口,取值范围为1~262143。
【描述】
broadcast-suppression命令用来限制端口允许接收的广播流量的大小。undo broadcast-suppression命令用来恢复端口允许接收的广播流量的缺省值。
当广播流量超过用户设置的阈值后,系统将对超出广播流量限制的报文进行丢弃,从而使广播所占的流量比例降低到限定的范围,保证网络业务的正常运行。
l 在系统视图下,以上命令是统一设置或取消所有以太网端口上允许接收的广播流量的大小;
l 以太网端口视图下:以上命令只设置或取消当前以太网端口上允许接收的广播流量的大小。
缺省情况下,交换机不对广播流量进行抑制。
举例】
# 对于端口Ethernet1/0/1,最多允许相当于该端口传输能力20%的广播报文通过,对超出该范围的广播报文进行抑制。
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] broadcast-suppression 20
# 配置端口Ethernet1/0/1每秒允许接收的最大广播数据包数为1000。
[Sysname-Ethernet1/0/1] broadcast-suppression pps 1000
copy configuration
【命令】
copy configuration source { interface-type interface-number | aggregation-group source-agg-id } destination { interface-list [ aggregation-group destination-agg-id ] | aggregation-group destination-agg-id }
【视图】
系统视图
【参数】
interface-type:端口类型。
interface-number:端口编号。
source-agg-id:源汇聚组号,取值范围为1~416。系统将以该汇聚组中端口号最小的端口作为源端口。
destination-agg-id:目的汇聚组号,取值范围为1~416。
interface-list:目的端口列表。interface-list = interface-type interface-number [ to interface-type interface-number ] &<1-10>。&<1-10>表示前面的参数最多可以重复输10次。
【描述】
copy configuration命令用来将指定端口的配置拷贝到其它端口,以实现端口配置的一致。
& 说明:
l 如果将拷贝的配置源(source)指定为汇聚组,系统将以该汇聚组中端口号最小的端口为配置源进行拷贝。
l 如果将拷贝的目的地(destination)指定为汇聚组,则该汇聚组内所有端口的配置都将改变为与配置源一致。
执行copy命令后,如果有的配置无法拷贝成功,系统将进行提示。
【举例】
# 将端口Ethernet1/0/1的配置拷贝到端口Ethernet1/0/2、Ethernet1/0/3。
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] copy configuration source ethernet 1/0/1 destination ethernet 1/0/2 ethernet 1/0/3
Note: The following will be removed from destination port list:
Aggregation port(s),Voice vlan port(s).
Copying VLAN configuration...
Copying Protocol based VLAN configuration...
Copying LACP configuration...
Copying QOS configuration...
Copying GARP configuration...
Copying STP configuration...
Copying speed/duplex configuration...
& 说明:
l 目的端口中不能有汇聚组端口,否则系统会将该汇聚组端口从目的端口列表中移除,copy命令也不会对该端口生效。如果用户需要在该端口上同步源端口的配置,则需要将该端口所在的汇聚组配置为目的参数(即配置destination-agg-id)。
l 目的端口中不能有使能了Voice VLAN特性的端口,否则系统会将该端口从目的端口列表中删除。
# 将端口GigabitEthernet1/1/1的配置拷贝到端口Ethernet1/0/1。
[Sysname]copy configuration source g1/1/1 destination e1/0/1
Copying VLAN configuration...
Copying Protocol based VLAN configuration...
Copying LACP configuration...
Copying QOS configuration...
Copying GARP configuration...
Copying STP configuration...
Copying speed/duplex configuration...
Copying speed configuration to interface Ethernet1/0/1 failed
Copying QoS rate limit configuration to interface Ethernet1/0/2 failed
以上提示信息表明,除速率和QoS流量监管拷贝失败外,其余配置均已拷贝成功。
【命令】
broadcast-suppression { ratio | pps max-pps }
undo broadcast-suppression
【视图】
系统视图/以太网端口视图
【参数】
ratio:指定端口允许通过的最大广播流量所占该端口传输能力的百分比,取值范围为1~100,缺省值为100,步长为1。百分比越小,允许接收的广播流量也越小。
max-pps:指定以太网端口每秒允许接收的最大广播包数量,单位为pps:
l 在系统视图下,取值范围为1~262143;
l 在以太网端口视图下,对于Ethernet端口,取值范围为1~148810,对于GigabitEthernet端口,取值范围为1~262143。
【描述】
broadcast-suppression命令用来限制端口允许接收的广播流量的大小。undo broadcast-suppression命令用来恢复端口允许接收的广播流量的缺省值。
当广播流量超过用户设置的阈值后,系统将对超出广播流量限制的报文进行丢弃,从而使广播所占的流量比例降低到限定的范围,保证网络业务的正常运行。
l 在系统视图下,以上命令是统一设置或取消所有以太网端口上允许接收的广播流量的大小;
l 以太网端口视图下:以上命令只设置或取消当前以太网端口上允许接收的广播流量的大小。
缺省情况下,交换机不对广播流量进行抑制。
举例】
# 对于端口Ethernet1/0/1,最多允许相当于该端口传输能力20%的广播报文通过,对超出该范围的广播报文进行抑制。
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] broadcast-suppression 20
# 配置端口Ethernet1/0/1每秒允许接收的最大广播数据包数为1000。
[Sysname-Ethernet1/0/1] broadcast-suppression pps 1000
copy configuration
【命令】
copy configuration source { interface-type interface-number | aggregation-group source-agg-id } destination { interface-list [ aggregation-group destination-agg-id ] | aggregation-group destination-agg-id }
【视图】
系统视图
【参数】
interface-type:端口类型。
interface-number:端口编号。
source-agg-id:源汇聚组号,取值范围为1~416。系统将以该汇聚组中端口号最小的端口作为源端口。
destination-agg-id:目的汇聚组号,取值范围为1~416。
interface-list:目的端口列表。interface-list = interface-type interface-number [ to interface-type interface-number ] &<1-10>。&<1-10>表示前面的参数最多可以重复输10次。
【描述】
copy configuration命令用来将指定端口的配置拷贝到其它端口,以实现端口配置的一致。
& 说明:
l 如果将拷贝的配置源(source)指定为汇聚组,系统将以该汇聚组中端口号最小的端口为配置源进行拷贝。
l 如果将拷贝的目的地(destination)指定为汇聚组,则该汇聚组内所有端口的配置都将改变为与配置源一致。
执行copy命令后,如果有的配置无法拷贝成功,系统将进行提示。
【举例】
# 将端口Ethernet1/0/1的配置拷贝到端口Ethernet1/0/2、Ethernet1/0/3。
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] copy configuration source ethernet 1/0/1 destination ethernet 1/0/2 ethernet 1/0/3
Note: The following will be removed from destination port list:
Aggregation port(s),Voice vlan port(s).
Copying VLAN configuration...
Copying Protocol based VLAN configuration...
Copying LACP configuration...
Copying QOS configuration...
Copying GARP configuration...
Copying STP configuration...
Copying speed/duplex configuration...
& 说明:
l 目的端口中不能有汇聚组端口,否则系统会将该汇聚组端口从目的端口列表中移除,copy命令也不会对该端口生效。如果用户需要在该端口上同步源端口的配置,则需要将该端口所在的汇聚组配置为目的参数(即配置destination-agg-id)。
l 目的端口中不能有使能了Voice VLAN特性的端口,否则系统会将该端口从目的端口列表中删除。
# 将端口GigabitEthernet1/1/1的配置拷贝到端口Ethernet1/0/1。
[Sysname]copy configuration source g1/1/1 destination e1/0/1
Copying VLAN configuration...
Copying Protocol based VLAN configuration...
Copying LACP configuration...
Copying QOS configuration...
Copying GARP configuration...
Copying STP configuration...
Copying speed/duplex configuration...
Copying speed configuration to interface Ethernet1/0/1 failed
Copying QoS rate limit configuration to interface Ethernet1/0/2 failed
以上提示信息表明,除速率和QoS流量监管拷贝失败外,其余配置均已拷贝成功。
评论: 0 | 引用: 0 | 查看次数: -
发表评论
上一篇
下一篇

文章来自:
Tags: