You are on page 1of 53

Implementing IP

Addressing Services

Accessing the WAN – Chapter 7

ITE I Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 1
Objectives
 Configure DHCP in an enterprise branch network
 Configure NAT on a Cisco router
 Configure new generation RIP (RIPng) to use IPv6

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 2
Configure DHCP in an Enterprise Branch
Network
 The function of DHCP in a network

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 3
Configure DHCP in an Enterprise Branch
Network
 How DHCP dynamically assigns an IP address to a
client

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 4
Configure DHCP in an Enterprise Branch
Network
DHCP includes three different address allocation mechanisms to
provide flexibility when assigning IP addresses:
 Manual Allocation: The administrator assigns a pre-allocated IP
address to the client and DHCP only communicates the IP address
to the device.
 Automatic Allocation: DHCP automatically assigns a static IP
address permanently to a device, selecting it from a pool of
available addresses. There is no lease and the address is
permanently assigned to a device.
 Dynamic Allocation: DHCP automatically dynamically assigns, or
leases, an IP address from a pool of addresses for a limited period
of time chosen by the server, or until the client tells the DHCP
server that it no longer needs the address.

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 5
Configure DHCP in an Enterprise Branch
Network
 The differences between BOOTP and DHCP

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 6
Configure DHCP in an Enterprise Branch
Network
 Configure a DHCP server

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 7
Configure DHCP in an Enterprise Branch
Network
 Configure a DHCP server

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 8
Configure DHCP in an Enterprise Branch
Network
 Configure a DHCP server

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 9
Configure DHCP in an Enterprise Branch
Network
 Configure a DHCP server

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 10
Configure DHCP in an Enterprise Branch
Network

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 11
Configure DHCP in an Enterprise Branch
Network
 Configure a Cisco router as a DHCP client

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 12
Configure DHCP in an Enterprise Branch
Network
 Configure a Cisco router as a DHCP client

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 13
Configure DHCP in an Enterprise Branch
Network
 DHCP Relay can be used to configure a router to relay
DHCP messages when the server and the client are not
on the same segment

Windows clients have a feature called Automatic Private IP Addressing (APIPA):


automatically assign itself an IP address in the 169.254.x.x range
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 14
Configure DHCP in an Enterprise Branch
Network
 Configure a Cisco router as a DHCP client using SDM

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 15
Configure DHCP in an Enterprise Branch
Network
 Troubleshoot a DHCP configuration

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 16
Configure NAT on a Cisco Router
 The operation and benefits of using private and public
IP addressing

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 17
Configure NAT on a Cisco Router
 Network Address Translation (NAT)

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 18
Configure NAT on a Cisco Router
 NAT Terminology

•Inside local address - most likely an RFC 1918 private address


•Inside global address – IP public address that the inside host is given
when it exits the NAT router.
•Outside global address - Reachable IP address assigned to a host on the
Internet.
•Outside local address - The local IP address assigned to a host on the
outside network. In most situations, this address will be identical to the outside
global address of that outside device.
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 19
Configure NAT on a Cisco Router
 Features of NAT and NAT overload

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 20
Configure NAT on a Cisco Router
 Features of NAT and NAT overload

NAT overloading - sometimes called Port Address Translation or PAT) maps


multiple private IP addresses to a single public IP address or a few addresses.
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 21
Configure NAT on a Cisco Router
Differences Between NAT and NAT Overload
•NAT generally only translates IP •NAT overload modifies both the
addresses on a 1:1 correspondence private IP address and port number
between publicly exposed IP of the sender. NAT overload
addresses and privately held IP chooses the port numbers seen by
addresses. hosts on the public network.
•NAT routes incoming packets to •NAT overload, there is generally
their inside destination by referring only one or a very few publicly
to the incoming source IP address exposed IP addresses.
given by the host on the public •Incoming packets from the public
network. network are routed to their
destinations on the private network
by referring to a table in the NAT
overload device that tracks public
and private port pairs. This is called
connection tracking.

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 22
Configure NAT on a Cisco Router
 The advantages and disadvantages of NAT

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 23
Configure NAT on a Cisco Router
 Configure static NAT to conserve IP address space in a
network

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 24
Configure NAT on a Cisco Router
 Configure static NAT

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 25
Configure NAT on a Cisco Router
 Configure dynamic NAT to conserve IP address space
in a network

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 26
Configure NAT on a Cisco Router
 Configure dynamic NAT

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 27
Configure NAT on a Cisco Router
 Configure NAT Overload to conserve IP address space
in a network

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 28
Configure NAT on a Cisco Router
 Configure NAT Overload

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 29
Configure NAT on a Cisco Router
 Configure NAT Overload with a pool of public address

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 30
Configure NAT on a Cisco Router
 Configure port forwarding

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 31
Configure NAT on a Cisco Router
 Verify and troubleshoot NAT and NAT overload
configurations

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 32
Configure NAT on a Cisco Router
 Verify and troubleshoot NAT and NAT overload
configurations

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 33
Configure NAT on a Cisco Router
 Verify and troubleshoot NAT and NAT overload
configurations

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 34
Configure New Generation RIP (RIPng) to
use IPv6
 IPv6: long-term solution to the depletion problem of IP
address

IPv4 2007
IPv4 1993

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 35
Configure New Generation RIP (RIPng) to
use IPv6

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 36
Configure New Generation RIP (RIPng) to
use IPv6

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 37
Configure New Generation RIP (RIPng) to
use IPv6
 The format of the IPv6 addresses

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 38
Configure New Generation RIP (RIPng) to
use IPv6
 The format of the IPv6 addresses

•Private Addresses: a first octet value of "FE" in hexadecimal


notation, with the next hexadecimal digit being a value from 8 to F
Site-local addresses: begin with "FE" and then "C" to "F" for the
third hexadecimal digit. So, these addresses begin with "FEC",
"FED", "FEE", or "FEF".
Link-local addresses: begin with "FE" and then have a value from
"8" to "B" for the third hexadecimal digit. So, these addresses start
with "FE8", "FE9", "FEA", or "FEB".
•Loopback Address: 0:0:0:0:0:0:0:1 or "::1".
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 39
Configure New Generation RIP (RIPng) to
use IPv6
 The various methods of assigning IPv6 addresses to a
device

Extended
ITE 1 Chapter 6Universal Identifier–
© 2006 Cisco Systems, 64 address
Inc. All rights reserved. (EUI-64)
Cisco Public 40
Configure New Generation RIP (RIPng) to
use IPv6
 The transition strategies for implementing IPv6

"Dual stack where you can, tunnel where you must.“


•Dual Stacking: an integration method in which a node has implementation
and connectivity to both an IPv4 and IPv6 network.
•Tunneling:
•Manual IPv6-over-IPv4 tunneling - An IPv6 packet is encapsulated within the
IPv4 protocol. This method requires dual-stack routers.
•Dynamic 6to4 tunneling - Automatically establishes the connection of IPv6
islands through an IPv4 network, typically the Internet
•NAT-Protocol Translation (NAT-PT): translation allows direct communication
between hosts that use different versions of the IP protocol
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 41
Configure New Generation RIP (RIPng) to
use IPv6
 Cisco IOS dual stack enables IPv6 to run concurrently
with IPv4 in a network
Cisco IOS Release 12.2(2)T and
later (with the appropriate feature
set) are IPv6-ready

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 42
Configure New Generation RIP (RIPng) to
use IPv6
 IPv6 tunneling: IPv6 packet is encapsulated within IPv4
protocol.

Manually Configured IPv6 Tunnel:


a permanent link between two IPv6
domains over an IPv4 backbone.
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 43
Configure New Generation RIP (RIPng) to
use IPv6
 IPv6 affects common routing protocols and these
protocols are modified to support IPv6

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 44
Configure New Generation RIP (RIPng) to
use IPv6
 Configure a router to use IPv6

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 45
Configure New Generation RIP (RIPng) to
use IPv6
 Configure and verify RIPng for IPv6

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 46
Configure New Generation RIP (RIPng) to
use IPv6
 Verify and troubleshoot IPv6

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 47
Summary

 Dynamic Host Control Protocol (DHCP)


This is a means of assigning IP address and other configuration
information automatically.

 DHCP operation
–3 different allocation methods
•Manual
•Automatic
•Dynamic
–Steps to configure DHCP
•Define range of addresses
•Create DHCP pool
•Configure DHCP pool specifics

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 48
Summary

 DHCP Relay
Concept of using a router configured to listen for DHCP
messages from DHCP clients and then forwards those
messages to servers on different subnets

 Troubleshooting DHCP
–Most problems arise due to configuration errors
–Commands to aid troubleshooting
•Show ip dhcp
•Show run
•debug

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 49
Summary
 Private IP addresses
–Class A = 10.x.x.x
–Class B = 172.16.x.x – 172.31.x.x
–Class C = 192.168.x.x

 Network Address Translation (NAT)


–A means of translating private IP addresses to public IP
addresses
–Type s of NAT
•Static
•Dynamic
–Some commands used for troubleshooting
•Show ip nat translations
•Show ip nat statistics
•Debug ip nat
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 50
Summary

 IPv6
–A 128 bit address that uses colons to separate entries
–Normally written as 8 groups of 4 hexadecimal digits

 Cisco IOS Dual Stack


–A way of permitting a node to have connectivity to an IPv4 &
IP v6 network simultaneously

 IPv6 Tunneling
–An IPV6 packet is encapsulated within another protocol

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 51
Summary

 Configuring RIPng with IPv6


1st globally enable IPv6
2nd enable IPv6 on interfaces on which IPv6 is to be enabled
3rd enable RIPng using either
ipv6 rotuer rip name
ipv6 router name enable

ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 52
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 53

You might also like