LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 07-10-2004, 10:00 PM   #1
clausawits
Member
 
Registered: Jun 2001
Posts: 128

Rep: Reputation: 16
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.
 
Old 07-10-2004, 10:53 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Did you try netstat -n, you might want to set up an outside connection first (web, ftp, whatever).

Might give you a starting point to search the files (/etc ??) it could be stored in.

Last edited by druuna; 07-10-2004 at 10:54 PM.
 
Old 07-10-2004, 11:08 PM   #3
bluester
LQ Newbie
 
Registered: Dec 2002
Location: USA
Distribution: Debian
Posts: 24

Rep: Reputation: 15
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!
 
Old 07-11-2004, 04:40 AM   #4
pcardout
Member
 
Registered: Jun 2003
Location: Socorro, New Mexico
Distribution: Debian ("lenny", "squeeze"), Ubuntu ("karmic", "oneiric")
Posts: 214

Rep: Reputation: 24
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.
 
Old 07-11-2004, 09:37 AM   #5
clausawits
Member
 
Registered: Jun 2001
Posts: 128

Original Poster
Rep: Reputation: 16
Quote:
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.
 
Old 07-11-2004, 12:52 PM   #6
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,896

Rep: Reputation: 73
great question and answers - always wondered myself!

Just wondering - why is there a difference between su & su -?
 
Old 07-11-2004, 04:07 PM   #7
archdev
Member
 
Registered: May 2004
Location: chicago and cincinnati
Distribution: fedora
Posts: 134

Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
tying "dhcpcd" into "ifconfig" up and down Riddick Linux - Software 8 09-10-2005 07:14 PM
Boot now Hangs @ "GRUB" How do I find Stage 2's Address??? Supafast Linux - Hardware 1 07-06-2005 09:55 PM
Can't install "glibmm" library. "configure" script can't find "sigc++-2.0&q kornerr Linux - General 4 05-10-2005 02:32 PM
difference between "Web server local URL" and "IPv4 address"? kpachopoulos Linux - General 2 09-17-2004 01:30 PM
"host" ok, but "ping" can't find ip address hardigunawan Linux - Networking 2 05-16-2002 05:41 PM


All times are GMT -5. The time now is 01:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration