Topic 7 DHCP and NAT. Networking BAsics.



Similar documents
Note: This case study utilizes Packet Tracer. Please see the Chapter 5 Packet Tracer file located in Supplemental Materials.

Computer Networks I Laboratory Exercise 1

Configuring Network Address Translation (NAT)

Lab Configuring Access Policies and DMZ Settings

1 PC to WX64 direction connection with crossover cable or hub/switch

Network Protocol Configuration

CCNA Discovery Networking for Homes and Small Businesses Student Packet Tracer Lab Manual

- Network Address Translation -

Skills Assessment Student Training Exam

CCNA Exploration: Accessing the WAN Chapter 7 Case Study

Configuring the Switch IP Address and Default Gateway

Sample Configuration Using the ip nat outside source list C

BASIC ANALYSIS OF TCP/IP NETWORKS

Lab Organizing CCENT Objectives by OSI Layer

Introduction to Network Address Translation

Expert Reference Series of White Papers. The Basics of Configuring and Using Cisco Network Address Translation

IP Addressing and Subnetting. 2002, Cisco Systems, Inc. All rights reserved.

Sample Configuration Using the ip nat outside source static

Lab Configuring the PIX Firewall as a DHCP Server

Configuring Network Address Translation

Evaluation guide. Vyatta Quick Evaluation Guide

: Interconnecting Cisco Networking Devices Part 1 v2.0 (ICND1)

1 Data information is sent onto the network cable using which of the following? A Communication protocol B Data packet

Configuration Guide. DHCP Server. LAN client

Procedure: You can find the problem sheet on Drive D: of the lab PCs. 1. IP address for this host computer 2. Subnet mask 3. Default gateway address

Lab - Using IOS CLI with Switch MAC Address Tables

Savvius Insight Initial Configuration

CCT vs. CCENT Skill Set Comparison

ICND IOS CLI Study Guide (CCENT)

Chapter 5 Customizing Your Network Settings

Configuring Static and Dynamic NAT Simultaneously

Chapter 11 Network Address Translation

Workstation ARP. Objective. Background / Preparation

Internet Control Protocols Reading: Chapter 3

ICS 351: Today's plan

Lab Configuring Access Policies and DMZ Settings

Interconnecting Cisco Networking Devices, Part 1 (ICND1) v3.0

Technical Note. vsphere Deployment Worksheet on page 2. Express Configuration on page 3. Single VLAN Configuration on page 5

GregSowell.com. Mikrotik Basics

Dynamic Host Configuration Protocol (DHCP) 02 NAT and DHCP Tópicos Avançados de Redes

Debugging Network Communications. 1 Check the Network Cabling

Digi Connect WAN Application Guide Using the Digi Connect WAN and Digi Connect VPN with a Wireless Router/Access Point

Configuring WAN Failover with a Cisco 881 Router and an AirLink ES440

Prestige 202H Plus. Quick Start Guide. ISDN Internet Access Router. Version /2004

Network Simulator Lab Study Plan

Wireless Edge Services xl Module 2.0 Update NPI Technical Training June 2007

Chapter 4 Customizing Your Network Settings

ASA/PIX: Load balancing between two ISP - options

Interconnecting Cisco Network Devices 1 Course, Class Outline

NAT (Network Address Translation) & PAT (Port Address Translation)

Configuring DHCP. DHCP Server Overview

Configuring DHCP Snooping

SSVP SIP School VoIP Professional Certification

INTERCONNECTING CISCO NETWORK DEVICES PART 1 V2.0 (ICND 1)

Using VDOMs to host two FortiOS instances on a single FortiGate unit

Essential Curriculum Computer Networking 1. PC Systems Fundamentals 35 hours teaching time

Introduction to Network Operating Systems

PC/POLL SYSTEMS Version 7 Polling SPS2000 Cash Register TCP/IP Communications

Pre-lab and In-class Laboratory Exercise 10 (L10)

Network Address Translation Commands

Chapter 4 Customizing Your Network Settings

iseries TCP/IP routing and workload balancing

CS 326e F2002 Lab 1. Basic Network Setup & Ethereal Time: 2 hrs

Cisco Networking Professional-6Months Project Based Training

Broadband Phone Gateway BPG510 Technical Users Guide

FSM73xx GSM73xx GMS72xxR Shared access to the Internet across Multiple routing VLANs using a Prosafe Firewall

Chapter 1 Personal Computer Hardware hours

Network Basics GRAPHISOFT. for connecting to a BIM Server (version 1.0)

Welcome to Todd Lammle s CCNA Bootcamp

Firewall VPN Router. Quick Installation Guide M73-APO09-380

Lab PC Network TCP/IP Configuration

Lab - Observing DNS Resolution

School of Information Technology and Engineering (SITE) CEG 4395: Computer Network Management. Lab 4: Remote Monitoring (RMON) Operations

Scaling IP Addresses. Objectives. Key Terms CHAPTER 1

ICS 351: Today's plan. IP addresses Network Address Translation Dynamic Host Configuration Protocol Small Office / Home Office configuration

Innominate mguard Version 6

Multi-Homing Dual WAN Firewall Router

Cisco Certified Network Associate Exam. Operation of IP Data Networks. LAN Switching Technologies. IP addressing (IPv4 / IPv6)

Advanced Higher Computing. Computer Networks. Homework Sheets

Firewall. FortiOS Handbook v3 for FortiOS 4.0 MR3

Cork Institute of Technology Master of Science in Computing in Education National Framework of Qualifications Level 9

Investigation of DHCP Packets using Wireshark

Configuring Routers and Their Settings

1 Basic Configuration of Cisco 2600 Router. Basic Configuration Cisco 2600 Router

PT Activity 8.1.2: Network Discovery and Documentation Topology Diagram

Configuring Static and Dynamic NAT Translation

NAT Configuration. Contents. 1 NAT Configuration. 1.1 NAT Overview NAT Configuration

Lab 5-5 Configuring the Cisco IOS DHCP Server

Appendix IP CAMERA Network Connections

Chapter 8 Advanced Configuration

Chapter 10 Troubleshooting

Table of Contents. Configuring IP Access Lists

Chapter 6 Configuring the SSL VPN Tunnel Client and Port Forwarding

LAN TCP/IP and DHCP Setup

Lab Configuring DHCP with SDM and the Cisco IOS CLI

H0/H2/H4 -ECOM100 DHCP & HTML Configuration. H0/H2/H4--ECOM100 DHCP Disabling DHCP and Assigning a Static IP Address Using HTML Configuration

Knowledgebase Solution

Troubleshooting the Firewall Services Module

Protecting the Home Network (Firewall)

DHCP Server Port-Based Address Allocation

Transcription:

Topic 7 DHCP and NAT Networking BAsics. 1

Dynamic Host Configuration Protocol (DHCP) IP address assignment Default Gateway assignment Network services discovery I just booted. What network is this? What is the gateway? DHCP Server Host A VLAN 30 Where is the TFTP Server? Phone A VLAN 40 Networking Basics 2

DHCP Process Host issues a DHCP discover message to any available server. Server(s) replies back with DHCP offer message. Client issues DHCP request using offered IP. Server replies with DHCP acknowledgement indicating lease time and other options requested by the client. Networking Basics 3

DHCP Packet Quick Look Note that destination MAC and IP is all broadcast Networking Basics 4

IOS DHCP Configuration Example Create a DHCP pool. ip dhcp pool (pool_name) Assign a network and default router to the pool. network 10.1.1.0 255.255.255.0 default-router 10.1.1.1 Assign additional options if required. dns-server 10.40.1.51 option 150 ip 10.40.1.99 Networking Basics 5

Infrastructure DHCP Configuration Example Remove any conflicting pool from the router no ip dhcp pool (pool_name) Enter interface configure mode for the required interface and configure broadcast relay. interface vlan 30 ip helper-address 10.40.1.51 Networking Basics 6

Helpful Commands show ip dhcp binding clear ip dhcp binding (address or *) debug ip dhcp server packet Networking Basics 7

Network Address Translation (NAT) Address Depletion Migration/Mergers Server load sharing Changing ISP Internet IOS Firewall Networking Basics 8

Types of NAT Static NAT one-to-one mapping between local and global addresses. Dynamic NAT many-to-many mapping between local and global addresses by using a pool of real IP addresses. Overloading (PAT) many-to-one local to global mapping using a real IP s transport layer ports. Networking Basics 9

NAT Address Names Inside Local inside source address before translation. Outside Local destination host before translation. Inside Global inside host after translation. Outside Global outside destination host after translation. Networking Basics 10

Dynamic and Static NAT NAT TABLE Inside Local Inside Global 64.40.7.3 DA 170.168.2.2 10.1.1.1 10.1.1.2 10.1.1.3 170.168.2.2 170.168.2.3 170.168.2.4 SA 10.1.1. 1 Inside 10.1.1.1 Internet SA 170.168.2.2 DA 10.1.1. 1 10.1.1.2 IOS Firewall 10.1.1.3 Networking Basics 11

Overloading (PAT) Protocol Inside Local Inside Global Outside Global TCP TCP TCP 10.1.1.1:1721 10.1.1.2:1024 10.1.1.3:1723 64.40.7.3 DA 170.168.2.2: 1493 170.168.2.2:1493 170.168.2.2:1723 170.168.2.2:1024 61.40.7.3:23 61.40.7.3:23 61.40.7.3:23 SA 10.1.1. 1 Inside 10.1.1.1 Internet SA 170.168.2.2: 1493 DA 10.1.1. 1 10.1.1.2 IOS Firewall 10.1.1.3 Networking Basics 12

Static NAT config example ip nat inside source static 10.1.1.1 170.46.2.2 interface ethernet0/0 ip address 10.1.1.10 255.255.255.0 ip nat inside interface serial0/0 Internet ip address 170.46.2.1 255.255.255.0 ip nat outside S0/0 outside E0/0 inside 10.1.1.1 Networking Basics 13

Dynamic NAT config example ip nat pool globalnet 170.168.2.2 170.168.2.254 netmask 255.255.255.0 ip nat inside source list 1 pool globalnet interface ethernet0/0 ip address 10.1.1.10 255.255.255.0 ip nat inside interface serial0/0 ip address 170.68.2.1 255.255.255.0 ip nat outside Internet S0/0 outside access-list 1 permit 10.1.1.0 0.0.0.255 E0/0 inside Networking Basics 14

PAT (overloading) config example ip nat pool globalnet 170.168.2.1 170.168.2.1 netmask 255.255.255.0 ip nat inside source list 1 pool globalnet overload interface ethernet0/0 ip address 10.1.1.10 255.255.255.0 ip nat inside interface serial0/0 ip address 170.68.2.1 255.255.255.0 ip nat outside Internet access-list 1 permit 10.1.1.0 0.0.0.255 S0/0 outside E0/0 inside Networking Basics 15

Miscellaneous Troubleshooting commands show ip nat translation clear ip nat translation * debug ip nat Networking Basics 16

Networking Basics 17

Topic 7 DHCP and NAT Lab Guide Dynamic host configuration protocol (DHCP) allows network administrators to easily configure hosts for network access by centralizing configuration of IP addresses and network mask information, default gateway information, and other options that might be required when bootstrapping a host onto the network. Network Address Translation (NAT) is used by network administrators to resolve issues of IP address overlap or incompatibility. NAT is also an IP address conservation technique where-in multiple hosts can leverage a single IP address when communicating with a global network like the internet. NAT is commonly configured in conjunction with RFC 1918 addresses to provide privately IP addressed hosts the capability of communicating with publically IP addressed hosts. In this topic, you will configure both technologies on an IOS router. The lab environment has been partially configured for you for the sake of time. A simple network consisting of a router, connected switch, three internal VLANs (Marketing, Engineering, and Server), and an outside host have been preconfigured. Your tasks will include: Task 1 - Configure DHCP Services on the Router Task 2 - Move DHCP Services to the Infrastructure Server Task 3 - Configure Dynamic NAT Translation for Inside Hosts Using Interface Gig 0/1 Address Task 4 - Configure Static NAT to Provide Access to the Web Server from the Outside Host Task 5 - Configure Dynamic NAT Translation for Inside Hosts Using a Pool Task 2 Configure DHCP Services on the Router In small networks, your router can serve many different roles as a DNS, an NTP, and even a DHCP server. Configure your router to provide DHCP services. 1. Open a command prompt on the marketing and engineering PCs and check to make sure no IP is currently listed. a. ipconfig /all 2. In global configuration mode, add an IP DHCP pool for marketing a. ip dhcp pool Marketing 3. Set the default router for this pool to the interface IP address of VLAN 2 a. default-router 10.1.2.1 4. Set the network for this pool a. network 10.1.2.0 255.255.255.0 5. Add an IP DHCP pool for engineering a. ip dhcp pool Engineering 6. Set the default router for this pool to the interface IP address of VLAN 3 a. default-router 10.1.3.1

7. Set the network for this pool a. network 10.1.3.0 255.255.255.0 8. Open a command prompt on the marketing and engineering PCs and check the IP address a. ipconfig /all 9. Confirm that you can ping the server from both the marketing and engineering PCs a. ping 10.1.4.11 10. From the router CLI in enable mode, show the DHCP bindings and observe that the router is managing the data base for DHCP addresses. a. show ip dhcp binding Task 2 Configure Your Router for an Infrastructure DHCP Server Enterprise networks more often provide DHCP services through an infrastructure server tied to AD or other. In this exercise, modify your router to support using the infrastructure DHCP server. 1. Open a command prompt on the marketing and engineering PCs and release the DHCP IP address. a. ipconfig /release 2. On the router in global config mode, remove the Marketing and Engineering DHCP pools. a. no ip dhcp pool Marketing b. no ip dhcp pool Engineering 3. Open a command prompt on the marketing and engineering PCs and attempt to renew the DHCP IP address. Does this work? Why? a. ipconfig /renew 4. In interface configuration mode, configure the router to relay the DHCP request to the infrastructure server. a. interface gigabit 0/0.2 b. ip helper-address 10.1.4.11 c. interface gigabit 0/0.3 d. ip helper-address 10.1.4.11 5. Open a command prompt on the marketing and engineering PCs and attempt to renew the DHCP address. Does this work? Why? 6. Confirm that you can ping the Infrastructure server from both the marketing and engineering PCs. a. ping 10.1.4.11 Task 3 Dynamic Network Address Translation Using a Single IP Address (Many to One) In smaller networks or when working with overlap situation you may only have a single IP address to be used in the NAT configuration. In this situation, the router must be programmed to map sessions from

NAT d hosts to unique source ports of the global IP address in use. This is also known as port address translation (PAT). 1. Open a command prompt on the marketing or engineering PC and ping the outside host. Does this work? Why? a. ping 1.1.1.254 2. Create and access list that identifies what traffic the NAT process should operate on. a. access-list 100 permit ip 10.1.2.0 0.0.0.255 b. access-list 100 permit ip 10.1.3.0 0.0.0.255 c. access-list 100 permit ip 10.1.4.0 0.0.0.255 3. Specify the interfaces that will act as the inside of the NAT process. a. interface gigabit 0/0.2 b. ip nat inside c. interface gigabit 0/0.3 d. ip nat inside e. interface gigbit 0/0.4 f. ip nat inside 4. Specify the interface that will act as the outside of the NAT process. a. interface gig 0/1 b. ip nat outside 5. Write a NAT statement to dynamically translate the inside hosts to the IP address of gigabit 0/1 when going to an IP address on the outside assuring that multiple hosts can operate behind the single IP address. a. ip nat inside source list 100 interface gigabit 0/1 overload 6. Open a command prompt on the marketing or engineering PC and ping the outside host. Does this work? Why? a. ping 1.1.1.254 7. From enable mode on the router, run the command show ip nat translation and observe the entries listed. What is common to all the translations shown? What is unique? Task 4 Static Network Address Translation Dynamic network address translation works well for end host computers, but servers that are contacted in an unsolicited manner require a known accessible IP address to which a host can connect when the service is needed. In this exercise, use a static NAT to make the web server available to the outside host. 1. Using a web browser on the outside host, try and access the web server running inside the translated network. Did this work? What IP address did you use and why? 2. Write a NAT statement to statically translate the http server inside the network to 1.1.1.11 on the outside of the network. a. ip nat inside source static 10.1.4.11 1.1.1.11

3. Using a web browser on the outside host, try and access the web server running inside the translated network. Did this work? What IP address did you use and why? 4. From enable mode on the router, run the command show ip nat translation and observe the entries listed. What is unique about the static server translation? Clear the existing nat entries and re-run the show ip nat translation command. Are there any entries in the table now? Why? Why did the server not use the dynamic NAT statement we created above and NAT to the IP address of interface gigabit 0/1? a. show ip nat translation b. clear ip nat translation * c. show ip nat translation Task 5 Dynamic Network Address Translation Using a Pool of Addresses Sometimes the interface IP address is not available as a NAT IP for outside connectivity and you have to NAT to a pool of IP addresses provided. When your inside host count exceeds the number of IP addresses in your outside pool, then similarly to using a single IP, you must make a provision to overload and perform a PAT. In this exercise, remove the dynamic NAT statement which used the IP address of interface gigabit 0/1 which we created above and create a new NAT statement using an address pool. 1. Remove the dynamic NAT statement created above. a. no ip nat inside source list 100 interface gigabit 0/1 overload 2. From global configure mode, clear the existing translations in preparation for the new NAT pool. a. clear ip nat translation * 3. Create a new dynamic NAT pool with addresses 1.1.1.12 and 1.1.1.13 a. ip nat pool Dynamic_Pool 1.1.1.12 1.1.1.13 netmask 255.255.255.0 4. Write a new dynamic NAT statement to translate inside hosts to your new dynamic pool. a. ip nat inside source list 100 pool Dynamic_Pool 5. Open a command prompt on the marketing and engineering PCs and ping the outside host. a. ping 1.1.1.254 6. From enable mode on the router, run the command show ip nat translation and observe the new translations create. What is different about these translations from the previous dynamic NAT? a. show ip nat translation