Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ifconfig invalid command? 1

Status
Not open for further replies.

Faded

Programmer
Feb 6, 2002
78
CA
Hey!

I am using DHCP to obtain an ip address, and I want to know what my machine address is as well as the address that the DHCP server has (from the isp). I tried to use ifconfig and traceroute and am getting invalid command errors. What can I do to resolve this?

Thanks, Faded
 
Hi,

They are probably just not in your PATH so use the full path as the command instead - e.g. :

$ /sbin/ifconfig

$ /usr/sbin/traceroute

Those are normal redhat paths - others may vary. Also, 'traceroute' comes in a rpm of the same name so you may have to install that if its not installed already - check with :

$ rpm -q traceroute

You can also look for the location of those programs via the locate command :

$ locate ifconfig

(etc.)

The commands given in the post above are the equivalents on Windows boxes.


Hope this helps

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top