How do you look active network interfaces on Linux box?
Two commands that help to view active network connections are:
ifconfig and iwconfig.
ifconfig
ifconfig displays the currently active network interfaces on the box. iwconfig is used to display wireless interfaces. Both commands are also used to configure a network interface.
$ ifconfig
$ iwconfig
To learn more about the commands use the following:
$ man ifconfig
$ man iwconfig
If you are using a wireless adapter you can use iwconfig to view the wireless connections. eth0 is the dedicated network interface.
Taking down and up
We can bring down and bring up a network connection using this command. For example, to bring down the connection, we can use the following command:
$ ifconfig eth0 down
To bring up the network connection
$ ifconfig eth0 up