Solved

Bash: Ifconfig command not found

Posted on 2009-03-31
10
2,706 Views
Last Modified: 2013-12-26
Hi,

I have just downloaded the virtual applicance for groundworks monitor community edition.

I don't want to be restricted to using the console of the machine it's located on - I would like to point the web browser on my machine to the applicance, so need to know it's IP address.

I opened a terminal window and typed ifconfig (which is what I seem to recall as being the linux equivalent to ipconfig) but get told bash: ifconfig: Command not found.

How can I find the IP of my applicance?!?!
0
Comment
Question by:MDWinter
  • 4
  • 2
  • 2
  • +2
10 Comments
 
LVL 19

Accepted Solution

by:
http:// thevpn.guru earned 500 total points
ID: 24027772
use

/sbin/ifconfig

or when you switch to root do

su - root

instead of

su root
0
 

Author Closing Comment

by:MDWinter
ID: 31564772
su - root worked a charm, many thanks!

0
 
LVL 12

Expert Comment

by:Steve
ID: 24027796
you dont need to su to root to run the /sbin/ifconfig

just type it from any prompt and it'll give you the IP information for your active interfaces..

0
 
LVL 19

Expert Comment

by:http:// thevpn.guru
ID: 24027812
@Psycho

on RH or related systems..fedora..centos etc...normally when you switch from a regular user to root ..you will still have the env variables of the regular user this will not include the sbin directory and he wont be able to get ifconfig or any other sbin command to work...


as for your suggestion he tried it ...and it did not work..that is why he did ask in first place. :)
It would work using either sudo..or if you logon as root in the first place..
0
 
LVL 12

Expert Comment

by:Steve
ID: 24027831
no.. he said he just ran 'ifconfig'

i agreed with you that you need to run the /sbin/ifconfig..

you DONT however have to SU to root to run it..

0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 19

Expert Comment

by:http:// thevpn.guru
ID: 24027835
true as well..
0
 
LVL 29

Expert Comment

by:fosiul01
ID: 24027841
@ Hellow Boss shakoush2000
0
 
LVL 19

Expert Comment

by:http:// thevpn.guru
ID: 24027860
Hey Fosiul01 ..you are doing good..great job in the ranking.
0
 
LVL 29

Expert Comment

by:fosiul01
ID: 24027894
hahaah Because you are not here!!

stop answering question!!!
Jock... EE needs you..
0
 

Expert Comment

by:azaad_a
ID: 24727295
On top of what shakous said..Try "locate ifconfig " as root which could give the output of its existence

Rgds
Az
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Utilizing an array to gracefully append to a list of EmailAddresses
When we have a dead host and we lose all connections to the ESXi, and we need to find a way to move all VMs from that dead ESXi host.
Teach the user how to install and configure the vCenter Orchestrator virtual appliance Open vSphere Web Client: Deploy vCenter Orchestrator virtual appliance OVA file: Verify vCenter Orchestrator virtual appliance boots successfully: Connect to the …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now