您好,参考
可以做个定时任务,定时关闭接口
配置步骤
# 创建关闭接口1 的Job。
[AC] scheduler job interface_disable
[AC-job-radio_disable] command 1 system-view
[AC-job-radio_disable] command 2 int g0/1
[AC-job-radio_disable] command 3 shutdown
[AC-job-radio_disable] quit
# 配置定时执行任务,使设备在每天20:00 关闭接口1。
[AC] scheduler schedule stop_interface
[AC-schedule-stop_radio] job interface_disable
[AC-schedule-stop_radio] time repeating at 20:00
[AC-schedule-stop_radio] quit
# 创建开启接口1 的Job。
[AC] scheduler job interface_enable
[AC-job-radio_enable] command 1 system-view
[AC-job-radio_enable] command 2 int g0/1
[AC-job-radio_enable] command 3 undo shut
[AC-job-radio_enable] quit
# 配置定时执行任务,使设备在每天8:00 开启接口1。
[AC] scheduler schedule start_interface
[AC-schedule-start_radio] job interface_enable
[AC-schedule-start_radio] time repeating at 8:00
[AC-schedule-start_radio] quit