[Linux]Restarting the network interface using command lines
When setting up a network, specially if you need to verify that a DHCP server assigns IP addresses correctly, restarting the network interface using command lines rather than the GUI may be quicker .
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 followingcommand , which restart all the networks services :
/etc/init.d/networking restart
To see your various network interfaces, use the command:
/sbin/ifconfig -a