1-5
Cisco ASA Series CLI Configuration Guide
Chapter 1 Configuring Static and Default Routes
Configuring Static and Default Routes
Tip
You can enter 0 0 instead of 0.0.0.0 0.0.0.0 for the destination network address and mask, as shown in
the following example:
hostname(config)#
route outside 0 0 192.168.1 1
Configuring IPv6 Default and Static Routes
The ASA automatically routes IPv6 traffic between directly connected hosts if the interfaces to which
the hosts are attached are enabled for IPv6 and the IPv6 ACLs allow the traffic.
To configure an IPv6 default route and static routes, perform the following steps:
Detailed Steps
Command
Purpose
route
if_name
0.0.0.0 0.0.0.0
gateway_ip
[
distance
|
tunneled
]
Example:
hostname(config)# route outside 0 0
192.168.2.4 tunneled
Enables you to add a static route.
The
dest_ip
and
mask
arguments indicate the IP address for the destination
network and the
gateway_ip
argument is the address of the next hop router.
The addresses you specify for the static route are the addresses that are in
the packet before entering the ASA and performing NAT.
The
distance
argument
is the administrative distance for the route. The
default is 1 if you do not specify a value. Administrative distance is a
parameter used to compare routes among different routing protocols. The
default administrative distance for static routes is 1, giving it precedence
over routes discovered by dynamic routing protocols but not directly
connect routes. The default administrative distance for routes discovered
by OSPF is 110. If a static route has the same administrative distance as a
dynamic route, the static routes take precedence. Connected routes always
take precedence over static or dynamically discovered routes.
Command
Purpose
Step 1
ipv6 route
if_name
::/0
next_hop_ipv6_addr
Example:
hostname(config)# ipv6 route inside
7fff::0/32 3FFE:1100:0:CC00::1
Adds a default IPv6 route.
The example routes packets for network 7fff::0/32 to a networking
device on the inside interface at 3FFE:1100:0:CC00::1
The address ::/0 is the IPv6 equivalent of any.
Step 2
ipv6 route
if_name
destination
next_hop_ipv6_addr
[
admin_distance
]
Example:
hostname(config)# ipv6 route i
nside
7fff::0/32 3FFE:1100:0:CC00::1 [110]
Adds an IPv6 static route to the IPv6 routing table.
The example routes packets for network 7fff::0/32 to a networking
device on the inside interface at 3FFE:1100:0:CC00::1, and with
an administrative distance of 110.
Summary of Contents for 5505 - ASA Firewall Edition Bundle
Page 28: ...Glossary GL 24 Cisco ASA Series CLI Configuration Guide ...
Page 61: ...P A R T 1 Getting Started with the ASA ...
Page 62: ......
Page 219: ...P A R T 2 Configuring High Availability and Scalability ...
Page 220: ......
Page 403: ...P A R T 2 Configuring Interfaces ...
Page 404: ......
Page 499: ...P A R T 2 Configuring Basic Settings ...
Page 500: ......
Page 533: ...P A R T 2 Configuring Objects and Access Lists ...
Page 534: ......
Page 601: ...P A R T 2 Configuring IP Routing ...
Page 602: ......
Page 745: ...P A R T 2 Configuring Network Address Translation ...
Page 746: ......
Page 845: ...P A R T 2 Configuring AAA Servers and the Local Database ...
Page 846: ......
Page 981: ...P A R T 2 Configuring Access Control ...
Page 982: ......
Page 1061: ...P A R T 2 Configuring Service Policies Using the Modular Policy Framework ...
Page 1062: ......
Page 1093: ...P A R T 2 Configuring Application Inspection ...
Page 1094: ......
Page 1191: ...P A R T 2 Configuring Unified Communications ...
Page 1192: ......
Page 1333: ...P A R T 2 Configuring Connection Settings and QoS ...
Page 1334: ......
Page 1379: ...P A R T 2 Configuring Advanced Network Protection ...
Page 1380: ......
Page 1475: ...P A R T 2 Configuring Modules ...
Page 1476: ......
Page 1549: ...P A R T 2 Configuring VPN ...
Page 1550: ......
Page 1965: ...P A R T 2 Configuring Logging SNMP and Smart Call Home ...
Page 1966: ......
Page 2059: ...P A R T 2 System Administration ...
Page 2060: ......
Page 2098: ...1 8 Cisco ASA Series CLI Configuration Guide Chapter 1 Troubleshooting Viewing the Coredump ...
Page 2099: ...P A R T 2 Reference ...
Page 2100: ......