9-5
Cisco Security Appliance Command Line Configuration Guide
OL-12172-03
Chapter 9 Configuring IP Routing
Configuring Static and Default Routes
Typically, you will use
sla monitor schedule
sla_id
life forever
start-time
now
for the monitoring
schedule, and allow the monitoring configuration determine how often the testing occurs. However,
you can schedule this monitoring process to begin in the future and to only occur at specified times.
Step 2
Associate a tracked static route with the SLA monitoring process by entering the following command:
hostname(config)#
track
track_id
rtr
sla_id
reachability
The
track_id
is a tracking number you assign with this command. The
sla_id
is the ID number of the
SLA process you defined in
Step 1
.
Step 3
Define the static route to be installed in the routing table while the tracked object is reachable using one
of the following options:
•
To track a static route, enter the following command:
hostname(config)#
route
if_name dest_ip mask gateway_ip
[
admin_distance
]
track
track_id
You cannot use the
tunneled
option with the
route
command with static route tracking.
•
To track a default route obtained through DHCP, enter the following commands:
hostname(config)#
interface
phy_if
hostname(config-if)#
dhcp client route track
track_id
hostname(config-if)#
ip addresss dhcp setroute
hostname(config-if)#
exit
Note
You must use the
setroute
argument with the
ip address dhcp
command to obtain the
default route using DHCP.
•
To track a default route obtained through PPPoE, enter the following commands:
hostname(config)#
interface
phy_if
hostname(config-if)#
pppoe client route track
track_id
hostname(config-if)#
ip addresss pppoe setroute
hostname(config-if)#
exit
Note
You must use the
setroute
argument with the
ip address pppoe
command to obtain the
default route using PPPoE.
Step 4
Define the backup route to use when the tracked object is unavailable using one of the following options.
The administrative distance of the backup route must be greater than the administrative distance of the
tracked route. If it is not, the backup route will be installed in the routing table instead of the tracked
route.
•
To use a static route, enter the following command:
hostname(config)#
route
if_name dest_ip mask gateway_ip
[
admin_distance
]
The static route must have the same destination and mask as the tracked route. If you are tracking a
default route obtained through DHCP or PPPoE, then the address and mask would be 0.0.0.0 0.0.0.0.
•
To use a default route obtained through DHCP, enter the following commands:
hostname(config)#
interface
phy_if
hostname(config-if)#
dhcp client route track
track_id
hostname(config-if)#
dhcp client route distance
admin_distance
hostname(config-if)#
ip addresss dhcp setroute
Summary of Contents for 500 Series
Page 38: ...Contents xxxviii Cisco Security Appliance Command Line Configuration Guide OL 12172 03 ...
Page 45: ...P A R T 1 Getting Started and General Information ...
Page 46: ......
Page 277: ...P A R T 2 Configuring the Firewall ...
Page 278: ......
Page 561: ...P A R T 3 Configuring VPN ...
Page 562: ......
Page 891: ...P A R T 4 System Administration ...
Page 892: ......
Page 975: ...P A R T 5 Reference ...
Page 976: ......