Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi all,
I am running redhat 9 and I am trying to determine my IP address so that friends of mine can find my computer on the network (file sharing and such). I've tried running ifconfig and netconfig but both commands result in this:
[root@localhost /]# ifconfig eth0
bash: ifconfig: command not found
[root@localhost /]# netconfig eth0
bash: netconfig: command not found
I did one of those, "what's my IP" on google but what I need is the internal IP address of my computer (I'm on a college campus). Back in the day with windows I just ran the netstat command or was it winpcfg. Whatever....is there something similar that I can use in RH9? I figured it'd be these two commands but since they don't seem to work, I'm kind of at a loss. By the way, the campus has static IPs determined by the room that you live in, but the computer department has enough to do with lost passwords so I kind of want to figure it out on my own.
By default, /sbin is not part of a normal user's available paths.
So like lynch mentioned, you will have to type in the full path (/sbin/ifconfig)
or add /sbin to the user's available paths
or login as root using the su command.
Hey,
Yes I was logged in as root, but still to no avail. When I finish this awefully boring French Lit, I'll try /sbin/ifconfig and let you know how it went. By the by, will that in fact generate the needed information?
---Jeremy.
When you login as root with "su" it doesn;t load roots default paths which includes /sbin. If you want to su root and start a new bash session including loading roots path then use "su -".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.