The ifconfig command is a very popular tool available on most Linux distros. The “ifconfig” command with no arguments will display all the active interfaces details. Ifconfig Vs IP Command. The full. 15 Useful ifconfig Commands. sudo apt-get install net-tools. The tool we will be focusing on in this article is, and is a Linux command-line utility used to display, configure and manage your network interfaces. How To enable the EPEL Repository on RHEL 8 / CentOS 8 Linux, How to install VMware Tools on RHEL 8 / CentOS 8, How to install the NVIDIA drivers on Ubuntu 18.04 Bionic Beaver Linux, How To Upgrade Ubuntu To 20.04 LTS Focal Fossa, How to install node.js on RHEL 8 / CentOS 8 Linux, Check what Debian version you are running on your Linux system, How to stop/start firewall on RHEL 8 / CentOS 8, How To Upgrade from Ubuntu 18.04 and 19.10 To Ubuntu 20.04 LTS Focal Fossa, Enable SSH root login on Debian Linux Server, How to read and create csv files using Python, How to generate and manage ssh keys on Linux, How to Correctly Grep for Text in Bash Scripts, Bash Advanced Variable Idioms for Case Sensitivity Management, Create redirect and rewrite rules into .htaccess on Apache webserver, How to install Opera web browser on Linux, How to install Chromium web browser on Linux, How to improve Firefox font rendering on Linux, Firefox on Linux - Your connection is not secure. We can do this using the “yum whatprovides” command argument: The output of this command should look similar to this: Loaded plugins: fastestmirror, priorities, universal-hooks, Loading mirror speeds from cached hostfile, * cpanel-addons-production-feed: 208.100.0.204, 5 packages excluded due to repository priority protections, net-tools-2.0-0.24.20131004git.el7.x86_64 : Basic networking tools. # ifconfig bash: /usr/sbin/ifconfig: No such file or directory The new and recommended alternative for examining a network configuration on CentOS Linux is ip command. Update: The networking command ifconfig is deprecated and replaced by ip command (Learn 10 Examples of IP Command) in most Linux distributions. ip command generally available under /bin directory but some Linux os keep is under /sbin directory. ifconfig eth0 Read: bash ifconfig: command not found on CentOS/RHEL 7; Method 2 – Using ip Command. View all the interfaces along with status. For example, open terminal application and type the command: $ sudo dhclient -r Now obtain fresh IP address using DHCP on Linux: ifconfig command is a very old and popular tool used to manage Linux, Unix, BSD systems network. Wrapping Up. That command is ip, and it does a great job of stepping in for the out-of-date ifconfig. That’s All. Using ip route. Install ifconfig on RHEL 8 / CentOS 8. It is used at boot time to set up interfaces as necessary. If you also need to change the Default Gateway used by the network interface, you can use the route command. Display all interfaces, even if down: $ ifconfig -a. Thankfully, there are a handful of tools to help with these configurations. The output will resemble the following:Here, eth0, lo and wlan0 are the names of the active network interfaces on the system. SQL Databases Migration with Command Line, How to List Compiled PHP Modules from Command Line, Select a MySQL Database on Linux via Command Line. You will get two network interfaces 'eth0' and 'eth1'. Method 1: Using ifconfig command The ifconfig command is the most commonly used command for displaying and modifying IP addresses on the system. Your articles will feature various GNU/Linux configuration tutorials and FLOSS technologies used in combination with GNU/Linux operating system. The ifconfig command also used to check the assigned IP address of an server. This post shows how to install packages to make ifconfig working again. Ifconfig was the default network management command line utility for all versions of CentOS through CentOS 6. It attempts to make networking configuration and operation as painless and automatic as possible by managing the primary network connection and other network interfaces, like Ethernet, … Use the following command: [email protected]:~$ ip route show default via 192.168.1.1 dev eth1 proto static 192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.100 metric 1 Using netstat. Once the installation is complete, then run ifconfig to see whether it is available or not. How do I enable and use “ifconfig” Command in CentOS 7 minimal servers? To do that , enter the following command: yum provides ifconfig… By default ifconfig command will be not found in fresh installation centos 7 so we need to install package first to use ifconfig command. Install Ifconfig. ifconfig. The name ifconfig is short for interface configuration. it is most often recommended to move forward with the command that has replaced ifconfig. You could, of course, substitute in whatever values you want. sudo ifconfig eth0 192.168.0.1 netmask 255.255.255.0. This you can do in the following way: ifconfig [network-name] hw [class] [hardware-address] For example: ifconfig eth0 hw ether 70:4d:7b:70:d2:3e. alias ifconfig=/sbin/ifconfig But this is not permanent is just temporary. This article covers “15 Useful “ifconfig” Commands” with their practical examples, that might be very helpful to you in managing and configuring network interfaces in Linux systems. The installation of Ifconfig on CentOS 7 (or any CentOS servers that are missing the utility) is very simple. The -r flag explicitly releases the current lease, and once the lease has been released, the client exits. As we all know, “ifconfig” command is used to configure a network interfaces in GNU/Linux systems. The name “ifconfig” comes from “Interface Configuration”, it is used to check our system’s network interface and we can also use it to change some of the network interface settings. For example to use ip command to display a network configuration run the following: # ip address So the full package name and description is: Installation with yum is just as simple and can be done with the below command: Once the yum installation completes, you can confirm ifconfig is now available by simply typing in the command with no arguments to display the current network interface information: That’s it! By default in CentOS 7 minimal the ifconfig command is not available, and for good reason, it’s considered deprecated and has been replaced by the ip command. 1. eth0 is the first Ethernet interface. ip addr show Sample output: [Some output hidden] Just to confirm, let’s use yum to see which package “provides” the ifconfig utility. [root@node01 ~] # ifconfig - bash : ifconfig : command not found First thought may be, maybe /sbin/ isn’t in my PATH environment variable, but this isn’t the case.