9.3.1.2 Lab - Configure ASA Basic Settings and Firewall Using CLI - Instructor
9.3.1.2 Lab - Configure ASA Basic Settings and Firewall Using CLI - Instructor
Topology
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 1 of 39
CCNA Security Chapter 9 Lab
IP Addressing Table
Objectives
Part 1: Basic Router/Switch/PC Configuration
Cable the network as shown in the topology.
Configure hostnames and interface IP addresses for routers, switches, and PCs.
Configure static routing, including default routes, between R1, R2, and R3.
Enable HTTP and SSH access for R1.
Configure PC host IP settings.
Verify connectivity between hosts, switches, and routers.
Save the basic running configuration for each router and switch.
Part 2: Accessing the ASA Console and Using CLI Setup Mode to Configure Basic Settings
Access the ASA console and view hardware, software, and configuration settings.
Determine the ASA version, interfaces, and license.
Determine the file system and contents of flash memory.
Use CLI Setup mode to configure basic settings (hostname, passwords, clock, etc.).
Part 3: Configuring Basic ASA Settings and Interface Security Levels Using the CLI.
Configure the hostname and domain name.
Configure the login and enable passwords.
Set the date and time.
Configure the inside and outside interfaces.
Test connectivity to the ASA.
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 2 of 39
CCNA Security Chapter 9 Lab
Background/Scenario
The Cisco Adaptive Security Appliance (ASA) is an advanced network security device that integrates a
stateful firewall, VPN, and other capabilities. This lab employs an ASA 5505 to create a firewall and protect an
internal corporate network from external intruders while allowing internal hosts access to the Internet. The
ASA creates three security interfaces: Outside, Inside, and DMZ. It provides outside users limited access to
the DMZ and no access to inside resources. Inside users can access the DMZ and outside resources.
The focus of this lab is the configuration of the ASA as a basic firewall. Other devices will receive minimal
configuration to support the ASA portion of this lab. This lab uses the ASA CLI, which is similar to the IOS
CLI, to configure basic device and security settings.
In Part 1 of this lab, you will configure the topology and non-ASA devices. In Parts 2 through 4 you will
configure basic ASA settings and the firewall between the inside and outside networks. In part 5 you will
configure the ASA for additional services, such as DHCP, AAA, and SSH. In Part 6, you will configure a DMZ
on the ASA and provide access to a server in the DMZ.
Your company has one location connected to an ISP. R1 represents a CPE device managed by the ISP. R2
represents an intermediate Internet router. R3 represents an ISP that connects an administrator from a
network management company, who has been hired to remotely manage your network. The ASA is an edge
security device that connects the internal corporate network and DMZ to the ISP while providing NAT and
DHCP services to inside hosts. The ASA will be configured for management by an administrator on the
internal network and by the remote administrator. Layer 3 VLAN interfaces provide access to the three areas
created in the lab: Inside, Outside, and DMZ. The ISP has assigned the public IP address space of
209.165.200.224/29, which will be used for address translation on the ASA.
Note: The router commands and output in this lab are from a Cisco 1941 with Cisco IOS Release 15.4(3)M2
image with a Security Technology license. Other routers and Cisco IOS versions can be used. See the Router
Interface Summary Table at the end of this lab to determine which interface identifiers to use based on the
equipment in your class. Depending on the router model and Cisco IOS version, the available commands and
output produced might vary from what is shown in this lab.
The ASA used with this lab is a Cisco model 5505 with an 8-port integrated switch, running OS version 9.2(3),
Adaptive Security Device Manager (ASDM) version 7.4(1), and comes with a Base license that allows a
maximum of three VLANs.
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 3 of 39
CCNA Security Chapter 9 Lab
Note: Ensure that the routers and switches have been erased and have no startup configurations.
Instructor Note: Instructions for initializing the network devices are provided in the Chapter 0.0.0.0
Instructions for erasing the ASA and accessing the console are provided in this lab.
Required Resources
3 Routers (Cisco 1941 with Cisco IOS Release 15.4(3)M2 image with a Security Technology Package
license)
3 Switches (Cisco 2960 with cryptography IOS image for SSH support – Release 15.0(2)SE7 or
comparable)
1 ASA 5505 (OS version 9.2(3) and ASDM version 7.4(1) and Base license or comparable)
3 PCs (Windows 7 or Windows 8 with SSH client software)
Serial and Ethernet cables as shown in the topology
Console cables to configure Cisco networking devices
Instructor Note:
This lab is divided into six parts. Part 1 can be performed separately, but must be performed before parts
2 through 6. Part 2 uses the CLI Setup mode. Parts 3 through 6 can be performed individually or in
combination with other parts as time permits, but should be performed sequentially. In some cases, a task
assumes the configuration of certain features in a prior task.
The goal is to use an ASA to implement firewall and other services that might previously have been
configured on an ISR. In this lab, the student configures the most common basic ASA settings and
services, such as NAT, ACL, DHCP, AAA, and SSH.
The final running configurations for all devices are found at the end of this lab. The ASA factory default
configuration is also provided.
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 4 of 39
CCNA Security Chapter 9 Lab
Step 4: Enable the HTTP server and configure a user account, encrypted passwords, and crypto
keys for SSH.
Note: Passwords in this task are set to a minimum of 10 characters but are relatively simple for the purposes
of this lab. More complex passwords are recommended in a production network.
a. Enable HTTP access to R1 using the ip http server command in global config mode. Set the console
and VTY passwords to cisco. This will provide web and SSH targets for testing later in the lab.
R1(config)# ip http server
b. Configure a minimum password length of 10 characters using the security passwords command.
R1(config)# security passwords min-length 10
c. Configure a domain name.
R1(config)# ip domain-name ccnasecurity.com
d. Configure crypto keys for SSH.
R1(config)# crypto key generate rsa general-keys modulus 1024
e. Configure an admin01 user account using algorithm-type scrypt for encryption and a password of
cisco12345.
R1(config)# username admin01 algorithm-type scrypt secret cisco12345
f. Configure line console 0 to use the local user database for logins. For additional security, the exec-
timeout command causes the line to log out after five minutes of inactivity. The logging synchronous
command prevents console messages from interrupting command entry.
Note: To avoid repetitive logins during this lab, the exec-timeout command can be set to 0 0, which
prevents it from expiring. However, this is not considered to be a good security practice.
R1(config)# line console 0
R1(config-line)# login local
R1(config-line)# exec-timeout 5 0
R1(config-line)# logging synchronous
g. Configure line vty 0 4 to use the local user database for logins and restrict access to only SSH
connections.
R1(config)# line vty 0 4
R1(config-line)# login local
R1(config-line)# transport input ssh
R1(config-line)# exec-timeout 5 0
h. Configure the enable password with strong encryption.
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 5 of 39
CCNA Security Chapter 9 Lab
Step 7: Save the basic running configuration for each router and switch.
Part 2: Accessing the ASA Console and Using CLI Setup to Configure
Basic Settings
In Part 2 of this lab, you will access the ASA via the console and use various show commands to determine
hardware, software, and configuration settings. You will clear the current configuration and use the CLI
interactive setup utility to configure basic ASA settings.
Note: Do not configure ASA settings at this time.
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 6 of 39
CCNA Security Chapter 9 Lab
<output omitted>
What software version is this ASA running?
_______________________________________________________________________________________
The ASA in this lab uses version 9.2(3).
What is the name of the system image file and from where was it loaded?
_______________________________________________________________________________________
_______________________________________________________________________________________
The system image file in the ASA for this lab is asa923-k8.bin, and it was loaded from disk0: (or flash:).
The ASA can be managed using a built-in GUI known as ASDM. What version of ASDM is this ASA running?
_______________________________________________________________________________________
The ASA in this lab uses ASDM version 7.4(1).
How much RAM does this ASA have?
_______________________________________________________________________________________
The ASA in this lab has 512 MB RAM.
How much flash memory does this ASA have?
_______________________________________________________________________________________
The ASA in this lab has 128 MB RAM.
How many Ethernet ports does this ASA have?
_______________________________________________________________________________________
The ASA in this lab has eight ports.
What type of license does this ASA have?
_______________________________________________________________________________________
The ASA has either Base or the Security Plus license.
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 7 of 39
CCNA Security Chapter 9 Lab
File Systems:
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 8 of 39
CCNA Security Chapter 9 Lab
Instructor Note: Check the contents of flash memory occasionally to see if there are many
upgrade_startup_error log files. The ASA generates these as a result of erasing the startup config. You can delete
the log files by issuing the command del flash:upgrade_startup_errors* from the Enable prompt and pressing
Enter at each prompt.
CCNAS-ASA# del flash:upgrade_startup_errors*
Delete filename [upgrade_startup_errors*]?
Delete disk0:/upgrade_startup_errors_201109141157.log? [confirm] <Enter>
Delete disk0:/upgrade_startup_errors_201109141224.log? [confirm] <Enter>
<output omitted>
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 9 of 39
CCNA Security Chapter 9 Lab
interface Ethernet0/2
<output omitted>
Note: To stop the output from a command using the CLI, press Q.
If you see VLANs 1 and 2 and other settings as described previously, the device is most likely configured
with the default factory configuration. You may also see other security features, such as a global policy
that inspects selected application traffic, which the ASA inserts by default if the original startup
configuration has been erased. The actual output varies depending on the ASA model, version, and
configuration status.
b. You can restore the ASA to its factory default settings by using the configure factory-default command.
ciscoasa# conf t
ciscoasa(config)# configure factory-default
<output omitted>
c. Review this output and pay particular attention to the VLAN interfaces, NAT-related, and DHCP-related
sections. These will be configured later in this lab using the CLI.
d. You may want to capture and print the factory-default configuration as a reference. Use the terminal
emulation program to copy it from the ASA and paste it into a text document. You can then edit this file if
desired, so that it contains only valid commands. You should remove password commands and enter the
no shut command to bring up the desired interfaces.
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 10 of 39
CCNA Security Chapter 9 Lab
No Configuration
Note: The IOS command erase startup-config is not supported on the ASA.
b. Use the reload command to restart the ASA. This causes the ASA to come up in CLI Setup mode. If
prompted that the config has been modified and needs to be saved, respond with N, and then press
Enter to proceed with the reload.
ciscoasa# reload
Proceed with reload? [confirm]
ciscoasa#
***
*** --- START GRACEFUL SHUTDOWN ---
Shutting down isakmp
Shutting down File system
***
*** --- SHUTDOWN NOW ---
Process shutdown finished
Rebooting.....
CISCO SYSTEMS
Embedded BIOS Version 1.0(12)13 08/28/08 15:50:37.45
<output omitted>
Step 6: Use the Setup interactive CLI mode to configure basic settings.
When the ASA completes the reload process, it should detect that the startup-config file is missing and
present a series of interactive prompts to configure basic ASA settings. If it does not come up in this mode,
repeat Step 5. As an alternative, you can run the setup command at the global configuration mode prompt,
but you must first create a VLAN interface (VLAN 1), name the VLAN management (using the nameif
command), and assign the VLAN an IP address.
Note: The interactive prompt mode does not configure the ASA with factory defaults as described in Step 4.
This mode can be used to configure minimal basic settings, such as hostname, clock, and passwords. You
can also go directly to the CLI to configure the ASA settings, as described in Part 3.
a. Respond to the Setup interactive prompts as shown here, after the ASA reloads.
Pre-configure Firewall now through interactive prompts [yes]? <Enter>
Firewall Mode [Routed]: <Enter>
Enable password [<use current password>]: class
Allow password recovery [yes]? <Enter>
Clock (UTC):
Year [2015]: <Enter>
Month [Apr]: <Enter>
Day [19]: <Enter>
Time [23:32:19]: <Enter>
Management IP address: 192.168.1.1
Management network mask: 255.255.255.0
Host name: ASA-Init
Domain name: generic.com
IP address of host running Device Manager: <Enter>
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 11 of 39
CCNA Security Chapter 9 Lab
Part 3: Configuring ASA Settings and Interface Security Using the CLI
In Part 3, you will configure basic settings by using the ASA CLI, even though some of them were already
configured using the Setup mode interactive prompts in Part 2. In this part, you will start with the settings
configured in Part 2 and then add to or modify them to create a complete basic configuration.
Tip: Many ASA CLI commands are similar to, if not the same, as those used with the Cisco IOS CLI. In
addition, the process of moving between configuration modes and sub-modes is essentially the same.
Note: You must complete Part 2 before beginning Part 3.
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 12 of 39
CCNA Security Chapter 9 Lab
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 13 of 39
CCNA Security Chapter 9 Lab
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 14 of 39
CCNA Security Chapter 9 Lab
Current IP Addresses:
Interface Name IP address Subnet mask Method
Vlan1 inside 192.168.1.1 255.255.255.0 manual
Vlan2 outside 209.165.200.226 255.255.255.248 manual
g. Use the show switch vlan command to display the inside and outside VLANs configured on the ASA and
to display the assigned ports.
CCNAS-ASA# show switch vlan
VLAN Name Status Ports
---- -------------------------------- --------- -----------------------------
1 inside up Et0/1, Et0/2, Et0/3, Et0/4
Et0/5, Et0/6, Et0/7
2 outside up Et0/0
h. You may also use the show running-config interface type/number command to display the
configuration for a particular interface from the running configuration.
CCNAS-ASA# show run interface vlan 1
!
interface Vlan1
nameif inside
security-level 100
ip address 192.168.1.1 255.255.255.0
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 15 of 39
CCNA Security Chapter 9 Lab
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 16 of 39
CCNA Security Chapter 9 Lab
c. Close the browser. In the next lab, you will use ASDM extensively to configure the ASA. The objective
here is not to use the ASDM configuration screens, but to verify HTTP/ASDM connectivity to the ASA. If
you are unable to access ASDM, check your configurations. If the configurations are correct contact your
instructor for further assistance.
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 17 of 39
CCNA Security Chapter 9 Lab
____________________________________________________________________________________
Yes, 209.165.200.224/248 is a directly connected network for both R1 and the ASA.
b. Ping from the ASA to R1 S0/0/0 at IP address 10.1.1.1. Was the ping successful?
____________________________________________________________________________________
____________________________________________________________________________________
No, the ASA does not have a route to 10.1.1.0/30.
c. Create a “quad zero” default route using the route command, associate it with the ASA outside interface,
and point to the R1 G0/0 at IP address 209.165.200.225 as the gateway of last resort. The default
administrative distance is one by default.
CCNAS-ASA(config)# route outside 0.0.0.0 0.0.0.0 209.165.200.225
d. Issue the show route command to display the ASA routing table and the static default route you just
created.
CCNAS-ASA# show route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, + - replicated route
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 18 of 39
CCNA Security Chapter 9 Lab
If you use the older commands as shown in the example with ASA version 8.3 and newer you will receive the
error result shown here.
CCNAS-ASA(config)# nat (inside) 1 192.168.10.0 255.255.255.0
ERROR: This syntax of nat command has been deprecated.
Please refer to "help nat" command for more details.
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 19 of 39
CCNA Security Chapter 9 Lab
Step 3: Modify the default MPF application inspection global service policy.
For application layer inspection, as well as other advanced options, the Cisco MPF is available on ASAs.
Cisco MPF uses three configuration objects to define modular, object-oriented, and hierarchical policies:
Class maps - Define a match criterion.
Policy maps - Associate actions to the match criteria.
Service policies - Attach the policy map to an interface, or globally to all interfaces of the appliance.
a. Display the default MPF policy map that performs the inspection on inside-to-outside traffic. Only traffic
that was initiated from the inside is allowed back in to the outside interface. Notice that the ICMP protocol
is missing.
CCNAS-ASA# show run | begin class
class-map inspection_default
match default-inspection-traffic
!
policy-map type inspect dns preset_dns_map
parameters
message-length maximum client auto
message-length maximum 512
policy-map global_policy
class inspection_default
inspect dns preset_dns_map
inspect ftp
inspect h323 h225
inspect h323 ras
inspect ip-options
inspect netbios
inspect rsh
inspect rtsp
inspect skinny
inspect esmtp
inspect sqlnet
inspect sunrpc
inspect tftp
inspect sip
inspect xdmcp
!
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 20 of 39
CCNA Security Chapter 9 Lab
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 21 of 39
CCNA Security Chapter 9 Lab
Warning, DHCP pool range is limited to 32 addresses, set address range as:
192.168.1.5-192.168.1.36
Were you able to do this on this ASA?
____________________________________________________________________________________
____________________________________________________________________________________
No. The pool size on the ASA 5505 with a base license is limited to 32 addresses.
b. Repeat the dhcpd command and specify the pool as 192.168.1.5-192.168.1.36
CNAS-ASA(config)# dhcpd address 192.168.1.5-192.168.1.36 inside
c. (Optional) Specify the IP address of the DNS server to be given to clients.
CCNAS-ASA(config)# dhcpd dns 209.165.201.2
Note: Other parameters can be specified for clients, such as WINS server, lease length, and domain
name. By default, the ASA sets its own IP address as the DHCP default gateway, so there is no need to
configure it. However, to manually configure the default gateway, or set it to a different networking
device’s IP address, use the following command:
CCNAS-ASA(config)# dhcpd option 3 ip 192.168.1.1
d. Enable the DHCP daemon within the ASA to listen for DHCP client requests on the enabled interface
(inside).
CCNAS-ASA(config)# dhcpd enable inside
e. Verify the DHCP daemon configuration by using the show run dhcpd command.
CCNAS-ASA(config)# show run dhcpd
dhcpd dns 209.165.201.2
!
dhcpd address 192.168.1.5-192.168.1.36 inside
dhcpd enable inside
f. Access the Network Connection IP Properties for PC-B, and change it from a static IP address to a DHCP
client so that it obtains an IP address automatically from the ASA DHCP server. The procedure to do this
varies depending on the PC operating system. It may be necessary to issue the ipconfig /renew
command on PC-B to force it to obtain a new IP address from the ASA.
Instructor Notes: Configuring the ASA as a DHCP client (informational only).
These instructions are provided to configure the outside interface as a DHCP client in the event the ASA
needs to obtain its public IP address from an ISP. This is not performed as part of the lab. Optionally, you
may wish to configure router R1 as a DHCP server to provide the necessary information to the ASA.
The following command configures the ASA outside interface VLAN 2 to receive its IP address
information via a DHCP server and sets the default route using the default gateway parameter provided
by the ISP DHCP server.
CCNAS-ASA(config)# interface vlan 2
CCNAS-ASA(config-if)# ip address dhcp setroute
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 22 of 39
CCNA Security Chapter 9 Lab
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 23 of 39
CCNA Security Chapter 9 Lab
Note: If you are working with the ASA 5505 Base license, you will see the error message shown in the
output below. The ASA 5505 Base license allows for the creation of up to three named VLAN interfaces.
However, you must disable communication between the third interface and one of the other interfaces
using the no forward command. This is not an issue if the ASA has a Security Plus license, which allows
20 named VLANs.
Because the server does not need to initiate communication with the inside users, disable forwarding to
interface VLAN 1.
CCNAS-ASA(config)# interface vlan 3
CCNAS-ASA(config-if)# ip address 192.168.2.1 255.255.255.0
CCNAS-ASA(config-if)# nameif dmz
ERROR: This license does not allow configuring more than 2 interfaces with
nameif and without a "no forward" command on this interface or on 1 interface(s)
with nameif already configured.
CCNAS-ASA(config-if)# security-level 70
CCNAS-ASA(config-if)# no shut
b. Assign ASA physical interface E0/2 to DMZ VLAN 3 and enable the interface.
CCNAS-ASA(config-if)# interface Ethernet0/2
CCNAS-ASA(config-if)# switchport access vlan 3
CCNAS-ASA(config-if)# no shut
c. Display the status for all ASA interfaces using the show interface ip brief command.
CCNAS-ASA # show interface ip brief
Interface IP-Address OK? Method Status Protocol
Ethernet0/0 unassigned YES unset up up
Ethernet0/1 unassigned YES unset up up
Ethernet0/2 unassigned YES unset up up
Ethernet0/3 unassigned YES unset down down
Ethernet0/4 unassigned YES unset down down
Ethernet0/5 unassigned YES unset down down
Ethernet0/6 unassigned YES unset down down
Ethernet0/7 unassigned YES unset down down
Internal-Data0/0 unassigned YES unset up up
Internal-Data0/1 unassigned YES unset up up
Vlan1 192.168.1.1 YES manual up up
Vlan2 209.165.200.226 YES manual up up
Vlan3 192.168.2.1 YES manual up up
Virtual0 127.0.0.1 YES unset up up
d. Display the information for the Layer 3 VLAN interfaces using the show ip address command.
CCNAS-ASA # show ip address
System IP Addresses:
Interface Name IP address Subnet mask Method
Vlan1 inside 192.168.1.1 255.255.255.0 manual
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 24 of 39
CCNA Security Chapter 9 Lab
Step 2: Configure static NAT to the DMZ server using a network object.
Configure a network object named dmz-server and assign it the static IP address of the DMZ server
(192.168.2.3). While in object definition mode, use the nat command to specify that this object is used to
translate a DMZ address to an outside address using static NAT, and specify a public translated address of
209.165.200.227.
CCNAS-ASA(config)# object network dmz-server
CCNAS-ASA(config-network-object)# host 192.168.2.3
CCNAS-ASA(config-network-object)# nat (dmz,outside) static 209.165.200.227
Step 3: Configure an ACL to allow access to the DMZ server from the Internet.
Configure a named access list (OUTSIDE-DMZ) that permits any IP protocol from any external host to the
internal IP address of the DMZ server. Apply the access list to the ASA outside interface in the IN direction.
CCNAS-ASA(config)# access-list OUTSIDE-DMZ permit ip any host 192.168.2.3
CCNAS-ASA(config)# access-group OUTSIDE-DMZ in interface outside
Note: Unlike IOS ACLs, the ASA ACL permit statement must permit access to the internal private DMZ
address. External hosts access the server using its public static NAT address, the ASA translates it to the
internal host IP address, and then applies the ACL.
You can modify this ACL to allow only services that you want to be exposed to external hosts, such as web
(HTTP) or file transfer (FTP).
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 25 of 39
CCNA Security Chapter 9 Lab
b. Clear the NAT counters using the clear nat counters command.
CCNAS-ASA# clear nat counters
c. Ping from PC-C to the DMZ server at the public address 209.165.200.227. The pings should be
successful.
d. Issue the show nat and show xlate commands on the ASA to see the effect of the pings. Both the PAT
(inside to outside) and static NAT (dmz to outside) policies are shown.
CCNAS-ASA# show nat
Reflection
1. How does the configuration of the ASA firewall differ from that of an ISR?
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 26 of 39
CCNA Security Chapter 9 Lab
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
There are more security features and default settings, such as interface security levels, built-in ACLs, and
default inspection policies.
2. What does the ASA use to define address translation and what is the benefit?
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
Objects and groups allow the creation of modular structures and the configuration of attributes.
3. How does the ASA 5505 use logical and physical interfaces to manage security and how does this differ from
other ASA models?
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
You must create logical L3 SVIs and assign them to ports on an ASA 5505, like an L3 switch. These L3 VLAN
interfaces are assigned security levels to control traffic from one interface to another. Other ASAs can assign
IP addresses and security levels directly to a physical port like an ISR.
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 27 of 39
CCNA Security Chapter 9 Lab
Router Model Ethernet Interface #1 Ethernet Interface #2 Serial Interface #1 Serial Interface #2
1800 Fast Ethernet 0/0 Fast Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(F0/0) (F0/1)
1900 Gigabit Ethernet 0/0 Gigabit Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(G0/0) (G0/1)
2801 Fast Ethernet 0/0 Fast Ethernet 0/1 Serial 0/1/0 (S0/1/0) Serial 0/1/1 (S0/1/1)
(F0/0) (F0/1)
2811 Fast Ethernet 0/0 Fast Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(F0/0) (F0/1)
2900 Gigabit Ethernet 0/0 Gigabit Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(G0/0) (G0/1)
Note: To find out how the router is configured, look at the interfaces to identify the type of router and how many
interfaces the router has. There is no way to effectively list all the combinations of configurations for each router
class. This table includes identifiers for the possible combinations of Ethernet and Serial interfaces in the device.
The table does not include any other type of interface, even though a specific router may contain one. An
example of this might be an ISDN BRI interface. The string in parenthesis is the legal abbreviation that can be
used in Cisco IOS commands to represent the interface.
Device Configs
Note: ISR G2 devices have GigabitEthernet interfaces instead of FastEthernet Interfaces.
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 28 of 39
CCNA Security Chapter 9 Lab
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 29 of 39
CCNA Security Chapter 9 Lab
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 30 of 39
CCNA Security Chapter 9 Lab
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 31 of 39
CCNA Security Chapter 9 Lab
interface Ethernet0/1
!
interface Ethernet0/2
!
interface Ethernet0/3
!
interface Ethernet0/4
!
interface Ethernet0/5
!
interface Ethernet0/6
!
interface Ethernet0/7
!
interface Vlan1
nameif inside
security-level 100
ip address 192.168.1.1 255.255.255.0
!
interface Vlan2
nameif outside
security-level 0
ip address dhcp setroute
!
ftp mode passive
object network obj_any
subnet 0.0.0.0 0.0.0.0
pager lines 24
logging asdm informational
mtu outside 1500
mtu inside 1500
icmp unreachable rate-limit 1 burst-size 1
no asdm history enable
arp timeout 14400
no arp permit-nonconnected
!
object network obj_any
nat (inside,outside) dynamic interface
timeout xlate 3:00:00
timeout pat-xlate 0:00:30
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
timeout tcp-proxy-reassembly 0:01:00
timeout floating-conn 0:00:00
dynamic-access-policy-record DfltAccessPolicy
user-identity default-domain LOCAL
http server enable
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 32 of 39
CCNA Security Chapter 9 Lab
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 33 of 39
CCNA Security Chapter 9 Lab
: end
Router R1
R1# show run
Building configuration...
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 34 of 39
CCNA Security Chapter 9 Lab
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0/0
ip address 10.1.1.1 255.255.255.252
clock rate 64000
!
interface Serial0/0/1
no ip address
shutdown
clock rate 2000000
!
ip forward-protocol nd
!
ip http server
no ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 Serial0/0/0
!
control-plane
!
line con 0
exec-timeout 0 0
logging synchronous
login local
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
exec-timeout 0 0
login local
transport input ssh
!
scheduler allocate 20000 1000
!
end
Router R2
R2# show run
Building configuration...
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 35 of 39
CCNA Security Chapter 9 Lab
!
version 15.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
no aaa new-model
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
cts logging verbose
!
!
redundancy
!
interface Loopback0
ip address 172.30.1.1 255.255.255.0
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0/0
ip address 10.1.1.2 255.255.255.252
!
interface Serial0/0/1
ip address 10.2.2.2 255.255.255.252
clock rate 64000
!
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 36 of 39
CCNA Security Chapter 9 Lab
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip route 172.16.3.0 255.255.255.0 Serial0/0/1
ip route 209.165.200.224 255.255.255.248 Serial0/0/0
!
control-plane
!
line con 0
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
login
transport input none
!
scheduler allocate 20000 1000
!
end
Router R3
R3# show run
Building configuration...
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 37 of 39
CCNA Security Chapter 9 Lab
!
cts logging verbose
!
redundancy
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface GigabitEthernet0/1
ip address 172.16.3.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0/0
no ip address
shutdown
clock rate 2000000
!
interface Serial0/0/1
ip address 10.2.2.1 255.255.255.252
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 Serial0/0/1
!
control-plane
!
line con 0
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
login
transport input none
!
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 38 of 39
CCNA Security Chapter 9 Lab
Switches S1, S2, and S3 – Use default configs, except for host name
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 39 of 39