{"id":632,"date":"2014-01-25T17:02:38","date_gmt":"2014-01-25T15:02:38","guid":{"rendered":"http:\/\/mattiesworld.gotdns.org\/weblog\/?p=632"},"modified":"2014-01-25T17:05:29","modified_gmt":"2014-01-25T15:05:29","slug":"dd-wrt-control-radio-on-a-cisco-linksys-e2000","status":"publish","type":"post","link":"https:\/\/mattiesworld.gotdns.org\/weblog\/2014\/01\/25\/dd-wrt-control-radio-on-a-cisco-linksys-e2000\/","title":{"rendered":"DD-wrt: control radio on a Cisco Linksys E2000"},"content":{"rendered":"<p>Some people prefer to have their wifi turned off at night. <a title=\"DD-wrt\" href=\"http:\/\/www.dd-wrt.com\/\">DD-wrt<\/a> already provides out of the box reprogrammability of the WPS button so you can use that button to turn\u00a0the wifi off\/on.<\/p>\n<p>If you want to use a cron job to automate this process, you need to know the command line. I tried using the <a href=\"http:\/\/www.dd-wrt.com\/wiki\/index.php\/Wl_command\">wl<\/a> command:<\/p>\n<pre>wl radio off<\/pre>\n<p>Unfortunately this doesn&#8217;t do much. We might need to specify the network interface on which to apply the command. List the network interfaces using the <a href=\"http:\/\/linux.die.net\/man\/8\/ip\">ip<\/a> addr command:<\/p>\n<pre>root@DD-WRT:~# ip a\r\n1: lo: &lt;LOOPBACK,MULTICAST,UP,10000&gt; mtu 16436 qdisc noqueue\r\n    link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\r\n    inet 127.0.0.1\/8 brd 127.255.255.255 scope host lo\r\n2: eth0: &lt;BROADCAST,MULTICAST,UP,10000&gt; mtu 1500 qdisc pfifo_fast\r\n    link\/ether c0:c1:c0:ab:6c:70 brd ff:ff:ff:ff:ff:ff\r\n3: eth1: &lt;BROADCAST,MULTICAST,UP,10000&gt; mtu 1500 qdisc pfifo_fast\r\n    link\/ether c0:c1:c0:ab:6c:72 brd ff:ff:ff:ff:ff:ff\r\n4: teql0:  mtu 1500 qdisc noop\r\n    link\/void\r\n5: tunl0:  mtu 1480 qdisc noop\r\n    link\/ipip 0.0.0.0 brd 0.0.0.0\r\n6: gre0:  mtu 1476 qdisc noop\r\n    link\/gre 0.0.0.0 brd 0.0.0.0\r\n7: vlan1@eth0: &lt;BROADCAST,MULTICAST,UP,10000&gt; mtu 1500 qdisc noqueue\r\n    link\/ether c0:c1:c0:ab:6c:70 brd ff:ff:ff:ff:ff:ff\r\n8: vlan2@eth0: &lt;BROADCAST,MULTICAST,UP,10000&gt; mtu 1500 qdisc noqueue\r\n    link\/ether c0:c1:c0:ab:6c:71 brd ff:ff:ff:ff:ff:ff\r\n    inet 178.117.xxx.xxx\/20 brd 178.117.xxx.255 scope global vlan2\r\n9: br0: &lt;BROADCAST,MULTICAST,PROMISC,UP,10000&gt; mtu 1500 qdisc noqueue\r\n    link\/ether c0:c1:c0:ab:6c:70 brd ff:ff:ff:ff:ff:ff\r\n    inet 192.168.1.1\/24 brd 192.168.1.255 scope global br0\r\n    inet 169.254.255.1\/16 brd 169.254.255.255 scope global br0:0\r\n10: etherip0: &lt;BROADCAST,MULTICAST&gt; mtu 1500 qdisc noop\r\n    link\/ether f6:1f:60:c5:50:bf brd ff:ff:ff:ff:ff:ff<\/pre>\n<p>I&#8217;m no network expert so I checked the MAC address of the wifi interface in the web admin <strong>Status &gt; Wireless<\/strong> page ( http:\/\/192.168.1.1\/Status_Wireless.asp ) and figured eth1 must be the wifi interface.<br \/>\nAnd indeed, using the following command it worked!<\/p>\n<pre>wl -i eth1 radio off<\/pre>\n<p>You can check whether radio state changes in the wireless status page mentioned above. For automation, put these commands in a cron job on the <strong>Administration &gt; Management<\/strong> page ( http:\/\/192.168.1.1\/Management.asp ).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some people prefer to have their wifi turned off at night. DD-wrt already provides out of the box reprogrammability of the WPS button so you can use that button to turn\u00a0the wifi off\/on. If you want to use a cron job to automate this process, you need to know the command line. I tried using &hellip; <a href=\"https:\/\/mattiesworld.gotdns.org\/weblog\/2014\/01\/25\/dd-wrt-control-radio-on-a-cisco-linksys-e2000\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">DD-wrt: control radio on a Cisco Linksys E2000<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,4,10],"tags":[],"class_list":["post-632","post","type-post","status-publish","format-standard","hentry","category-hardware","category-linux","category-tweaking"],"_links":{"self":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts\/632","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/comments?post=632"}],"version-history":[{"count":4,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts\/632\/revisions"}],"predecessor-version":[{"id":636,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts\/632\/revisions\/636"}],"wp:attachment":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/media?parent=632"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/categories?post=632"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/tags?post=632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}