LinuxQuestions.org
Review your favorite Linux distribution.
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 04-01-2003, 03:51 PM   #1
nilbog
LQ Newbie
 
Registered: Apr 2003
Posts: 9

Rep: Reputation: 0
dhcp assigned address


i'm a new newbie. this question will make this obvious.

i have redhat 8.0, i am set to recieve an ip address from a dhcp server. where do i go to see the ip address that has been assigned to me? (e.g. ipconfig)
 
Old 04-01-2003, 03:55 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Only one letter different from windoze - "ifconfig"
 
Old 04-01-2003, 05:06 PM   #3
nilbog
LQ Newbie
 
Registered: Apr 2003
Posts: 9

Original Poster
Rep: Reputation: 0
when i try to run ifconfig from the bash shell it tells me "command not found" do i need to install this utility?
 
Old 04-01-2003, 08:11 PM   #4
bastard23
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 275

Rep: Reputation: 30
nilbog,
It is not in your path, try '/sbin/ifconfig'. The "system binaries" (/sbin or /usr/sbin) are not normally in a regular users' $PATH. Try 'echo $PATH' to see yours. FYI, It is usually in the root's path though, use 'su -' to switch to the root user. (the dash on the su command reinitialized the enviroment for root, which includes the $PATH variable.)

Another way to find commands is to use locate or find.
'locate ifconfig|more'
or
'find / -name ifconfig'
The find method actually searches the filesystem, so it takes longer. locate uses a database. Use man (manual pages) to find more info (i.e. ;man find').

I usually change the path, on my logins.

Hope that helps,
chris
 
Old 04-02-2003, 11:17 AM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Thats good advice - you could also add that to update the locate database you run "updatedb" (can be put in a cron job).

Another command for finding specific programs is whereis. "whereis ifconfig" shows "ifconfig: /sbin/ifconfig /usr/share/man/man8/ifconfig.8.gz"
 
  


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
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 AM
How can I tell my current IP address? (DCHP assigned) deanbrown3d Linux - Newbie 3 08-17-2004 03:24 PM
how would you find the vendor assigned amc address bhupee Linux - Newbie 3 07-04-2004 11:10 AM
What's my DHCP assigned IP and where is it? Buckyjunior Linux - Networking 7 02-27-2004 01:29 PM
How to find out my IP address on a DHCP IP Assigned machine? simonh Linux - Networking 2 12-10-2002 05:49 AM

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

All times are GMT -5. The time now is 05:56 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