Default Route

Default Route
Configuring multiple routes can be a time-consuming task, especially for the traffic bound
for the Internet. Therefore, you can create a special route known as a default route. This
route is automatically used for any traffic that does not match any other routes on the system.
When configuring the default route, you use a destination IP address of 0.0.0.0 and a
netmask of 0.0.0.0.
Instead of using the address of a gateway router when you are configuring a static route, you
can specify the IP address of one of the Security Appliance’s own interfaces. When you create
a route in this manner, the Security Appliance does not have a destination IP address to which
to send the traffic. Therefore, the Security Appliance broadcasts an ARP request on the
specified interface to determine the address to which to send the traffic. Any router that has
a route to the destination address can generate a proxy ARP (using its own interface’s
Ethernet address), enabling the Security Appliance to update its ARP cache with an entry for
the IP address of the traffic. The Security Appliance uses this proxy ARP to then send the
traffic to the router that has a route to the destination IP address.
gateway The IP address of the gateway to which the routed traffic will be
sent.
metric The administrative distance of the route. Normally, this indicates
the number of hops to the destination network. When routing,
this value is used to choose the best route when multiple routes
exist.
Table 11-7 route Command Parameters (Continued)
Parameter Description
280 Chapter 11: Routing and the Cisco Security Appliance
Static routes are stored in your Security Appliance configuration and restored when your
Security Appliance is reloaded. To view the routes on your Security Appliance, you use the
show route command. This command displays all the routes in the Security Appliance’s
routing table, such as shown in Example 11-1.
The static routes with the keyword CONNECT indicate routes that are automatically
created when you define the IP address for an interface. The routes with the OTHER
keyword indicate static routes that have been manually entered.
Sometimes, you may want to remove the static routes that you have already configured. You
can do this using the clear route command.
Dynamic Routes
Besides creating static routes manually, the Cisco Security Appliance also supports some
dynamic routing functionality. Dynamic routes are created based on routing protocols that
automatically add entries into the Security Appliance’s routing table. The Security Appliance
supports the following two different routing protocols, but only one can be active on a single
Security Appliance:
■ RIP
■ OSPF
NOTE Although you can configure the Security Appliance to generate an ARP request to
determine the destination address to which to send traffic, this configuration is not
recommended. ARP is an unauthenticated protocol and this configuration can pose a
security risk.
Example 11-1 Output of the show route Command
pix515a# show route
intf5 0.0.0.0 0.0.0.0 10.89.141.1 1 OTHER static

Static Routes

Static Routes
Static routes are manually configured routes that do not frequently change. They essentially
direct your Security Appliance to send traffic destined for a specific network to a specific
router that has connectivity to the destination network. Static routes are perhaps best
explained by using a network example. Figure 11-1 illustrates a simple network
configuration with hosts on both the 10.10.10.0 and 10.10.20.0 networks.
278 Chapter 11: Routing and the Cisco Security Appliance
Figure 11-1 Static Routes
When you configure the inside interface on the Security Appliance with a Class C address of
10.10.10.1, the Security Appliance automatically creates a route that enables it to send traffic
for the 10.10.10.0 network to the inside interface (identified by the keyword CONNECT
when viewing the routes). The Security Appliance may also receive traffic for the host whose
IP address is 10.10.20.10. By default, if the Security Appliance receives traffic for
10.10.20.10, it will not know where to send it. To enable the Security Appliance to know
where to send traffic for 10.10.20.10, you can configure a static route using the route
command. The syntax for the route command is as follows:
route interface-name ip-netmask gateway [metric]
The parameters for the route command are explained in Table 11-7. Using the network in
Figure 11-1, you can define a static route for the 10.10.20.0 network using the following
command:
pix515a(config)# route inside 10.10.20.0 255.255.255.0 10.10.10.2 1
Table 11-7 route Command Parameters
Parameter Description
interface-name The name of the interface on the Security Appliance through
which the traffic will travel to reach the destination network
(the name assigned in the nameif command).
ip-address The IP address(es) of the traffic to which the route pertains.
netmask The network mask of the route, which indicates the number of
addresses covered by the route. (For example, a Class C
network pertains to 256 different addresses and is specified as
255.255.255.0.)

IP Routing

IP Routing
At the IP layer, your Cisco Security Appliance routes traffic based on the IP addresses in the
network traffic. It does not provide all the functionality of a router, but it does enable you to
define the following two types of routes:
■ Static routes
■ Dynamic routes

Managing VLANs

Managing VLANs
After you create your logical interfaces, you also need to assign the following parameters to
each logical interface:
■ Interface name
■ Security level
■ IP address
Table 11-6 interface Command Parameters
Parameter Description
hardware-id Specifies the network interface on which the command will be applied (such
as Ethernet0).
subinterface-num The subinterface identifier that will be assigned for this logical interface,
which can be between 1 and 4,294,967,293.
mapped-name In multiple-context mode, enter the mapped name if it was assigned using the
allocate-interface command.
shutdown Keyword indicating that the interface should be administratively shut down.
NOTE You do not need to assign a VLAN to the physical interface to assign logical
interfaces to an interface.
IP Routing 277
Using the nameif interface command, you can assign an interface name to a logical interface.
The syntax for the nameif command is as follows:
nameif interface-name
The interface-name parameter for the nameif command is the name to be assigned to the
specified interface.
Using the security-level interface command, you can assign a security level to a logical
interface. The syntax for the security-level command is as follows:
security-level security-level
The security-level parameter is the security level for the specified interface in the range from
0 to 100, with 0 being the least trusted interface and 100 being the most trusted interface.
Finally, you need to complete your logical interface configuration by assigning an IP address
to the logical interface. To assign an IP address to an interface, you use the ip address
command. The syntax for this command is as follows:
ip address ip-address

interface Command Parameters

interface Command Parameters
Parameter Description
hardware-id Specifies the network interface on which the command will be applied (such
as Ethernet0).
subinterface-num The subinterface identifier that will be assigned for this logical interface,
which can be between 1 and 4,294,967,293.
mapped-name In multiple-context mode, enter the mapped name if it was assigned using the
allocate-interface command.
shutdown Keyword indicating that the interface should be administratively shut down.

After you have created a subinterface on the physical interface, the subinterface must be
assigned to a VLAN. Use the VLAN command while in the subinterface to assign that
subinterface to a specific VLAN, the syntax for which is as follows:
vlan [vlan-id]
The vlan-id parameter for the vlan command specifies the VLAN identifier to be associated
with either the network or the logical interface.
Suppose that interface Ethernet0 on your Security Appliance, such as an ASA 5520, is
connected to an enterprise LAN and that you want to configure three logical interfaces on
that same physical interface for VLAN 40 through VLAN 42. The commands to accomplish
this are as follow:
pix515a(config)# interface Ethernet0.1
pix515a(config-subif)# vlan 40
pix515a(config)# interface Ethernet0.2
pix515a(config-subif)# vlan 41
pix515a(config)# interface Ethernet0.3
pix515a(config-subif)# vlan 42
Managing VLANs
After you create your logical interfaces, you also need to assign the following parameters to
each logical interface:
■ Interface name
■ Security level
■ IP address
Table 11-6 interface Command Parameters
Parameter Description
hardware-id Specifies the network interface on which the command will be applied (such
as Ethernet0).
subinterface-num The subinterface identifier that will be assigned for this logical interface,
which can be between 1 and 4,294,967,293.
mapped-name In multiple-context mode, enter the mapped name if it was assigned using the
allocate-interface command.
shutdown Keyword indicating that the interface should be administratively shut down.
NOTE You do not need to assign a VLAN to the physical interface to assign logical
interfaces to an interface.