22-5
Cisco ASA 5500 Series Configuration Guide using the CLI
Chapter22 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
Step1 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.
Step2 ipv6 route if_name destination
next_hop_ipv6_addr [admin_distance]
Example:
hostname(config)# ipv6 route inside
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.