How To Configure Failover For Cisco Unified SIP Proxy
How To Configure Failover For Cisco Unified SIP Proxy
How To Configure Failover For Cisco Unified SIP Proxy
Proxy
Document ID: 116015
Contributed by Randy Yuan Wu, Cisco TAC Engineer.
Apr 02, 2013
Contents
Introduction
Prerequisites
Requirements
Components
Conventions
Create a Fault−Resistant Default Gateway
Option One DNS SRV
Option Two HSRP
Setup Basic Connectivity
Setup Router−Level Failover
Track the Interfaces
HSRP Configuration of Primary Router
HSRP Configuration of Secondary Router
Related Information
Introduction
This document discusses two options to use in order to configure redundancy (failover) for Cisco Unified SIP
Proxy.
Prerequisites
Requirements
Cisco recommends that you have knowledge of these topics:
Components
The information in this document is based on the CUSP.
The information in this document was created from the devices in a specific lab environment. All of the
devices used in this document started with a cleared default) configuration. If your network is live, make sure
that you understand the potential impact of any command.
Conventions
Refer to Cisco Technical Tips Conventions for more information on document conventions.
1. First, two DNS SRV (service) records must be created, one for each cusp. The record which points to
cusp1 has a higher priority.
2. Secondly, two DNS A (hostname) records must be created so that the destinations in the DNS SRV
records can be resolved. This example shows what the DNS server should contain in its records.
Note: HSRP configuration for two CUSPs in a single router has not been tested. It might be possible to take
this solution and expand it for multiple CUSPs, but it is not supported at this time.
interface GigabitEthernet0/1
ip address 192.168.20.80 255.255.252.0
!!
interface Integrated−Service−Engine1/0
ip unnumbered GigabitEthernet0/1
service−module ip address 192.168.20.81 255.255.252.0
service−module ip default−gateway 192.168.20.80
!!
ip route 192.168.20.81 255.255.255.255 Integrated−Service−Engine1/0
The secondary router has an address of 192.168.20.90 and its CUSP has an address of
192.168.20.81.
interface GigabitEthernet0/1
ip address 192.168.20.90 255.255.252.0
!!
interface Integrated−Service−Engine1/0
ip unnumbered GigabitEthernet0/1
service−module ip address 192.168.20.81 255.255.252.0
service−module ip default−gateway 192.168.20.90
!!
ip route 192.168.20.81 255.255.255.255 Integrated−Service−Engine1/0
interface GigabitEthernet0/1
standby 0 ip 192.168.20.7
standby 0 priority 100
interface GigabitEthernet0/1
standby 0 ip 192.168.20.7
standby 0 priority 90
Both routers have their standby IP addresses set to the virtual router; however, the primary router has a higher
priority than the secondary one. That means, while all other things are identical, the primary router is
considered active, and all SIP traffic goes thru the primary router and then to the CUSP on that router. The
secondary router is in standby and only takes over if the primary router goes down for any reason, such as a
power outage.
The way to do this is to setup an ICMP echo to the CUSP from each router. In this case, the echo is sent every
two (2) seconds, with a one (1) second timeout. The lower these values are, then the quicker the router can
detect that the CUSP is down. However, if the ICMP echo is set too low, this could result in false positives.
The last configuration line in this example begins the echo and sets it to occur forever.
Note: ICMP echoes cannot track the state of the SIP port. HSRP failover cannot be initiated if the problem is
at the port level. To reiterate; if the router fails, the other router takes over; if the pings for the IP Service
Level Agreements (SLA) fail, the other router takes over; if SIP port fails, this is not detected.
ip sla 1
icmp−echo 192.168.20.81
timeout 1000
frequency 2
!!
ip sla schedule 1 life forever start−time now
An object must be setup to track the state of that echo. The object number is 100 in this case. The interface
must be set to decrement the priority of the router by 20, if this object's status is down. This means if the
CUSP on the primary router goes inactive for some reason, its priority will drop from 100 to 80. Its priority is
then less than that of the secondary, which has a priority of 90. If standby 0 preempt is set, it forces the
secondary router to takeover for the primary, and then the SIP traffic goes to the secondary CUSP.
Related Information
• Hot Standby Router Protocol (HSRP): Frequently Asked Questions
• Cisco Unified SIP Proxy Software
• Technical Support & Documentation − Cisco Systems