

How To Install Ifconfig on RHEL 8 / CentOS 8 Linux
source link: https://computingforgeeks.com/how-to-install-ifconfig-on-rhel-8-centos-8-minimal/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Do you get 'Ifconfig' Command Not Found
in your RHEL 8 / CentOS 8 minimal server installation?. The minimal installation of RHEL 8 / CentOS 8 doesn’t come with the ifconfig command. See RHEL 8 New Features
Ifconfig is a command line tool used to configure the kernel-resident network interfaces. With ifconfig
you can configure a network interface, display all interfaces which are currently available, even if down.
NOTE: The ifconfig
program is obsolete! For replacement check ip addr
and.ip link
commands.
On a Minimal installation of RHEL 8 / CentOS 8, the ifconfig command is provided by the packagenet-tools
, which is Basic networking management tools group package.
$ sudo yum provides ifconfig Updating Subscription Management repositories. Updating Subscription Management repositories. Last metadata expiration check: 21 days, 0:07:56 ago on Fri 30 Nov 2018 03:57:18 AM EST. net-tools-2.0-0.51.20160912git.el8.x86_64 : Basic networking tools Repo : @System Matched from: Filename : /usr/sbin/ifconfig net-tools-2.0-0.51.20160912git.el8.x86_64 : Basic networking tools Repo : rhel-8-for-x86_64-baseos-beta-rpms Matched from: Filename : /usr/sbin/ifconfig
Install ifconfig on RHEL 8 / CentOS 8
To get ifconfig command, install the net-tools package:
sudo yum -y install net-tools
Ifconfig Usage Cheat sheet
1.
Display network settings of the first ethernet adapter
$ ifconfig wlan0
$ ifconfig eth0
2.
Display all interfaces, even if down:
$ ifconfig -a
3.
Take down / up a network adapter:
$ ifconfig wlan0/eth0 {up|down}
4.
Set a static IP and netmask:
$ ifconfig eth0 192.168.1.100 netmask 255.255.255.0
5.
You may also need to add a gateway IP
$ route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1
6.
Change MAC address
$ ifconfig eth0 hw ether AA:BB:CC:DD:EE:FF
7.
Enable Promiscuous Mode
ifconfig eth0 promisc
ifconfig eth0 -promisc
8.
Add New Alias to Network Interface
ifconfig eth0:0 172.16.25.127
ifconfig eth0:0 down
Now you have ifconfig
on your RHEL 8 / CentOS 8 server.
More on CentOS 8:
Enable PowerTools Repository on CentOS 8 / RHEL 8
Install Puppet 6.x Master / Server on CentOS 8 | RHEL 8
Setup Mail Server on CentOS 8 With Postfix, Dovecot, MySQL and RoundCube
Recommend
-
8
How To Install Java 8 on CentOS 8How can I install Java 8 on CentOS 8 / RHEL 8?. On Red Hat Enterprise Linux (RHEL) 8, two major versions of Java are available – Java 11 and Java 8. Our last article addressed the installation of
-
10
Install MySQL 5.7 on CentOS 8Search ComputingForGeeksAre you looking for a guide to help you install MySQL 5...
-
18
Install Java 11 (OpenJDK 11) on RHEL 8This article will help you to install Oracle Java 11 on RHEL 8 / CentOS 8 / Rocky Linux 8. Java 11 is a long-term support (LTS) release which was made available to the General public on 25 September 2018...
-
11
Install JBoss EAP 7.x on CentOS 8|RHEL 8|Rocky Linux 8This guide aims to demonstrate how to install JBoss EAP 7.x on CentOS 8|RHEL 8|Rocky Linux 8. But before we dive into the nub of this matter, we will elucidate and get to know what JBoss E...
-
3
JIRA is a project management tool developed by Atlassian. It is also used for issue tracking and bug tracking related to your software development and other Projects. This guide will walk you through the installation Jira on CentOS 8 / RHEL 8...
-
30
Install GLPI on CentOS 8|RHEL 8|Rocky Linux 8How do I Install GLPI on CentOS 8|RHEL 8|Rocky Linux 8 Linux system?. GLPI is a free and open source IT service management (ITSM) tool for planning and managing Assets in IT operations. With GLPI y...
-
9
Install Temurin OpenJDK 17 on CentOS 7|RHEL 7|Oracle Linux 7Java is one of the highly used programming languages in the world. AdoptOpenJDK, also known as Eclipse Temurin is an open-source Java found...
-
17
How To Install KVM on RHEL 8Search ComputingForGeeksHow to install KVM on RHEL 8 / CentOS 8?. This guide wil...
-
8
Install Node.js 18 on CentOS 8|RHEL 8|Rocky Linux 8We all know JavaScript as a language to write once and run anywhere. Node.js is a popular programming language mainly because it uses the JavaScript as the main application to create new appl...
-
13
Install KVM on CentOSThis guide will cover the full installation of KVM hypervisor and its management tools on CentOS 7/8, Ubuntu 20.04/18.04/16.04, Debian 10/9, SUSE Linux Enterprise Server 12 and Arch Linux. This list of Linux sys...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK