Lammle.com
  • Instructor-Led Training
    • Browse by Course
      • All Courses
      • CompTIA Courses
      • CiscoŽ Courses
      • Microsoft Courses
      • Wireless Courses
      • IT & Security Courses
      • Attend Online
    • Browse by Date
    • Browse by City
    • Deals and Discounts
      • Spring Specials
      • From CCENT to CCNA in 2 Weeks
      • From CCNA to CCNP in 3 Weeks
      • Corporate Solutions
      • Government Solutions
        • Government Solutions
        • GSA Pricing
      • Recent Newsletters
    • Corporate Solutions
    • Government Solutions
      • Government Solutions
      • GSA Pricing
    • Testimonials
    • Internetworking Salary Survey
  • Locations
    • Atlanta
    • Austin
    • Chicago
    • Dallas/Fort Worth
    • Denver
    • Durham
    • Glendale
    • Houston
    • Live Online Only
    • Los Angeles
    • New Hampshire
    • New York
    • Orlando
    • Raleigh
    • San Diego
    • San Francisco
    • Santa Rosa
    • Washington D.C.
    • England
    • Germany
    Locations
  • Self-Paced Learning
    • Online Live Training
    • E-Learning
    • Online CCNA Video Training
    • Practice Questions
    • DVD and Audio (Lammle Press)
    • Books
  • Blog
  • Forum
  • GlobalNet Consulting
    • Overview
    • Experience
    • Our Team
    • Methodology
    • Projects
    • Contact Us
  • About
    • About Todd Lammle
    • About GlobalNet Training & Consulting
      • About GlobalNet Consulting
    • Student Complaint Policy
    • Terms of Service
      • Privacy Policy
      • Why was my account disabled?
  • Contact
    • Feedback Form
    • Site Map
Home Forum

Official Lammle User Forum


Go Back   Lammle Forum > Cisco® CCNA > TCP / IP
Reload this Page Public and Private IP
Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 06-28-2009, 03:27 AM
ngoc_pbn ngoc_pbn is offline
Junior Member
 
Join Date: Jun 2009
Posts: 10
Default Public and Private IP

Hi all!
I have one question, I need to your help.
Question : A LAN have some host and one modem ( router) is provided one IP address by ISP then use NAT to provide private IPs to host. So when host in other LAN want communicate one host in this LAN, it will use IP address is provide by ISP or use private IP of host.
Explain me for detail, pelase!!!

Tks
Ngoc_pbn
Reply With Quote
ngoc_pbn
View Public Profile
Send a private message to ngoc_pbn
Find all posts by ngoc_pbn
  #2  
Old 06-28-2009, 11:22 AM
lildeezul lildeezul is offline
Senior Member
 
Join Date: Mar 2008
Location: Winston Salem, NC
Posts: 432
Send a message via AIM to lildeezul
Default

the lan traffic will only be translated if its going egress out of the outside interface (pointing to sevice provider).

if the lan wants to communicate with another lan, (different subnetworks, same enterprise) then no translation will be necessary. But if a lan somewhere across the world wants to communicate over the internet, then their address will be translated, and your addresses will be translated. and the session will be seen as the translated address.
__________________
Cisco---------------------- CompTIA
-CCNA ----------------------Security +
-CCNP (BSCI,BCMSN,ISCW)
Reply With Quote
lildeezul
View Public Profile
Send a private message to lildeezul
Find all posts by lildeezul
  #3  
Old 06-28-2009, 11:45 AM
gabrielshorn gabrielshorn is offline
Senior Member
 
Join Date: Jul 2008
Posts: 211
Default

It uses the public address provided by the ISP.

On most NATs, though, the host on the local LAN has to communicate with the remote host first. This creates a connection that the router remembers. When it receives return communication from the remote host on a specific port, it passes the data to the host inside the LAN. You can configure a NAT so that a remote host can initiate communication with a host on the local LAN. It just requires a little additional configuration where you tell the router to allow communication on a specific, external port to map to a host and port on the LAN.
Reply With Quote
gabrielshorn
View Public Profile
Send a private message to gabrielshorn
Find all posts by gabrielshorn
  #4  
Old 06-29-2009, 05:21 AM
Fuzz Fuzz is offline
Cisco Veteran
 
Join Date: Nov 2008
Location: Birmingham, UK
Posts: 1,236
Default

No, it uses the private address. There is no need to use the public address as it is not crossing the modem to outside. There is perhaps only one public address assigned, so how would a host on the inside LAN know which machine was being refferenced?

Host to host inside the same internetwork (private) always use private addresses. They only use the public IP address when translated. In fact, they don't actually use this address, the NAT router uses it as a reference so that outside devices can communicate to different hosts on the inside. The hosts themselves have no idea about NAT or public addresses, it's completely transparent to them.
__________________
Comptia: Network+, Server+; Cisco: CCENT, CCNA, CCNP; Microsoft: 70-291
Currently studying: CCNA Security
Follow my CCNP progress with study notes on my blog: http://beyondccna.blogspot.co.uk/
Reply With Quote
Fuzz
View Public Profile
Send a private message to Fuzz
Find all posts by Fuzz
  #5  
Old 06-29-2009, 12:59 PM
gabrielshorn gabrielshorn is offline
Senior Member
 
Join Date: Jul 2008
Posts: 211
Default

I think there's some misunderstanding about the question. I interpreted ngoc's question to be "what IP does a remote host use to communicate with a host on a private LAN that is behind a NAT?"

I tried to "reader's digest" my reply too much. A host on the local, NAT'd LAN communicates with a remote host using the remote IP address. However, the remote host never sees the private address of the local host in the packets it receives. The NAT router strips those out of packets bound for the remote host, replacing both the source host and private IP with the public IP and a port that the router then stores in it's NAT translation table. You can see what the router is doing by issuing the "show ip nat translation" on the router.

The remote host returns data using the public IP address and port of the remote system listed in the IP header of the packets it received.

When the router receives return traffic from the host, it looks up the local port in its NAT translation table, finds the "inside local" address and port of the local host, puts that IP and port into the IP header destination info, and passes it to the internal interface to be sent to the host on the LAN.

Is this clearer?
Reply With Quote
gabrielshorn
View Public Profile
Send a private message to gabrielshorn
Find all posts by gabrielshorn
  #6  
Old 06-29-2009, 02:46 PM
Fuzz Fuzz is offline
Cisco Veteran
 
Join Date: Nov 2008
Location: Birmingham, UK
Posts: 1,236
Default

You may be right in his question there, I took LAN to LAN to mean within the same enterprise internetwork. He may have meant between LANs from different enterprises.
__________________
Comptia: Network+, Server+; Cisco: CCENT, CCNA, CCNP; Microsoft: 70-291
Currently studying: CCNA Security
Follow my CCNP progress with study notes on my blog: http://beyondccna.blogspot.co.uk/
Reply With Quote
Fuzz
View Public Profile
Send a private message to Fuzz
Find all posts by Fuzz
  #7  
Old 06-30-2009, 06:01 AM
ngoc_pbn ngoc_pbn is offline
Junior Member
 
Join Date: Jun 2009
Posts: 10
Default

Thanks all so much!
With your help I understood my problem.
Reply With Quote
ngoc_pbn
View Public Profile
Send a private message to ngoc_pbn
Find all posts by ngoc_pbn
Reply

Bookmarks
  • Submit Thread to Digg Digg
  • Submit Thread to del.icio.us del.icio.us
  • Submit Thread to StumbleUpon StumbleUpon
  • Submit Thread to Google Google
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Display Modes
Linear Mode Linear Mode
Hybrid Mode Switch to Hybrid Mode
Threaded Mode Switch to Threaded Mode

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

Forum Rules
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Network+ Study Guide errata? kristini Exams 49 04-14-2010 03:44 PM
"encapsulation failed" incomplete ARP Ray_Bcomplex Internetworking 10 03-06-2010 08:03 AM
Can I use private IP addresses between leased lines?? Pramod.purohit Remote Access 2 02-09-2010 08:20 PM
How to NAT from Public IP to Private IP sauravshree Network Address Translation 7 11-12-2009 09:02 AM
Private IP addresses comatose TCP / IP 2 02-27-2009 09:40 AM


All times are GMT -5. The time now is 11:37 PM.

Contact Us - Lammle.com - Archive - Top

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.

CCDA, CCDP, CCIE, CCIP, CCNA, CCNP, Cisco, Cisco IOS, Cisco Systems, the Cisco Systems logo, and Networking Academy are registered trademarks or trademarks of Cisco Systems, Inc. and/or its affiliates in the U.S. and certain other countries. All other trademarks mentioned in this document or Web site are the property of their respective owners. The content of this website is the copyrighted property of Lammle.com.
© 2013 Lammle.comPrivacy Policy