View Single Post
  #2   (View Single Post)  
Old 25th June 2014
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by EverydayDiesel View Post
Is there a way to bring up/down interfaces for different hours of the day?
Sure.
  • Look at the ifconfig(8) manpage to figure out how to construct the command to take an interface up & down.
  • Look at the cron(8) & crontab(1) manpages to set up when to bring up the interface (8:00am), & when to bring it down (11:00pm).
Quote:
I am looking to make eth1...
Ewww, Linuxisms. Yuck.

Although the following article was written to address FreeBSD, cron is pretty standard across most Unix derivatives, & hey, it is written by Dru Lavigne, & anything from Dru Lavigne is noteworthy.

http://www.onlamp.com/pub/a/bsd/2000...cs.html?page=1

And when it comes to OpenBSD, always correlate information back to what can be found in the manpages.


Last edited by ocicat; 25th June 2014 at 09:46 PM.
Reply With Quote