network ipconfig - ghdrako/doc_snipets GitHub Wiki
ipconfig
The status of all active network interfaces can be seen using the following command:-
$ ifconfig
For listing all interfaces currently available, whether up or down, use the -a flag. like this:
$ ifconfig -a
For assigning an IP address to an interface, run the following command:
$ sudo ifconfig eth0 195.167.54.6 netmask 255.255.255.0
For activating a network interface, use the following command:
$ sudo ifconfig up eth0
For deactivating or shutting down a network interface, run the following command:
$ sudo ifconfig down eth0