华为 Quidway LS-S2116-SI 两层交换机是华为公司比较低端的 100M 网络交换接入设备,用作前端的业务接入,在 4M 速率的 MSTP 电路下要保证金融网、综合网、视频监控网和办公网四种业务的稳定高效的传输,特别是在网络阻塞的情况下需要保证金融网及综合网两种关键业务数据的正常传输。需要做如下配置:
1、划分vlan,以隔离四种业务,保证网络之间不能互相访问;
2、设置 QOS 队列调度,以保证关键业务优先传输
3、设置以太网口参数:
(1)、指定端口vlan,
(2)、端口降速为 10M,
(3)、指定端口传输的优先级别,有高到底为:金融网(7)>综合网(5)>监控网(3)>办公网(1),
(4)、抑制广播风暴
4、端口限速(zhw:512K、jrw:512K、jkr:2M、bgw:512K),由于 S2116 交换机不支持,因此忽略。
具体配置如下:
system-view
#
sysname hejiang
#
priority-trust cos
#
queue-scheduler wrr 2 4 6 8
#
vlan 3101
description zhw
#
vlan 3102
description jrw
#
vlan 3103
description bgw
#
vlan 3333
description jkw
#
interface Ethernet0/1
description to_zhw_lan
port access vlan 3101
priority 5
speed 10
broadcast-suppression 10
#
interface Ethernet0/2
description to_zhw_lan
port access vlan 3101
speed 10
broadcast-suppression 10
priority 5
#
interface Ethernet0/3
description to_zhw_lan
port access vlan 3101
speed 10
broadcast-suppression 10
priority 5
#
interface Ethernet0/4
description to_zhw_lan
port access vlan 3101
speed 10
broadcast-suppression 10
priority 5
#
interface Ethernet0/5
description to_jrw_lan
port access vlan 3102
speed 10
broadcast-suppression 10
priority 7
#
interface Ethernet0/6
description to_jrw_lan
port access vlan 3102
speed 10
broadcast-suppression 10
priority 7
#
interface Ethernet0/7
description to_jrw_lan
port access vlan 3102
speed 10
priority 7
broadcast-suppression 10
#
interface Ethernet0/8
description to_jrw_lan
port access vlan 3102
speed 10
broadcast-suppression 10
priority 7
#
interface Ethernet0/9
description to_bgw_lan
port access vlan 3103
speed 10
broadcast-suppression 10
priority 1
#
interface Ethernet0/10
description to_bgw_lan
port access vlan 3103
speed 10
broadcast-suppression 10
priority 1
#
interface Ethernet0/11
description to_jkw_lan
port access vlan 3333
speed 10
broadcast-suppression 10
priority 3
#
interface Ethernet0/12
description to_jkw_lan
port access vlan 3333
speed 10
broadcast-suppression 10
priority 3
#
interface Ethernet0/15
description up_to_mmjf
port link-type trunk
port trunk permit vlan all
#
interface Ethernet0/16
description up_to_mmjf
port link-type trunk
port trunk permit vlan all
#
user-interface aux 0
authentication-mode password
set authentication password cipher hejiang
【命令说明】
1、进入系统试图
system-view
2、配置机器名
sysname hejiang
3、设置交换机信任报文的优先级方式,cos 或者 dscp
priority-trust cos
4、设置QOS队列调度,优先级0~1为队列1,优先级2~3为队列2,优先级4~5为队列3,优先级6~7为队列4
queue-scheduler wrr 2 4 6 8
5、创建vlan
vlan 3101
6、指定以太网端口访问的vlan
port access vlan 3101
7、设置以太网端口优先级,值为0~7,优先级由低到高
priority 5
8、指定以太网端口传输速率
speed 10
9、设置以太网端口通过广播报文的限值,一般为10~20%即可
broadcast-suppression 10
10、指定端口连接类型为 trunk
port link-type trunk
11、指定允许通过的vlan,all为全部vlan
port trunk permit vlan all
12、设置vlan、端口的描述字串
description 英文字串
13、设置认证方式为密码验证方式
authentication-mode password
14、设置登陆验证的password为加密密码为hejiang
set authentication password cipher hejiang
设置为明文密码:
set authentication password simple hejiang
15、恢复出厂配置
reset saved-configuration
16、退出
quit
17、保存
save