华三S6850-56HF对接入服务器配置网路限速为100兆需要怎么配置,需要怎么测试
(0)
最佳答案
· 设备Device A通过接口HundredGigE3/0/3和设备Device B的接口HundredGigE3/0/1互连;
· Server、Host A、Host B可经由Device A和Device B访问Internet;
· Server、Host A与Device A的HundredGigE3/0/1接口在同一网段;
· Host B与Device A的HundredGigE3/0/2接口在同一网段。
要求在设备Device A上对接口HundredGigE3/0/1接收到的源自Server和Host A的报文流分别实施流量控制如下:
· 来自Server的报文流量约束为10240kbps,流量小于10240kbps时可以正常发送,流量超过10240kbps时则将违规报文的优先级设置为0后进行发送;
· 来自Host A的报文流量约束为2560kbps,流量小于2560kbps时可以正常发送,流量超过2560kbps时则丢弃违规报文。
对设备Device B的HundredGigE3/0/1和HundredGigE3/0/2接口收发报文有如下要求:
· Device B的HundredGigE3/0/1接口接收报文的总流量限制为20480kbps,如果超过流量限制则将违规报文丢弃;
· 经由Device B的HundredGigE3/0/2接口进入Internet的报文流量限制为10240kbps,如果超过流量限制则将违规报文丢弃。
图4-5 流量监管配置组网图
(1) 配置设备Device A
# 配置ACL规则列表,分别匹配来源于Server和Host A的报文流。
<DeviceA> system-view
[DeviceA] acl basic 2001
[DeviceA-acl-ipv4-basic-2001] rule permit source 1.1.1.1 0
[DeviceA-acl-ipv4-basic-2001] quit
[DeviceA] acl basic 2002
[DeviceA-acl-ipv4-basic-2002] rule permit source 1.1.1.2 0
[DeviceA-acl-ipv4-basic-2002] quit
# 创建流分类server,匹配Server发出的报文流。
[DeviceA] traffic classifier server
[DeviceA-classifier-server] if-match acl 2001
[DeviceA-classifier-server] quit
# 创建流分类host,匹配Host发出的报文流。
[DeviceA] traffic classifier host
[DeviceA-classifier-host] if-match acl 2002
[DeviceA-classifier-host] quit
# 创建流行为server,动作为流量监管,cir为10240kbps,对超出限制的报文(红色报文)将其DSCP优先级设置为0后发送。
[DeviceA] traffic behavior server
[DeviceA-behavior-server] car cir 10240 red remark-dscp-pass 0
[DeviceA-behavior-server] quit
# 创建流行为host,动作为流量监管,cir为2560kbps,由于默认对红色报文的处理方式就是丢弃,因此无需配置。
[DeviceA] traffic behavior host
[DeviceA-behavior-host] car cir 2560
[DeviceA-behavior-host] quit
# 创建QoS策略,命名为car,将流分类server和流行为server进行关联;将流分类host和流行为host进行关联。
[DeviceA] qos policy car
[DeviceA-qospolicy-car] classifier server behavior server
[DeviceA-qospolicy-car] classifier host behavior host
[DeviceA-qospolicy-car] quit
# 将QoS策略car应用到接口HundredGigE3/0/1的入方向上。
[DeviceA] interface hundredgige 3/0/1
[DeviceA-HundredGigE3/0/1] qos apply policy car inbound
[DeviceA-HundredGigE3/0/1] quit
(2) 配置设备Device B
# 配置高级ACL3001,匹配HTTP报文。
<DeviceB> system-view
[DeviceB] acl advanced 3001
[DeviceB-acl-adv-3001] rule permit tcp destination-port eq 80
[DeviceB-acl-adv-3001] quit
# 创建流分类http,匹配ACL 3001。
[DeviceB] traffic classifier http
[DeviceB-classifier-http] if-match acl 3001
[DeviceB-classifier-http] quit
# 创建流分类class,匹配所有报文。
[DeviceB] traffic classifier class
[DeviceB-classifier-class] if-match any
[DeviceB-classifier-class] quit
# 创建流行为car_inbound,动作为流量监管,cir为20480kbps,由于默认对红色报文的处理方式就是丢弃,因此无需配置。
[DeviceB] traffic behavior car_inbound
[DeviceB-behavior-car_inbound] car cir 20480
[DeviceB-behavior-car_inbound] quit
# 创建流行为car_outbound,动作为流量监管,cir为10240kbps。
[DeviceB] traffic behavior car_outbound
[DeviceB-behavior-car_outbound] car cir 10240
[DeviceB-behavior-car_outbound] quit
# 创建QoS策略,命名为car_inbound,将流分类class和流行为car_inbound进行关联。
[DeviceB] qos policy car_inbound
[DeviceB-qospolicy-car_inbound] classifier class behavior car_inbound
[DeviceB-qospolicy-car_inbound] quit
# 创建QoS策略,命名为car_outbound,将流分类http和流行为car_outbound进行关联。
[DeviceB] qos policy car_outbound
[DeviceB-qospolicy-car_outbound] classifier http behavior car_outbound
[DeviceB-qospolicy-car_outbound] quit
# 将QoS策略car_inbound应用到接口HundredGigE3/0/1的入方向上。
[DeviceB] interface hundredgige 3/0/1
[DeviceB-HundredGigE3/0/1] qos apply policy car_inbound inbound
# 将QoS策略car_outbound应用到接口HundredGigE3/0/2的出方向上。
[DeviceB] interface hundredgige 3/0/2
[DeviceB-HundredGigE3/0/2] qos apply policy car_outbound outbound
[DeviceB-HundredGigE3/0/2] quit
(0)
在服务器那边下载东西测试
本节中的“接口”指的是二层以太网接口和三层以太网接口。三层以太网接口是指在以太网接口视图下通过port link-mode route命令切换为三层模式的以太网接口,有关以太网接口工作模式切换的操作,请参见“接口管理配置指导”中的“以太网接口”。
(1) 进入系统视图。
system-view
(2) 进入接口视图。
interface interface-type interface-number
(3) 配置接口限速。
qos lr outbound cir committed-information-rate [ cbs committed-burst-size ]
缺省情况下,接口上未配置接口限速。
在完成上述配置后,在任意视图下执行display命令可以显示配置后流量监管、流量整形和接口限速的运行情况,通过查看显示信息验证配置的效果。
表4-1 流量监管、流量整形和限速显示和维护
操作 |
命令 |
显示接口的流量整形配置情况和统计信息 |
display qos gts interface [ interface-type interface-number ] |
显示限速配置情况和统计信息 |
display qos lr interface [ interface-type interface-number ] |
显示QoS和ACL资源的使用情况 |
display qos-acl resource [ slot slot-number ] 本命令的详细介绍,请参见“ACL和QoS命令参考”中的“ACL” |
显示流量监管的相关配置信息 |
display traffic behavior user-defined [ behavior-name ] |
通过配置聚合CAR,对端口Ten-GigabitEthernet1/0/1接收的VLAN10和VLAN100的报文流量之和进行限制,cir为2560,cbs为20480,对于红色报文,采取丢弃策略。
图11-1 聚合CAR配置举例组网图
# 按流量限制需求配置聚合CAR。
<Device> system-view
[Device] qos car aggcar-1 aggregative cir 2560 cbs 20480 red discard
# 配置流分类和流行为,对VLAN10的报文采用聚合CAR的限速配置。
[Device] traffic classifier 1
[Device-classifier-1] if-match service-vlan-id 10
[Device-classifier-1] quit
[Device] traffic behavior 1
[Device-behavior-1] car name aggcar-1
[Device-behavior-1] quit
# 配置流分类和流行为,对VLAN100的报文采用聚合CAR的限速配置。
[Device] traffic classifier 2
[Device-classifier-2] if-match service-vlan-id 100
[Device-classifier-2] quit
[Device] traffic behavior 2
[Device-behavior-2] car name aggcar-1
[Device-behavior-2] quit
# 配置QoS策略,将流分类与流行为进行绑定。
[Device] qos policy car
[Device-qospolicy-car] classifier 1 behavior 1
[Device-qospolicy-car] classifier 2 behavior 2
[Device-qospolicy-car] quit
# 将QoS策略应用到端口Ten-GigabitEthernet1/0/1的入方向。
[Device] interface ten-gigabitethernet 1/0/1
[Device-Ten-GigabitEthernet1/0/1] qos apply policy car inbound
(0)
用这个qos lr outbound cir committed-information-rate [ cbs committed-burst-size ]
如何配置?
[ZJJH-2]speed ? 1000 Specify speed as 1000 Mbps 10000 Specify speed as 10000 Mbps 25000 Specify speed as 25000 Mbps auto Enable port's speed negotiation automatically
用这个qos lr outbound cir committed-information-rate [ cbs committed-burst-size ]
接口speed 100
(0)
那就按楼下做qos吧
[ZJJH-03-Twenty-FiveGigE1/0/1]speed ? 1000 Specify speed as 1000 Mbps 10000 Specify speed as 10000 Mbps 25000 Specify speed as 25000 Mbps auto Enable port's speed negotiation automatically
那就按楼下做qos吧
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明