How to Configure a Cisco Router With a Firewall

by Travis Wampler

A Cisco router with a software-based firewall offers some of the networking industry's best security features. The configuration of a Cisco router with a firewall is similar to configuration of a router without a firewall. The only addition is the inclusion of security-based commands that restrict access across external interfaces. In either case, configuration is challenging for users not familiar with the Cisco Internetwork Operating System (IOS) and Cisco Command Line Interface (CLI). Therefore, configuration, both custom and standard, should only be attempted by a qualified network administrator.

Configuring a Cisco Router with Cisco IOS Firewall

1

On the admin workstation, install the terminal emulation software; typically, this is located on your router’s installation CD. If you prefer to use third-party applications, many choices are available for free on the Internet.

2

Connect the router to the workstation’s available serial COM port by using the RS-232 serial-cable.

3

On the workstation, start the terminal emulation software. Power on the router; the initial boot sequence will begin. If the router was previously configured, then a prompt will appear, such as “hostname>”; otherwise, on a non-configured router it will state “Router>”.

4

Type “en” or “enable” at the initial command-line and press “Enter." A password prompt will appear. Enter your password, thereby switching you to privileged mode. Your command prompt will change to “Router#”.

5

Type “conf t”. Press “Enter”. This will place you in the global configuration mode. Your prompt will change to “Router (config) #”.

6

Determine if your current router is equipped with IOS Firewall by typing “IP inspect ?”. Press “Enter”. If the router contains the IOS Firewall, a list of commands appears that are specifically designed for firewall configuration. If not, then “% Unrecognized Command” appears. If you need to install the Cisco IOS Firewall, links are provided in the Resource section.

7

If you need to configure specific interfaces--thereby restricting access and network traffic--type “interface [NAME]”, substituting the name of the configurable interface for [NAME]. Press “Enter.” The command prompt changes to “Router (config-if) #”.

8

Begin inputting your router’s new configuration. Press “Enter” after each command line entry. Use the link provided in the Resource section of this article to determine which firewall configuration is best for your network needs. In many cases, a network administrator must design a custom configuration due to the intricacy of the network.

9

After entering all configuration commands, type “CNTL/Z” and press “Enter,” thereby returning the command line to privileged mode.

10

Type “show IP route” or “show IP arp” and press “Enter.” A list of the IP addresses of network neighbors will be shown, indicating your router is configured correctly and communicating with known neighbors with the new configuration.

11

At the command prompt, type “show running-config” and press “Enter.” Your new running configuration displays.

12

Save your new configuration to the router. Type “copy running-config startup-config” and press “Enter.” This will copy your current configuration to your start-up configuration, saving it into the router’s memory.

Tips

  • check It’s always best to alter configuration files on a test router that is not in live production. This prevents any live mistakes.
  • check Gather all necessary IP and network maps prior to beginning your router configuration, thus creating a faster configuration experience.

Warnings

  • close Never alter the configuration of your router without first backing up your existing configuration using TFTP on your admin workstation.
  • close Never enter the configuration menu of a Cisco router unless you are the network administrator and have knowledge of the network's design.

Items you will need

About the Author

Travis Wampler began his writing career along America's forgotten highway, Route 66. His research received awards from the Association of American Geographers. Wampler has written comprehensive plans and grants for city planning departments and agencies. He holds a Bachelor of Science in geography from Southwest Missouri State University and a master's degree in information systems from the University of Phoenix.

Photo Credits

  • photo_camera Thinkstock Images/Comstock/Getty Images