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
sed to fix view names capri_drm Linux 6 05-15-2008 07:00 PM
how do I view a jpeg? dsstamps UNIX for Dummies Questions & Answers 0 05-14-2008 01:25 PM
cmd to view only directories aarora_98 Shell Programming and Scripting 14 05-08-2006 02:51 PM
DBM View schafferm UNIX for Dummies Questions & Answers 1 08-06-2002 04:18 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-24-2007
blowFish@ubuntu blowFish@ubuntu is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 16
How to view my IP

I run Ubuntu server 7.04, to learn some *nix. I set up LAMP, DNS and FTP but I don't know how to view my ip. now I tried ifconfig but that didnt tell me what I wanted to know.

so by what way can I do this without a gui and a website like ipchicken?
  #2 (permalink)  
Old 06-24-2007
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
What did ifconfig tell you? Can you please quote the output?
  #3 (permalink)  
Old 06-24-2007
blowFish@ubuntu blowFish@ubuntu is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 16
eth0

Link encap:ethern3t
inet addr:192.168.2.2 Bcast: 192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::201:2ff:fe03:405/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU: 1500 Metric:1
...

Hop this is enough.
I have it connected and sharing internet with my mac if that helps
  #4 (permalink)  
Old 06-24-2007
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
Isn't this the IP?

Quote:
Originally Posted by blowFish@ubuntu View Post
eth0
inet addr:192.168.2.2 Bcast: 192.168.2.255 Mask:255.255.255.0
  #5 (permalink)  
Old 06-24-2007
blowFish@ubuntu blowFish@ubuntu is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 16
oops... Thats there because of my router... Haven't gone into net+ study yet so I don't understand how the router manages the IP from my ISP.

Im guessing that the router changes the IP somehow for each computer on the network?
  #6 (permalink)  
Old 06-24-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by blowFish@ubuntu View Post
oops... Thats there because of my router... Haven't gone into net+ study yet so I don't understand how the router manages the IP from my ISP.

Im guessing that the router changes the IP somehow for each computer on the network?
I suggest you read up on

DHCP - this is typically how an ADSL router will allocate addresses

NAT - how the router will change addresses between local and internet domains

DNS - how name mapping works, and that the ADSL router may act as a DNS proxy

Last edited by porter; 06-25-2007 at 01:32 PM..
  #7 (permalink)  
Old 06-25-2007
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
ifconfig shows the actual IP assigned to your interface. So if your router performs NAT, it is natural that you see private IPs on your system. As for the IP address at the router, normally a host in the network will not know about that address at all, because it will be replaced as part of NAT at the router.
Sponsored Links
Closed Thread

Bookmarks

Tags
linux, sendmail, ubuntu

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 06:30 AM.


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