Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
enable/disable internet connection from terminal/with terminal commands?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Raz0rEdge" data-source="post: 1785921" data-attributes="member: 110816"><p>The commands you use will vary slightly between Ethernet and WiFi.</p><p></p><p>The command</p><p>[CODE]</p><p>sudo ifconfig en0 down</p><p>[/CODE]</p><p></p><p>Will take down the interface regardless of it being Ethernet or WiFi. You would bring it back up by replacing the <strong>down</strong> with <strong>up.</strong></p><p></p><p>If you are using WiFi, you can use another command to turn off the power to the WiFi as well with the command</p><p>[CODE]</p><p>networksetup -setairportpower en0 off</p><p>[/CODE]</p><p></p><p>To enable the power, you would replace <strong>off </strong>with <strong>on</strong>.</p><p></p><p>Read more: </p><p><a href="https://alvinalexander.com/mac-os-x/mac-airport-networking-terminal-command-line-off-on" target="_blank">https://alvinalexander.com/mac-os-x/mac-airport-networking-terminal-command-line-off-on</a></p><p><a href="http://osxdaily.com/2011/05/31/enable-disable-airport-wireless-connections-command-line/" target="_blank">http://osxdaily.com/2011/05/31/enable-disable-airport-wireless-connections-command-line/</a></p></blockquote><p></p>
[QUOTE="Raz0rEdge, post: 1785921, member: 110816"] The commands you use will vary slightly between Ethernet and WiFi. The command [CODE] sudo ifconfig en0 down [/CODE] Will take down the interface regardless of it being Ethernet or WiFi. You would bring it back up by replacing the [B]down[/B] with [B]up.[/B] If you are using WiFi, you can use another command to turn off the power to the WiFi as well with the command [CODE] networksetup -setairportpower en0 off [/CODE] To enable the power, you would replace [B]off [/B]with [B]on[/B]. Read more: [url]https://alvinalexander.com/mac-os-x/mac-airport-networking-terminal-command-line-off-on[/url] [url]http://osxdaily.com/2011/05/31/enable-disable-airport-wireless-connections-command-line/[/url] [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
Apple Computing Products:
macOS - Operating System
enable/disable internet connection from terminal/with terminal commands?
Top