To stop the network interface, issue the following command. If you are logged in as root, which is not recommended, omit the
packt@PacktPublishing:~$ sudo /etc/init.d/networking stop Deconfiguring network interfaces...done.
Similarly, the network interface can be started again using the
start parameter, as follows:
packt@PacktPublishing:~$ sudo /etc/init.d/networking start Configuring network interfaces...
The same can be done using the
reload parameter, where
reload forces the service to reload its configuration.
Some distributions, such as Ubuntu, might use upstart or even SystemD. Sometimes, scripts are left behind in the
/etc/init.d directory that can be used ...