Lab 7 Configuring and Verifying Static NAT
Lab 7 Configuring and Verifying Static NAT
Enable, vty,
FastEthernet Enable and
Host 0/0 / Subnet Interface Serial 0/0/0/ IP Loopback 0 Secret Console
Device Name Mask Type Address Address Password Password
Router 1 Gateway 10.10.10.1/24 DTE 209.165.201.33/30 cisco class
Router 2 ISP N/A DCE 209.165.201.34/30 172.16.1.1/32 cisco class
Switch 1 Switch1 cisco class
Objectives
• Configure a router to use network address translation (NAT) to convert internal IP addresses, typically
private addresses, into outside public addresses.
• Verify connectivity.
• Verify NAT statistics.
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 1 of 5
CCNA Discovery
Introducing Routing and Switching in the Enterprise
Background / Preparation
An ISP has allocated to a company the public classless interdomain routing (CIDR) IP address
209.165.200.224/27. This provides them with 30 public IP addresses. Because the company has an internal
requirement for more than 30 addresses, the IT manager decides to implement NAT. The addresses
209.165.200.225 to 209.165.200.241 are for static allocation and 209.165.200.242 to 209.165.200.254 are for
dynamic allocation. Routing will be done between the ISP and the gateway router used by the company. A
static route will be used between the ISP and the gateway router, and a default route will be used between
the gateway and the ISP router. The ISP connection to the Internet will be represented by a loopback address
on the ISP router.
This lab focuses on the basic configuration of the Cisco 1800 router, or comparable router, using Cisco IOS
commands. The information in this lab applies to other routers; however, command syntax may vary.
Depending on the router model, the interfaces may differ. For example, on some routers Serial 0 may be
Serial 0/0 or Serial 0/0/0 and Ethernet 0 may be FastEthernet 0/0. The Cisco Catalyst 2960 switch comes
preconfigured and only needs to be assigned basic security information before being connected to a network.
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 2 of 5
CCNA Discovery
Introducing Routing and Switching in the Enterprise
Step 5: Configure the hosts with the proper IP address, subnet mask, and default gateway
a. Configure each host with the proper IP address, subnet mask, and default gateway. Host 1 should be
assigned 10.10.10.2/24 and Host 2 should be assigned 10.10.10.3/24. The default gateway should be
10.10.10.1.
b. Each workstation should be able to ping the attached router. If the ping was not successful,
troubleshoot as necessary. Check and verify that the workstation has been assigned a specific IP
address and default gateway.
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 3 of 5
CCNA Discovery
Introducing Routing and Switching in the Enterprise
Step 10: Define an access list that will match the inside private IP addresses
To define the access list to match the inside private addresses, use the access-list command.
Gateway(config)#access-list 1 permit 10.10.10.0 0.0.0.255
Step 11: Define the NAT translation from inside list to outside pool
To define the NAT translation, use the ip nat inside source command.
Gateway(config)#ip nat inside source list 1 pool public_access
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 4 of 5
CCNA Discovery
Introducing Routing and Switching in the Enterprise
Does the mapping appear in the output of the show command? __Yes_____
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 5 of 5