When do I use the ifconfig command?
The ifconfig command must be used at system startup to define the network address of each interface present on a system. After system startup, it can also be used to redefine an interfaces address and its other operating parameters. The network interface configuration is held on the running system and must be reset at each system restart.
What does ifconfig eth0 up do in Windows 10?
The “ up ” or “ ifup ” flag with interface name ( eth0) activates an network interface, if it is not in active state and allowing to send and receive information. For example, “ ifconfig eth0 up ” or “ ifup eth0 ” will activate the eth0 interface. 5. How to Disable an Network Interface.
How to assign second address in Linux ifconfig?
This is usually a driver name followed by a unit number, for example “eth0” for the first Ethernet interface. If your kernel supports alias interfaces, you can specify them with eth0:0 for the first alias of eth0. You can use them to assign a second address.
Is the ifconfig command deprecated in Linux?
Update : The networking command ifconfig is deprecated and replaced by ip command (Learn 10 Examples of IP Command) in most Linux distributions. 1. View All Network Setting
How does ifconfig display the status of an interface?
If a single interface argument is given, it displays the status of the given interface only. If a single -a argument is given, it displays the status of all interfaces, even those that are “down” (inactive). In all other cases, ifconfig configures an interface according to the options provided.
When do you need to use ifconfig in debugging?
After that, it is usually only needed when debugging, or when system tuning is needed. If no arguments are given, ifconfig displays the status of the system’s active interfaces. If a single interface argument is given, it displays the status of the given interface only.