cancel
Showing results for 
Search instead for 
Did you mean: 
Trevor
Commander Commander
Commander
  • 849 Views

Display IP Address

We all know that we can dsiplay IP address information with our
ip command:

           $  ip  a  s

We know this command displays the IP address assigned to all logical and physical interfaces, along with some other wonderful information for each interface.

However, if you want to display just the IP address for the physical interface, here's a command that doesn't get a lot of publicity:

           $  hostname  -I  
            - that's an uppercase letter I, not an uppercase L

 

Nothing earth shattering, but proof that the learning never stops!

 

 

 

Trevor "Red Hat Evangelist" Chandler
Labels (3)
5 Replies
Jdrose
Cadet
Cadet
  • 838 Views

I am still new when it comes to anything Linux but I have a question can you use the host -I command to help figure if the is an issue with configuration or would it just be easier to use a nslookup?

Trevor
Commander Commander
Commander
  • 837 Views

Hello Jdrose,

Every Linux guru was new once upon a time!!!!

May I get you to restate your question, with a little bit more specificity!

 

 

Trevor "Red Hat Evangelist" Chandler
0 Kudos
Jdrose
Cadet
Cadet
  • 771 Views

If i am trying to troubleshoot a connection or DNS error would using hostname -l be a good starting point or is there a different command I should try first? Hopefully this one makes more sense.

0 Kudos
Blue_bird
Starfighter Starfighter
Starfighter
  • 804 Views

Thanks for sharing..!

Trevor
Commander Commander
Commander
  • 791 Views

Thank you Blue_bird for viewing!!!

Trevor "Red Hat Evangelist" Chandler
0 Kudos
Join the discussion
You must log in to join this conversation.