The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How i ftp a unix file to my local window Nirmal Shell Programming and Scripting 1 03-19-2008 01:02 AM
mount CD from local laptop to UNIX server remotely duke0001 UNIX for Advanced & Expert Users 7 10-31-2007 04:20 PM
Easy way to get local IP address simonb Shell Programming and Scripting 5 11-27-2005 03:06 AM
how to get the list of process running in the server from the local machin n unix ? guhas Shell Programming and Scripting 3 10-04-2005 04:58 PM
Saving of UNIX based e-mail on to local disks rajan9 UNIX for Advanced & Expert Users 4 08-07-2002 02:49 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-04-2005
marty 600 marty 600 is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 36
How do I get the IP address of my local unix box???

Hiya all,

How do I get the IP address of my local unix box???

IPconfig - don't exist
nslookup - only for other boxes....


I have my Fedora Server now on the office network. Can ping others, can get onto internet via web proxy....

Also:

How do I create a Drive Share, so our windows machines can view???


Please advise
Cheers
MArtin
  #2 (permalink)  
Old 04-04-2005
neked neked is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 56
You could try entering the following command:

netstat -in

, this will give you a table of information about all IP interfaces in your box. This will include the loopback interface (usually called lo0) which will have the address of 127.0.0.1, and then you will see the network interfaces (usually called eri0, eri1, etc. according to the number of network cards you have in your box).

be careful to distinguish between the "Net/Dest" IP address, and the actual IP address which is under the "Address" column (the "Address" column is right after the "Net/Dest" column so you will see two IP addresses next to each other, the one you desire is the second one.)
  #3 (permalink)  
Old 04-04-2005
Just Ice's Avatar
Just Ice Just Ice is offline Forum Advisor  
Lights on, brain off.
  
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 637
use ... "ifconfig -a", disregard the lo0 output, and look at the ip address listed right after the word "inet" on the second line ...
Code:
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
	inet 192.168.111.50 netmask ffffff00 broadcast 192.168.111.255
	ether 8:0:20:xx:xx:xx
or look for your box's name in /etc/hosts ...
Code:
root_mybox:/tmp # cat /etc/hosts
127.0.0.1	localhost	
192.168.111.50	mybox	loghost
192.168.111.80  myprinter
root_mybox:/tmp #
mybox has 192.168.111.50 as it's ip address
  #4 (permalink)  
Old 04-05-2005
locustfurnace locustfurnace is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2004
Posts: 232
Quote:
Originally Posted by marty 600
How do I create a Drive Share, so our windows machines can view???
Install and configure, Samba


"Samba is software that can be run on UNIX, Linux. Samba uses the TCP/IP protocol that is installed on the host server. When correctly configured, it allows that host to interact with a Microsoft Windows client or server as if it is a Windows file and print server."

If you are running GNU/Linux and Ms Windows on the same machine, you can create a partition, using the FAT32 filesystem, which can become a shared drive between both OS's.
  #5 (permalink)  
Old 04-05-2005
marty 600 marty 600 is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 36
wow, thanks guys!

I'll give it a go in a bit!
  #6 (permalink)  
Old 04-07-2005
bhargav's Avatar
bhargav bhargav is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2004
Location: USA
Posts: 511
Quote:
Originally Posted by marty 600
Hiya all,

How do I get the IP address of my local unix box???

IPconfig - don't exist
nslookup - only for other boxes....

Code:
nslookup `hostname`
  #7 (permalink)  
Old 04-08-2005
moxxx68's Avatar
moxxx68 moxxx68 is offline
Registered User
  
 

Join Date: Mar 2004
Posts: 301
$/sbin/ifconfig `grep 'inet addr' | grep -v '127.0.0.0'`
had to struggle with this one a little! hope it helps
moxxx68..

Last edited by moxxx68; 04-08-2005 at 04:36 AM..
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:55 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0