• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

FAQ on CentOS 7 / RHEL 7 : Alternate of ifconfig command

August 9, 2014 by Sharad Chhetri Leave a Comment

Question : Recently CentOS 7 and RHEL 7 is released. After doing minimal installation, I have not find ifconfig command. Do we have alternate of ifconfig command ?
Let me describe the problem –
After installation, I have to connect my system to internet. But ifconfig command is not found . I read your previous article to get ifconfig command, but requires internet for yum command. Can you help me here ?

Answer: Yes, in our last post we have given solution in case ifconfig command is not found. There is one more alternate command of ifconfig which will help you to get IP Address details of system. As well as it will also show the ethernet device name.

Note: The below given command also work on other Linux distro.

ip addr show 

Below is the reference from our test system :

[root@localhost ~]# ip addr show
1: lo:  mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp0s3:  mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 08:00:27:b3:14:0b brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic enp0s3
       valid_lft 67547sec preferred_lft 67547sec
    inet6 fe80::a00:27ff:feb3:140b/64 scope link 
       valid_lft forever preferred_lft forever
3: enp0s8:  mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 08:00:27:60:ca:d9 brd ff:ff:ff:ff:ff:ff
    inet 192.168.56.101/24 brd 192.168.56.255 scope global dynamic enp0s8
       valid_lft 800sec preferred_lft 800sec
    inet6 fe80::a00:27ff:fe60:cad9/64 scope link 
       valid_lft forever preferred_lft forever
[root@localhost ~]#

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. ifconfig command not found on CentOS 7
  2. ss command : alternate of netstat
  3. Run cron job alternate week day
  4. semanage command not found in CentOS 6 and RHEL 6
  5. Allow only members of Wheel group to use su command on RHEL/CentOS
  6. Solution : semanage command not found
  7. smbpasswd command not found on CentOS 7 and RHEL 7
  8. create a system account below uid 500 on RHEL/CentOS/Scientific Linux
  9. netstat command not found on CentOS 7 and RHEL 7 (Red Hat Enterprise Linux 7)
  10. Install libjpegtran by using yum command in CentOS 6.x

Filed Under: Linux Commands Tagged With: linux command

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

Install and optimize the png file by using optipng

Edit the crontab without using crontab -e

How to change login banner message in GUI mode in CentOS 6 or above version.

How to install korn shell ksh in Linux

Virtual Machine inaccessible status on VirtualBox 4.3

Non interactive ,without typing password do ssh to Server : By sshpass

How to change hostname in Ubuntu 12.04 and 12.10 without system restart

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy