On Redhat system's the ifconfig command to display system IP address has become obsolete. Currenlty to display an IP address on your RHEL 7 system enter a followng command:
# ip addr show
2: enp0s3:  mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 08:00:27:15:38:b7 brd ff:ff:ff:ff:ff:ff
    inet 10.1.1.110/8 brd 10.255.255.255 scope global enp0s3
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fe15:38b7/64 scope link 
       valid_lft forever preferred_lft forever
From the above output we can see that the network interface name is enp0s3 and the configured IP address for this interface is 10.1.1.110 with mask 255.0.0.0 and broadcast IP address is 10.255.255.255.


Free Linux eBooks

Do you have the right skills?

Our IT Skills Watch page reflects an up to date IT skills demand leaning towards the Linux and Unix environment. We have considered a number of skills and operating systems.

See the result...

Linux Online Training

Learn to run Linux servers and prepare for LPI certification with Linux Academy. 104 available video lessons with PDF course notes with your own server!

Go to top