When do I need to use ifconfig in Linux?

When do I need to use ifconfig in Linux?

Ifconfig 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. If no arguments are given, ifconfig displays the status of the currently active interfaces.

How to assign IP address in ifconfig command?

To assign an IP address to an specific interface, use the following command with an interface name (eth0) and ip address that you want to set. For example, “ ifconfig eth0 172.16.25.125 ” will set the IP address to interface eth0. [ root@tecmint ~]# ifconfig eth0 172.16.25.125 7.

What does ifconfig do if no argument is given?

If no arguments are given, ifconfig displays the status of the currently active interfaces. 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. Otherwise, it configures an interface.

How to configure network interface using ifconfig?

Using interface name ( eth0) as an argument with “ ifconfig ” command will display details of specific network interface. 4. How to Enable an Network Interface 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.

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

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.