9.3.1.2 Lab - Configure ASA 5506-X Basic Settings and Firewall Using CLI
9.3.1.2 Lab - Configure ASA 5506-X Basic Settings and Firewall Using CLI
© 2015 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 24 www.netacad.com
Lab - Configuring ASA 5506-X Basic Settings and Firewall Using CLI
IP Addressing Table
Objectives
Part 1: Configure Basic Device Settings
Cable the network as shown in the topology.
Configure hostnames and interface IP addresses for routers, switches, and PCs.
Configure static routes on R2 and default routes on R1 and R3.
Enable HTTP and SSH access for R1.
Configure PC host IP settings.
Verify connectivity between hosts 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 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 24 www.netacad.com
Lab - Configuring ASA 5506-X Basic Settings and Firewall Using CLI
Background/Scenario
The Cisco Adaptive Security Appliance (ASA) is an advanced network security device that integrates a
stateful firewall, VPN, and FirePOWER services. This lab employs an ASA 5506-X 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 to configure 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.
The scenario for this lab assumes your company has a location connected to an ISP. R1 is 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 routed 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 5506-X with an 8-port integrated switch, running OS version
9.10(1), Adaptive Security Device Manager (ASDM) version 7.10(1), and comes with a Base license that
allows a maximum of five VLANs.
© 2015 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 24 www.netacad.com
Lab - Configuring ASA 5506-X Basic Settings and Firewall Using CLI
Note: Ensure that the routers and switches have been erased and have no startup configurations.
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) (not required)
1 ASA 5506-X (OS version 9.10(1) and ASDM version 7.10(1)) and Base license or comparable)
3 PCs (Windows with SSH client software)
Serial and Ethernet cables as shown in the topology
Console cables to configure Cisco networking devices
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.
© 2015 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 24 www.netacad.com
Lab - Configuring ASA 5506-X Basic Settings and Firewall Using CLI
Step 7: Save the basic running configuration for each router and switch.
© 2015 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 24 www.netacad.com
Lab - Configuring ASA 5506-X Basic Settings and Firewall Using CLI
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.
Hardware: ASA5506, 4096 MB RAM, CPU Atom C2000 series 1250 MHz, 1 CPU (4 cores)
Internal ATA Compact Flash, 8000MB
BIOS Flash M25P64 @ 0xfed01000, 16384KB
Encryption hardware device : Cisco ASA Crypto on-board accelerator (revision 0x1)
Number of accelerators: 1
© 2015 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 24 www.netacad.com
Lab - Configuring ASA 5506-X Basic Settings and Firewall Using CLI
File Systems:
© 2015 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 24 www.netacad.com
Lab - Configuring ASA 5506-X Basic Settings and Firewall Using CLI
b. Display the contents of flash memory using either the show flash, show disk0, dir flash:, or dir disk0:
command. These commands display similar output.
ciscoasa# show flash
--#-- --length-- -----date/time------ path
107 4096 Jan 01 1980 00:00:00 FSCK0000.REC
108 28672 Jan 01 1980 00:00:00 FSCK0001.REC
109 33 Feb 21 2019 23:24:58 .boot_string
11 4096 Aug 29 2017 14:25:32 log
13 25250 Feb 25 2019 22:13:00 log/asa-appagent.log
20 4096 Aug 29 2017 14:26:24 crypto_archive
21 4096 Aug 29 2017 14:26:28 coredumpinfo
22 59 Aug 29 2017 14:26:28 coredumpinfo/coredump.cfg
110 4096 Jan 01 1980 00:00:00 FSCK0002.REC
111 34143680 Feb 20 2019 01:53:30 asdm-7101.bin
113 115316320 Feb 20 2019 02:28:44 asa9101-lfbff-k8.SPA
114 35209829 Oct 04 2017 03:17:02 anyconnect-win-4.5.02033-webdeploy-k9.pkg
<output omitted>
:
: Serial Number: JAD21140GC5
: Hardware: ASA5506, 4096 MB RAM, CPU Atom C2000 series 1250 MHz, 1 CPU (4 cores)
:
ASA Version 9.10(1)
!
hostname ciscoasa
enable password ***** pbkdf2
names
no mac-address auto
!
interface GigabitEthernet1/1
shutdown
no nameif
no security-level
no ip address
!
interface GigabitEthernet1/2
shutdown
no nameif
no security-level
© 2015 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 24 www.netacad.com
Lab - Configuring ASA 5506-X Basic Settings and Firewall Using CLI
no ip address
!
Note: To stop the output from a command using the CLI, press Q.
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 global
configuration command. When entering global configuration, you will initially be prompted to enable
anonymous error reporting. Enter A to be prompted for this at a later date.
ciscoasa# conf t
ciscoasa(config)#
© 2015 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 9 of 24 www.netacad.com
Lab - Configuring ASA 5506-X Basic Settings and Firewall Using CLI
c. Review this output and pay particular attention to the 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 enable the desired interfaces.
***
*** --- START GRACEFUL SHUTDOWN ---
Shutting down isakmp
Shutting down webvpn
Shutting down sw-module
Shutting down License Controller
Shutting down File system
<output omitted>
© 2015 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 10 of 24 www.netacad.com
Lab - Configuring ASA 5506-X Basic Settings and Firewall Using CLI
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
prompt you to pre-configure the firewall using interactive prompts. This presents a series of interactive
prompts to configure basic ASA settings.
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 [2019]: <Enter>
Month [Mar]: <Enter>
Day [19]: <Enter>
Time [23:32:19]: <Enter>
Management IP address: 192.168.100.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 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 11 of 24 www.netacad.com
Lab - Configuring ASA 5506-X Basic Settings and Firewall Using CLI
ASA-Init>
Note: In the above configuration, the IP address of the host running ASDM was left blank. It is not
necessary to install ASDM on a host. It can be run from the flash memory of the ASA device itself using
the browser of the host.
Note: The responses to the prompts are automatically stored in the startup-config and the running config.
However, additional security-related commands, such as a global default inspection service policy, are
inserted into the running-config by the ASA OS.
b. Enter privileged EXEC mode with the enable command. Enter class for the password.
c. Issue the show run command to see the additional security-related configuration commands that are
inserted by the ASA.
d. Issue the write memory command to capture the additional security-related commands in the startup-
config file.
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 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 12 of 24 www.netacad.com
Lab - Configuring ASA 5506-X Basic Settings and Firewall Using CLI
© 2015 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 13 of 24 www.netacad.com
Lab - Configuring ASA 5506-X Basic Settings and Firewall Using CLI
CCNAS-ASA(config-if)# no ip address
Interface security-level notes:
You may receive a message that the security level for the inside interface was set automatically to 100, and
the outside interface was set to 0. The ASA uses interface security levels from 0 to 100 to enforce the security
policy. Security level 100 (inside) is the most secure and level 0 (outside) is the least secure.
By default, the ASA applies a policy where traffic from a higher security level interface to one with a lower
level is permitted and traffic from a lower security level interface to one with a higher security level is denied.
The ASA default security policy permits outbound traffic, which is inspected, by default. Returning traffic is
allowed due to stateful packet inspection. This default “routed mode” firewall behavior of the ASA allows
packets to be routed from the inside network to the outside network, but not vice-versa. In Part 4 of this lab,
you will configure NAT to increase the firewall protection.
d. Display the status for all ASA interfaces using the show interface ip brief command.
Note: The command syntax is different from the show ip interface brief IOS command. If any of the
physical or logical interfaces previously configured are not up/up, troubleshoot as necessary before
continuing.
Tip: Most ASA show commands, as well as ping, copy, and others, can be issued from within any
configuration mode prompt without the do command that is required with IOS.
CCNAS-ASA(config-if)# show interface ip brief
Interface IP-Address OK? Method Status Protocol
Virtual0 127.1.0.1 YES unset up up
GigabitEthernet1/1 209.165.200.226 YES manual up up
GigabitEthernet1/2 192.168.1.1 YES manual up up
GigabitEthernet1/3 unassigned YES unset administratively down down
GigabitEthernet1/4 unassigned YES unset administratively down down
GigabitEthernet1/5 unassigned YES unset administratively down down
GigabitEthernet1/6 unassigned YES unset administratively down down
GigabitEthernet1/7 unassigned YES unset administratively down down
GigabitEthernet1/8 unassigned YES unset administratively down down
Internal-Control1/1 127.0.1.1 YES unset up up
Internal-Data1/1 unassigned YES unset down down
Internal-Data1/2 unassigned YES unset up up
Internal-Data1/3 unassigned YES unset up up
Internal-Data1/4 169.254.1.1 YES unset up up
Management1/1 unassigned YES unset administratively down down
e. Display the Layer 3 interface information using the show ip address command.
CCNAS-ASA(config-if)# show ip address
System IP Addresses:
Interface Name IP address Subnet mask Method
GigabitEthernet1/1 outside 209.165.200.226 255.255.255.248 manual
GigabitEthernet1/2 inside 192.168.1.1 255.255.255.0 manual
Current IP Addresses:
Interface Name IP address Subnet mask Method
GigabitEthernet1/1 outside 209.165.200.226 255.255.255.248 manual
GigabitEthernet1/2 inside 192.168.1.1 255.255.255.0 manual
f. You may also use the command show running-config interface to display the configuration for a
particular interface from the running-config.
CCNAS-ASA(config-if)# show run interface g1/1
© 2015 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 14 of 24 www.netacad.com
Lab - Configuring ASA 5506-X Basic Settings and Firewall Using CLI
!
interface GigabitEthernet1/1
nameif outside
security-level 0
ip address 209.165.200.226 255.255.255.248
© 2015 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 15 of 24 www.netacad.com
Lab - Configuring ASA 5506-X Basic Settings and Firewall Using CLI
e. Ping from the ASA to R1 S0/0/0 IP address 10.1.1.1. Was the ping successful?
____________________________________________________________________________________
____________________________________________________________________________________
© 2015 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 16 of 24 www.netacad.com
Lab - Configuring ASA 5506-X Basic Settings and Firewall Using CLI
c. From PC-B, attempt to ping the R1 G0/0 interface at IP address 209.165.200.225. Were the pings
successful? ___________________________
d. Issue the show nat command on the ASA to see the translated and untranslated hits. Notice that, of the
pings from PC-B, four were translated and four were not because ICMP is not being inspected by the
global inspection policy. The outgoing pings (echoes) were translated, and the returning echo replies
were blocked by the firewall policy. You will configure the default inspection policy to allow ICMP in the
next step.
Note: Depending on the processes and daemons running on the particular computer used as PC-B, you
may see more translated and untranslated hits than the four echo requests and echo replies.
CCNAS-ASA# show nat
e. Ping from PC-B to R1 again and quickly issue the show xlate command to see the addresses being
translated.
CCNAS-ASA# show xlate
1 in use, 1 most used
Flags: D - DNS, e - extended, I - identity, i - dynamic, r - portmap,
s - static, T - twice, N - net-to-net
Note: The flags (r and i) indicate that the translation was based on a port map (r) and was done
dynamically (i).
f. Open a browser on PC-B and enter the IP address of R1 G0/0 (209.165.200.225). In a pop-up window,
you should be prompted by R1 that authentication is required. TCP-based HTTP traffic is permitted, by
default, by the firewall inspection policy.
g. On the ASA, reissue the show nat and show xlate commands to see the hits and addresses being
translated for the HTTP connection.
© 2015 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 17 of 24 www.netacad.com
Lab - Configuring ASA 5506-X Basic Settings and Firewall Using CLI
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
match default-inspection-traffic
!
!
policy-map type inspect dns migrated_dns_map_1
parameters
message-length maximum client auto
message-length maximum 512
no tcp-inspection
policy-map global_policy
class inspection_default
inspect dns migrated_dns_map_1
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
<output omitted>
b. Add the inspection of ICMP traffic to the policy map list using the following commands:
CCNAS-ASA# configure terminal
CCNAS-ASA(config)# policy-map global_policy
CCNAS-ASA(config-pmap)# class inspection_default
CCNAS-ASA(config-pmap-c)# inspect icmp
c. Display the default MPF polich map to verify ICMP is now listed in the inspection rules.
CCNAS-ASA(config-pmap-c)# show run policy-map
!
policy-map type inspect dns migrated_dns_map_1
© 2015 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 18 of 24 www.netacad.com
Lab - Configuring ASA 5506-X Basic Settings and Firewall Using CLI
parameters
message-length maximum client auto
message-length maximum 512
no tcp-inspection
policy-map global_policy
class inspection_default
inspect dns migrated_dns_map_1
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
inspect icmp
<output omitted>
d. From PC-B, attempt to ping the R1 G0/0 interface at IP address 209.165.200.225. The pings should be
successful this time because ICMP traffic is now being inspected and legitimate return traffic is being
allowed.
© 2015 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 19 of 24 www.netacad.com
Lab - Configuring ASA 5506-X Basic Settings and Firewall Using CLI
e. 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.
Note: You may receive a message that a RSA key pair is already defined. To replace the RSA key pair
enter yes at the prompt.
b. Save the RSA keys to persistent flash memory using either the copy run start or write mem command.
CCNAS-ASA# write mem
Building configuration...
Cryptochecksum: 3c845d0f b6b8839a f9e43be0 33feb4ef
3270 bytes copied in 0.890 secs
[OK]
c. Configure the ASA to allow SSH connections from any host on the inside network (192.168.1.0/24) and
from the remote management host at the branch office (172.16.3.3) on the outside network. Set the SSH
timeout to 10 minutes (the default is 5 minutes).
CCNAS-ASA(config)# ssh 192.168.1.0 255.255.255.0 inside
CCNAS-ASA(config)# ssh 172.16.3.3 255.255.255.255 outside
© 2015 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 20 of 24 www.netacad.com
Lab - Configuring ASA 5506-X Basic Settings and Firewall Using CLI
c. Display the information for the interfaces using the show ip address command.
CCNAS-ASA # show ip address
© 2015 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 21 of 24 www.netacad.com
Lab - Configuring ASA 5506-X Basic Settings and Firewall Using CLI
System IP Addresses:
Interface Name IP address Subnet mask Method
GigabitEthernet1/1 outside 209.165.200.226 255.255.255.248 manual
GigabitEthernet1/2 inside 192.168.1.1 255.255.255.0 manual
GigabitEthernet1/3 dmz 192.168.2.1 255.255.255.0 manual
Current IP Addresses:
Interface Name IP address Subnet mask Method
GigabitEthernet1/1 outside 209.165.200.226 255.255.255.248 manual
GigabitEthernet1/2 inside 192.168.1.1 255.255.255.0 manual
GigabitEthernet1/3 dmz 192.168.2.1 255.255.255.0 manual
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-if)# 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).
b. Clear the NAT counters using the clear nat counters command.
CCNAS-ASA# clear nat counters
© 2015 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 22 of 24 www.netacad.com
Lab - Configuring ASA 5506-X Basic Settings and Firewall Using CLI
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
Note: Pings from inside to outside are translated hits. Pings from outside host PC-C to the DMZ are
considered untranslated hits.
CCNAS-ASA# show xlate
1 in use, 3 most used
Flags: D - DNS, i - dynamic, r - portmap, s - static, I - identity, T - twice
NAT from dmz:192.168.2.3 to outside:209.165.200.227
flags s idle 0:22:58 timeout 0:00:00
Note: This time the flag is “s”, which indicates a static translation.
e. You can also access the DMZ server from a host on the inside network because the ASA inside interface
(G1/2) is set to a security level of 100 (the highest) and the DMZ interface (G1/3) is set to 70. The ASA
acts like a router between the two networks. Ping the DMZ server (PC-A) internal address (192.168.2.3)
from inside network host PC-B (192.168.1.X). The pings should be successful because of the interface
security level and the fact that ICMP is being inspected on the inside interface by the global inspection
policy. The pings from PC-B to PC-A will not affect the NAT translation counts because both PC-B and
PC-A are behind the firewall, and no translation takes place.
The DMZ server cannot ping PC-B on the inside network because the DMZ interface VLAN 3 has a lower
security level and because the no forward command was specified when the VLAN 3 interface was
created. Try to ping from the DMZ server PC-A to PC-B at IP address 192.168.1.3. The pings should not
be successful.
Use the show run command to display the configuration for VLAN 3.
CCNAS-ASA# show run interface g1/3
!
interface g1/3
nameif dmz
security-level 70
ip address 192.168.2.1 255.255.255.0
Note: An access list can be applied to the inside interface to control the type of access to be permitted or
denied to the DMZ server from inside hosts.
Reflection
1. How does the configuration of the ASA firewall differ from that of an ISR?
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
© 2015 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 23 of 24 www.netacad.com
Lab - Configuring ASA 5506-X Basic Settings and Firewall Using CLI
2. What does the ASA use to define address translation and what is the benefit?
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
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.
© 2015 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 24 of 24 www.netacad.com