This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| toggle_radio [2023/08/06 21:44] – [WiFi SSID-specific operation] -formatting hogwild | toggle_radio [2025/10/19 21:22] (current) – [Control Specific Wireless Chipsets (2.4/5GHz)] hogwild | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| - | ===== Full Wireless | + | ===== Full Wireless |
| - | If you want to enable/disable WiFi from the command line you can use the following system commands: | + | You can enable |
| \\ | \\ | ||
| Line 12: | Line 12: | ||
| \\ ''/ | \\ ''/ | ||
| - | | + | |
| **Force radio off:** | **Force radio off:** | ||
| Line 18: | Line 18: | ||
| | | ||
| - | | + | |
| **Force radio on:** | **Force radio on:** | ||
| Line 24: | Line 24: | ||
| | | ||
| + | | ||
| - | ===== Specific Wireless chipset (2.4/5GHz) operations ===== | ||
| - | Modern routers come with two or more chipsets/ | + | ===== Control Specific Wireless Chipsets (2.4/5GHz) ===== |
| + | |||
| + | Modern routers come with two or more chipsets/ | ||
| Once you've identified the name of the appropriate radio interface (via the [[advanced-wlanvifs|Virtual Wireless]] page): | Once you've identified the name of the appropriate radio interface (via the [[advanced-wlanvifs|Virtual Wireless]] page): | ||
| Line 33: | Line 35: | ||
| \\ | \\ | ||
| - | {{: | + | {{: |
| - | Do not blindly use this table. It is only an example. Router interface names may vary. For full chipset operation, refer to the " | + | Do not blindly use this table. It' |
| - | \\ | + | \\ For example, using " |
| - | For example, using " | + | \\ **Toggle:** |
| - | **Verify interface state** | + | \\ ''/ |
| - | | + | |
| - | \\ | + | **Verify interface state:** |
| - | \\ | + | |
| - | **Toggle interface state** | + | \\ '' |
| - | \\ '' | + | \\ \\ |
| - | \\ | + | \\ **Toggle interface state:** |
| - | \\ | + | \\ '' |
| - | **Force interface off** | + | |
| - | | + | |
| - | \\ | + | \\ \\ |
| - | \\ | + | **Force interface on:** |
| - | **Force interface | + | \\ '' |
| - | \\ \\ '' | + | \\ \\ |
| - | ===== WiFi SSID-specific operation | + | ===== Control Specific |
| - | In some cases, you might want to just restrict access to only one specific SSID or change settings specific to only one WiFi interface. | + | In some cases, you might want to just restrict access to only one specific SSID, or change settings specific to only one WiFi interface. |
| This can be achieved as follows: | This can be achieved as follows: | ||
| + | |||
| + | \\ | ||
| First, identify the SSID virtual interface you want to control. The full list of WiFi interfaces on your router and all its sub-interfaces can be found in the [[advanced-wireless|Virtual Wireless]] menu. | First, identify the SSID virtual interface you want to control. The full list of WiFi interfaces on your router and all its sub-interfaces can be found in the [[advanced-wireless|Virtual Wireless]] menu. | ||
| - | Virtual interfaces are always defined as: '' | + | Virtual interfaces are always defined as: [ main wireless interface name ] + [.] + [number 0-3] |
| - | For example, on this router, in the Virtual Wireless menu, we can see the 2.4GHz interface named: " | + | \\ |
| - | \\ \\ {{: | + | For example, in the Virtual Wireless menu on this router, you can see a 2.4GHz interface named " |
| - | \\ | + | |
| - | \\ | + | |
| - | Now, let's assume you want to turn off wl1.3 which is associated to SSID " | + | |
| - | \\ \\ {{:pasted: | + | Let's assume you want to control " |
| - | \\ | + | |
| - | \\ | + | |
| - | We could perform the following tasks:\\ | + | \\ |
| - | **Toggle interface state**\\ | + | The commands below will perform these tasks. |
| - | '' | + | (You may need to enter the command |
| - | \\ | + | \\ \\ |
| - | \\ | + | **Toggle interface state** \\ \\ |
| - | **Force Interface Off** | + | '' |
| - | \\ \\ | + | '' |
| - | \\ | + | \\ \\ |
| - | \\ | + | **Force Interface Off** \\ \\ |
| + | |||
| + | '' | ||
| + | |||
| + | | ||
| **Force Interface On** | **Force Interface On** | ||
| - | \\ \\ '' | + | |
| + | |||
| + | '' | ||
| + | |||
| + | | ||
| + | |||
| + | The //iplink //command is another reliable tool, allowing you to disable any interface or change its MAC address. | ||
| + | \\ | ||
| + | For example: \\ \\ | ||
| + | |||
| + | **Take down an interface** \\ \\ | ||
| + | |||
| + | '' | ||
| + | |||
| + | \\ \\ | ||
| + | |||
| + | **Bring up an interface: | ||
| + | |||
| + | \\ '' | ||
| \\ | \\ | ||
| + | | ||
| + | |||
| + | ==== Specific WiFi SSID Operation ==== | ||
| + | |||
| + | Often, a specific defined SSID operates on multiple interfaces/ | ||
| \\ | \\ | ||
| + | **Force Off** \\ \\ | ||
| + | |||
| + | '' | ||
| - | ==== Wireless SSID specific operation ==== | + | \\ \\ |
| - | Let's say, as it often happens), a specific SSID you have defined is operational on multiple interfaces/ | + | **Force On** \\ \\ |
| - | **Force Off**\\ | + | '' |
| - | '' | + | |
| - | nvram show | grep ssid | grep $SSID | while read line; do wl -i $(echo $line | cut -d" | + | |
| - | **Force On**\\ | + | \\ |
| - | '' | + | \\ |
| - | nvram show | grep ssid | grep $SSID | while read line; do wl -i $(echo $line | cut -d" | + | \\ |
| + | | ||