最佳答案
某公司希望在上班时间对员工进行每IP限速,其他时间不限制。
1.主要配置如下:
#创建关闭接口g/1的限速功能
scheduler job close-car-g1/0/1
command 1 system-view
command 2 interface g1/0/1
command 3 undo qos car inbound carl 1
#创建开启接口g/1的限速功能
scheduler job start-car-g1/0/1
command 1 system-view
command 2 interface g1/0/1
command 3 qos car inbound carl 1 cir 500 cbs 1875 ebs 0 green pass red discard
#配置定时执行任务,使设备在星期一到星期五的下午六点关闭对应的限速功能。
scheduler schedule close-car-g1/0/1
user-role network-admin
job close-car-g1/0/1
time repeating at 18:00 week-day Mon Tue Wed Thu Fri
#配置定时执行任务,使设备在星期一到星期五的上午八点开启对应的限速功能。
scheduler schedule start-car-g1/0/1
user-role network-admin
job start-car-g1/0/1
time repeating at 08:00 week-day Mon Tue Wed Thu Fri
#
2.结果验证
# 显示Job的配置信息
[H3C]display scheduler job
Job name: close-car-g1/0/1
system-view
interface g1/0/1
undo qos car inbound carl 1
Job name: start-car-g1/0/1
system-view
interface g1/0/1
qos car inbound carl 1 cir 500 cbs 1875 ebs 0 green pass red discard
# 显示定时任务的运行信息。
[H3C]display scheduler schedule
Schedule name : close-car-g1/0/1
Schedule type : Run on every Mon Tue Wed Thu Fri at 18:00:00
Start time : Wed Sep 28 08:00:00 2016
Last execution time : Wed Sep 28 08:00:00 2016
Last completion time : Wed Sep 28 08:00:03 2016
Execution counts : 1
-----------------------------------------------------------------------
Job name Last execution status
close-car-g1/0/1 Successful
Schedule name : start-car-g1/0/1
Schedule type : Run on every Mon Tue Wed Thu Fri at 18:00:00
Start time : Wed Sep 28 08:00:00 2016
Last execution time : Wed Sep 28 08:00:00 2016
Last completion time : Wed Sep 28 08:00:03 2016
Execution counts : 1
-----------------------------------------------------------------------
Job name Last execution status
start-car-g1/0/1 Successful
(0)
你配置一个时间段,然后再引用
[Device] time-range work 08:00 to 18:00 working-day from 00:00 6/1/2015 to 24:00 12/31/2015
[Device] acl basic 2001
[Device-acl-ipv4-basic-2001] rule permit source 192.168.1.2 0 time-range work
(1)
暂无评论
查询了该型号的配置文件,发现支持不了。https://www.h3c.com/cn/Service/Document_Software/Document_Center/Switches/Catalog/S5000P/S5016PV2-EI/?CHID=226760&v=612
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论