Solved

Bash: Ifconfig command not found

Posted on 2009-03-31
10
2,714 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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
 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…

777 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