LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-07-2003, 10:47 AM   #1
GomiCowboy
Member
 
Registered: Apr 2003
Location: US
Distribution: Gentoo 2004.1, Ubuntu Hoary (unstable-ish)
Posts: 30

Rep: Reputation: 15
ifconfig/netconfig in Redhat 9 (static IPs)


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.

Thanks.
---Jeremy.
 
Old 09-07-2003, 10:49 AM   #2
lynch
Member
 
Registered: Nov 2000
Location: A Mid-Atlantic state
Distribution: SuSE 8.1,Knoppix 3.2,Mandrake 9.1
Posts: 388

Rep: Reputation: 30
Try being root or typing /sbin/ifconfig.
HTH
lynch
 
Old 09-07-2003, 11:05 AM   #3
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Are you logged-in as root or a normal user ?

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.
Code:
su -
 
Old 09-07-2003, 11:42 AM   #4
GomiCowboy
Member
 
Registered: Apr 2003
Location: US
Distribution: Gentoo 2004.1, Ubuntu Hoary (unstable-ish)
Posts: 30

Original Poster
Rep: Reputation: 15
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.
 
Old 09-07-2003, 12:05 PM   #5
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Yes. It will give you the IP address and more...
 
Old 09-07-2003, 12:52 PM   #6
GomiCowboy
Member
 
Registered: Apr 2003
Location: US
Distribution: Gentoo 2004.1, Ubuntu Hoary (unstable-ish)
Posts: 30

Original Poster
Rep: Reputation: 15
Ok, the /sbin/ifconfig command worked. Anyone know why RH didn't find the command in the search path? Well, anyway, it works, that's all I ask.
 
Old 09-07-2003, 01:11 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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 -".
 
  


Reply



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
Using static ips with a router jclu Linux - Hardware 2 07-31-2005 05:35 PM
IFConfig and static IP Buto Slackware 4 10-21-2004 03:47 PM
ADSL - Routing Static IPs NiM Linux - Networking 1 03-06-2004 06:57 AM
Missing netconfig, ifconfig, etc ... froedi Slackware 9 11-15-2003 08:49 AM
Slackware 8 - no ifconfig or netconfig indy_bob Linux - Software 8 02-20-2002 02:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:50 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration