Linux:

ifdown & ifup

The ifdown and ifup commands are the same thing as running ifconfig up or ifconfig down.

Given an interface’s name, they take the interface down or bring it up.

This requires root permissions, so you have to use sudo on Ubuntu.

sudo ifdown eth0
sudo ifup eth0

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.