Skip to main content

User Manual

Work schedule for a network port

In the Keenetic device settings, you can create a work schedule for hosts on your home network and for various connections. But is it possible to create a schedule for a specific network port on your home network? When you need one LAN port on your router to turn on and off strictly according to a schedule.

Yes, it is possible. This setting is unavailable in the web interface because it is not very popular. Still, you can configure a schedule for a specific network port via the router's command-line interface (CLI).

Let's take an example. Suppose you need to configure a schedule on a gigabit router for LAN port 3 to work daily from 10:00 to 14:00 (the port should be turned off at other times).

Connect to the router's command-line interface and execute the following commands:

(config)> schedule port

Core::Schedule::Manager: Created schedule "port".

(config-sched)> action start 00 10 *

Core::Schedule::Manager: Updated schedule "port".

(config-sched)> action stop 00 14 *

Core::Schedule::Manager: Updated schedule "port".

(config-sched)> exit

Core::Configurator: Done.

(config)> interface GigabitEthernet0/2 schedule port

Network::Interface::Base: "GigabitEthernet0/2": schedule is "port".

(config)> system configuration save

In our example, GigabitEthernet0/2 is the third LAN port on the router.

The order is as follows: the first port is 0/0, the second port is 0/1, the third port is 0/2, and the fourth port is 0/3.

Tip

Syntax of the schedule action command:

(config-sched)> action ‹ start|stop › ‹ min › ‹ hour › ‹ dow ›

action start — start the schedule;

action stop — stop the schedule;

min — minutes (integer from 0 to 59);

hour — hours (integer from 0 to 23);

dow — day of the week; 0 and 7 mean Sunday; * means daily (for example: action start 57 23 *); days of the week are separated by commas (for example: action start 57 23 1,2,3,4,5).

For detailed information on command syntax and how to use the command-line interface (CLI), see the Command Reference (available on the website in the Download Center section of your model page).

After the settings listed above, the network port (in our example, LAN port 3) will operate according to the schedule.

If you need to turn off the schedule, execute the following commands:

(config)> no interface GigabitEthernet0/2 schedule
(config)> system configuration save