Scaling IP Addresses_NAT

download Scaling IP Addresses_NAT

of 22

Transcript of Scaling IP Addresses_NAT

  • 7/28/2019 Scaling IP Addresses_NAT

    1/22

    CCNA Semester 4: WAN Technologies

    Module 1

    SCALING IPADDRESSES

  • 7/28/2019 Scaling IP Addresses_NAT

    2/22

    Objectives

    Discuss characteristics of NAT and PAT

    Explain how to configure NAT and PAT

    Describe the characteristics of DHCP Explain how to configure DHCP

  • 7/28/2019 Scaling IP Addresses_NAT

    3/22

    Table of Content

    1 Scaling networks with Network Address

    Translation and Port Address Translation

    2 Dynamic Host Configuration Protocol

  • 7/28/2019 Scaling IP Addresses_NAT

    4/22

    SCALING NETWORKS WITHNAT AND PAT

  • 7/28/2019 Scaling IP Addresses_NAT

    5/22

    Private addressing

    10.0.0.0 10.255.255.255

    172.16.0.0 172.31.255.255

    192.168.0.0 192.168.255.255

  • 7/28/2019 Scaling IP Addresses_NAT

    6/22

    Introducing NAT and PAT

    Cisco defines the following NAT terms: Inside local address

    Inside global address

    Outside local address

    Outside global address

  • 7/28/2019 Scaling IP Addresses_NAT

    7/22

    Major NAT and PAT features

    Static NAT is designed to allow one-to-onemapping of local and global addresses.

    Dynamic NAT is designed to map a privateIP address to a public address. Any IP

    address from a pool of public IP addresses

    is assigned to a network host.

    Port Address Translation (PAT), mapsmultiple private IP addresses to a single

    public IP address

  • 7/28/2019 Scaling IP Addresses_NAT

    8/22

    Configuring static NAT

    Router(config)# ip nat inside source

    static 10.1.1.2 171.69.68.10

    Router(config)# interface ethernet 0Router(config-if)# ip nat inside

    Router(config)# interface serial 0

    Router confi -if # i nat outside

    Inside host

    10.1.1.2

    Outside host

    Inside interface

    Ip nat inside

    Outside interface

    Ip nat outside

    E0 S0

  • 7/28/2019 Scaling IP Addresses_NAT

    9/22

    Configuring dynamic NAT/PAT

    Define private IP addresses range:Router(config)# access-list 1 permit 10.1.1.0 0.0.0.255

    Define public IP addresses pool:

    Router(config)# ip nat pool cisco 179.9.8.1 179.9.8.14netmask 255.255.255.240

    Establish dynamic source translation:Router(config)# ip nat inside source list 1 pool ciscooverload

    Specify the inside and outside interface.

    InternetE0S0

    10.1.1.2

    10.1.1.3

    10.1.1.1 179.9.8.1

  • 7/28/2019 Scaling IP Addresses_NAT

    10/22

    Verifying PAT configuration

    Clear ip nat translation *

    Clear ip nat translation inside global-iplocal-ip outside local-ip global-ip

    Show ip nat translation

    Show ip nat statistics

  • 7/28/2019 Scaling IP Addresses_NAT

    11/22

    Troubleshooting NAT and PAT

    configuration1. Based on the configuration, clearly define

    what NAT is supposed to achieve. (Da vocu hnh, nh ngha r rng, NAT g c nhim v hon thnh)

    2. Verify that correct translations exist in thetranslation table.

    3. Verify the translation is occurring by using

    show and debug commands.4. Review in detail what is happening to the

    packet and verify that routers have the

    correct routing information to move the

    acket alon with NAT or PAT

  • 7/28/2019 Scaling IP Addresses_NAT

    12/22

    Issues with NAT

    NAT conserves the legally registeredaddressing scheme (NAT bo tn h thng t a ch 1

    cch hp php)

    NAT increases the flexibility ofconnections to the public network (NAT tng tnh

    linh hot ca nhng kt ni n mng Public)

    Consistency of the internal networkaddressing scheme

    NAT increases delay

  • 7/28/2019 Scaling IP Addresses_NAT

    13/22

    Issues with NAT (cont.)

    Cisco IOS NAT does not support thefollowing traffic types:

    Routing table updates

    DNS zone transfers

    BOOTP

    talk and ntalk protocols

    Simple Network Management Protocol(SNMP)

  • 7/28/2019 Scaling IP Addresses_NAT

    14/22

    DHCP

  • 7/28/2019 Scaling IP Addresses_NAT

    15/22

    Introducing DHCP

    Dynamic Host Configuration Protocol(DHCP) works in a client/server mode.

    DHCP enables DHCP clients on an IP

    network to obtain their configurations froma DHCP server.

    A DHCP client is included in most modernoperating systems including the variousWindows operating systems, Novell

    Netware, Sun Solaris, Linux, and MAC

    OS.

  • 7/28/2019 Scaling IP Addresses_NAT

    16/22

    Dynamic addressing: DHCP

    MAC: KnownIP: Unknown

    DHCP DiscoverUDP Broadcast

    DHCP Offer

    UDP Broadcast

    DHCP server

    IP1

    IP2

    IP3

    DHCP Request

    DHCP Ack

    IP Address

    Gateway

    IP of servers

    And more

  • 7/28/2019 Scaling IP Addresses_NAT

    17/22

    Configuring DHCP Specify DHCP pool:

    Router(config)# ip dhcp pool subnet12 Router(dhcp-config)# network 172.16.12.0

    255.255.255.0

    Router(dhcp-config)# default-router 172.16.12.254

    Router(dhcp-config)# dns-server 172.16.1.2 Router(dhcp-config)# netbios-name-server

    172.16.1.3

    Router(dhcp-config)# domain-name cisco.com

    Specify the excluded IP addresses range:

    Router(config)# ip dhcp excluded-address start-ip-address

    end-ip-address

  • 7/28/2019 Scaling IP Addresses_NAT

    18/22

    DHCP relay

    E0: 192.168.1.1/24

    Ip helper-address 192.168.2.254

    E1: 192.168.2.1/24

    IP???

    A

    server: 192.168.2.254

    SRC MAC: MAC A

    DST MAC:FFFF.FFFF.FFFF

    IP SRC: ?

    IP DST: 255.255.255.255

    UD

    P67

    CIADDR: ? GIADDR: ?

    MASK: ? CHADDR:MAC A

    SRC MAC: E1

    DST MAC: MAC

    SERVER

    IP SRC: 192.168.2.1

    IP DST: 192.168.2.254

    UD

    P

    67

    CIADDR: ? GIADDR:

    192.168.1.1

    MASK: ? CHADDR: MAC A

  • 7/28/2019 Scaling IP Addresses_NAT

    19/22

    DHCP relay (cont.)

    E0: 192.168.1.1/24

    Ip helper-address 192.168.2.254

    E1: 192.168.2.1/24

    IP???

    A

    server: 192.168.2.254

    SRC MAC: E0

    DST MAC: MACA

    IP SRC:

    192.168.2.254IP DST: 192.168.1.10

    UD

    P68

    CIADDR: 192.168.1.10 GIADDR:

    192.168.1.1MASK: 255.255.255.0 CHADDR: MAC A

    SRC MAC:MAC

    SERV

    DST MAC: E1

    IP SRC:

    192.168.2.254

    IP DST: 192.168.1.10

    UD

    P

    68

    CIADDR:192.168.1.10 GIADDR:

    192.168.1.1

    MASK: 255.255.255.0 CHADDR: MAC A

  • 7/28/2019 Scaling IP Addresses_NAT

    20/22

    Summary

    Private addresses are for private, internal use andshould never be routed by a public Internet router.

    NAT alters the IP header of a packet so that thedestination address, the source address, or both

    addresses are replaced with different addresses. PAT uses unique source port numbers on the inside

    global IP address to distinguish between translations.

    NAT and PAT may be configured for static translation,

    dynamic translation, and overloading DHCP works in a client/server mode, enabling clients

    to obtain IP configurations from a DHCP server

  • 7/28/2019 Scaling IP Addresses_NAT

    21/22

    Q&A

  • 7/28/2019 Scaling IP Addresses_NAT

    22/22