The ifconfig command is used to configure the kernel-resident network interfaces. It is used at boot time to set up interfaces as necessary. After that, it is usually only needed when debugging or when system tuning is needed.
$ sudo ifconfig eth0 down
$ sudo ifconfig eth0 up
$ ifconfig eth0
$ ifconfig