no "ifconfig", how do I find out what IP address I was assigned?
FedoraThis forum is for the discussion of the Fedora Project.
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.
no "ifconfig", how do I find out what IP address I was assigned?
Sorry, a bit of a stupid question, but since "ifconfig" seems to not be present, how do I find out what IP address the DHCP server assigned me?
I tried going into hat|system settings|network, but it doesn't actually say what my IP is (least, not anywhere I could find it!).. kinda seems like it would be a good place to put it, no?
oh well.. thanks for any help.
Click here to see the post LQ members have rated as the most helpful post in this thread.
Actually ifconfig is installed on Fedora Core 2.
You have to do a"su -" to login is as superuser.
Just doing a "su" without the "-" will not give you access to it.
Do a "su -" and enter the root password when prompted.
Then type "if" and hit the tab key to display all executable files that start with "if"
Distribution: Debian ("jessie", "squeeze"), Linux Mint (Serena), XUbuntu
Posts: 221
Rep:
You don't need to su! This is another Linux path gotcha! The full command is
/sbin/ifconfig. /sbin/ is not in the default search path for users, but only for root. THAT's
why su'ing works. You can run this without su'ing if include the /sbin.
Originally posted by bluester Actually ifconfig is installed on Fedora Core 2.
You have to do a"su -" to login is as superuser.
Just doing a "su" without the "-" will not give you access to it.
Do a "su -" and enter the root password when prompted.
Then type "if" and hit the tab key to display all executable files that start with "if"
I hope this helps!
Thanks! Now I need to look up what the heck "su -" does that's different from "su"... certainly just "su" doesn't work like it worked in other distributions...
I would still contend that the "Network" section of "System Settings" would be a convenient place in the gui maze (using gnome) to put the current IP address.
Thanks for the help! Off to learn what "su -" is...
edit: spelling and
"su -" just seems to be
-, -l, --login
make the shell a login shell
which doesn't make too much sense to me... I wonder what the distinction of being a "login shell" is-- running .profile and .bash type stuff? If so, I wonder if other distributions have "su" aliased to "su -" since just doing "su" in the past was enough to get ifconfig to work.
hmmm... thanks again..
Last edited by clausawits; 07-11-2004 at 09:43 AM.
when using su, the - following the command just inherits the environment of the subsitute user. without it, su root just gets your root but keeps your old enviroment settings
I found tis thread looking for the same info, and after a little investigating found that net-tools have been deprecated in the newer Linux's. Passing this along in case others have the same question.
The ifconfig cmd has been replaced with ip. To list an grep the ip for an interface use this now, for example -
ip address | grep eth0 | awk '{ print $2 }'
Use ip --help or man ip for more info on the ip cmd.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.