Restarting the network interface using command lines in Linux is a straight-forward procedure. While the GUI (Graphical User Interface) for Linus network configuration is more graphical and visually appealing, it may actually make restarting the network interface much longer.
In operating systems such as Linux, the command line operations generally accomplish the task faster than the GUI interface. Restarting the network interface by using command lines will require certain user privileges, as well as designation as the system's root user, or via the Sudo. There are separate commands to restart the network services and to restart a particular network interface.
The process of setting up a network can be quite lengthy, especially if you need to verify that your DHCP server is correctly assigning its IP addresses. A quicker way of restarting the network interface would be to use command lines.
These commands should be executed as root or via sudo. The following commands are specific to debian (Ubuntu or Xandros).
- Stop the network interface eth0:
ifdown eth0
- Start the network interface eth0:
ifup eth0
- Don't confuse with the following command, which restarts all the networks services :
/etc/init.d/networking restart
- To see your various network interfaces, use the command:
/sbin/ifconfig -a
Linux
- Linux restart network
- Restart network linux
- Linux restart network interface
- Ubuntu reset network settings: to default, command line > Guide
- Cannot ping computer on same network: Windows 10, Windows 7 > Guide
- Debian add printer: command line, install cups > Guide
- Looking for OS X/Linux/network infection help [solved] > Forum - Viruses/Security
- About the Linux network setup [solved] > Forum - Linux/Unix
- How to compile assembly code: in Linux, Windows, with NASM
- Search in Vim editor: Linux, for words
- Ubuntu remove password: for sudo, for user, for root
- How to disable avahi-daemon: Linux, Ubuntu
- Change password Linux: script, terminal, Samba
- Debian change language: to English, command
- Linux read file line by line: for loop
- Vim autocomplete: C++, command
- Linux display file in reverse order
- How to install htop Linux: Ubtunu, Mint
- How to create commands in Linux?
- Customize Wine on Linux: download, install, locate theme
- How to resize partition Linux: Gparted, command line
- How to remove the content of a directory: Linux
- How to recover lost admin password in CUPS?
- What is Daemon Log: in Linux
- How to split a file in Linux: split, merge
- How to convert DOS to UNIX: Linux, command
- Adding space in mount point: to FSTAB
- Delete lines in Linux: SED, commands
- Restoring Linux: from backup, using Tar
- How to uninstall package: in Linux