Table Of Contents
Restrictions for SIP Bind Features
Information About SIP Bind Features
How to Configure SIP Bind Features
Setting the IP Address of an Interface to Be Bound
Configuration Example for SIP Bind Features
Configuring SIP Bind Features
This chapter describes the SIP Gateway Support for the bind Command feature. With the addition of the bind command, you can configure the source IP address of signaling packets or both signaling and media packets.
Feature History for SIP Gateway Support for the bind Command
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.
Contents
•
Restrictions for SIP Bind Features
•
Information About SIP Bind Features
•
How to Configure SIP Bind Features
•
Configuration Example for SIP Bind Features
Restrictions for SIP Bind Features
•
Although the bind all command is an accepted configuration, it does not appear in show running-config command output. Because the bind all command is equivalent to issuing the commands bind source and bind media, those are the commands that appear in the show running-config command output.
Information About SIP Bind Features
Note
When you configure SIP on a router, the ports on all its interfaces are open by default. This makes the router vulnerable to malicious attackers who can execute toll fraud across the gateway if the router has a public IP address and a public switched telephone network (PSTN) connection. To eliminate the threat, you should bind an interface to an IP address so that only those ports are open to the outside world. In addition, you should protect any public or untrusted interface by configuring a firewall or an access control list (ACL) to prevent unwanted traffic from traversing the router.
Feature benefits include the following:
•
SIP signaling and media paths can advertise the same source IP address on the gateway for certain applications, even if the paths used different addresses to reach the source. This eliminates confusion for firewall applications that, before to the use of binding, may have taken action on several different source address packets.
•
Firewalls filter messages based on variables such as the message source, the target address, and available ports. Normally a firewall opens only certain addresses or port combination to the outside world and those addresses can change dynamically. Because VoIP technology requires the use of more than one address or port combination, the bind command adds flexibility by assigning a gateway to a specific interface (and therefore the associated address) for the signaling or media application.
•
You can obtain a predefined and separate interface for both signaling and media traffic. Once a bind command is in effect, the interface it limits is bound solely to that purpose. Administrators can therefore dictate the use of one network to transport the signaling and another network to transport the media. The benefits of administrator control are:
–
Administrators know the traffic that run on specific networks, thereby making debugging easier.
–
Administrators know the capacity of the network and the target traffic, thereby making engineering and planning easier.
–
Traffic is controlled, thereby allowing QoS to be monitored.
•
The bind media command relaxes the constraints imposed by the bind control and bind all commands, which can not be set during an active call. The bind media command works with active calls.
To configure SIP Gateway Support for the bind Command, you should understand the following concepts:
•
Voice Media Stream Processing
Source Address
In early releases of Cisco IOS software with SIP functionality, the source address of a packet going out of the gateway was never deterministic. That is, the session protocols and VoIP layers always depended on the IP layer to give the best local address. The best local address was then used as the source address (the address showing where the SIP request came from) for signaling and media packets. Using this nondeterministic address occasionally caused confusion for firewall applications, because a firewall could not be configured with an exact address and would take action on several different source address packets.
However, the bind command allows you to configure the source IP address of signaling and media packets to a specific interface's IP address. Thus, the address that goes out on the packet is bound to the IP address of the interface specified with the bind command. Packets that are not destined to the bound address are discarded.
When you do not want to specify a bind address or if the interface is down, the IP layer still provides the best local address.
The bind command performs different functions based on the state of the interface (see Table 40).
Voice Media Stream Processing
The SIP Gateway Support Enhancements to the bind Command feature extends the current capabilities of the bind command by supporting a deterministic network interface for the voice media stream. Before the voice media stream addition, the bind command supported a deterministic network interface for control (signaling) traffic or all traffic. With the SIP Gateway Support Enhancements to the bind Command feature a finer granularity of control is achieved on the network interfaces used for voice traffic.
If multiple bind commands are issued in sequence—that is, if one bind command is configured and then another bind command is configured—a set interaction happens between the commands. Table 41 describes the expected command behavior.
The bind all and bind control commands perform different functions based on the state of the interface. Table 41 describes the actions performed based on the interface state.
Note
Table 41 applies to bind media only if the media interface is the same as the bind control interface. If the two interfaces are different, media behavior is independent of the interface state.
How to Configure SIP Bind Features
This section contains the following procedures:
•
Setting the IP Address of an Interface to Be Bound
•
Monitoring the bind Command (optional)
Note
•
Before you perform a procedure, familiarize yourself with the following information:
–
"Restrictions for SIP Bind Features" section
•
For help with a procedure, see the monitoring and troubleshooting sections listed above.
Setting the IP Address of an Interface to Be Bound
To set the IP address of an interface to be bound, perform the following steps.
Note
•
You must perform this procedure before you can use the bind command.
•
The bind media command applies to specific interfaces.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
interface
4.
ip address
5.
exit
DETAILED STEPS
Command or Action PurposeStep 1
enable
Example:Router> enable
Enables privileged EXEC mode. Enter your password if prompted.
Step 2
configure terminal
Example:Router# configure terminal
Enters global configuration mode.
Step 3
interface type/number
Example:Router(config)# interface fastethernet0
Configures an interface type. The argument is as follows:
•
type/number—Type of interface to be configured and the port, connector, or interface card number.
To find the specific definition of this command for your router, see the Cisco IOS Voice, Video, and Fax Command Reference, Release 12.3T.
Step 4
ip address ip-address mask [secondary]
Example:Router(config-if)# ip address 192.168.200.33 255.255.255.0
Configures a primary or secondary IP address for an interface. Keyword and argument are as follows:
•
ip-address mask—IP address and mask for the associated IP subnet.
•
secondary—Makes the configured address a secondary IP address. If this keyword is omitted, the configured address is the primary IP address.
To find the correct definition of this command for your router, see the Cisco IOS Voice, Video, and Fax Command Reference, Release 12.3T.
Step 5
exit
Example:Router(config-if)# exit
Exits the current mode.
Configuring the bind Command
To configure the bind command, perform the following steps.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
voice service voip
4.
sip
5.
bind
6.
exit
DETAILED STEPS
Monitoring the bind Command
To monitor the bind command, perform the following steps.
SUMMARY STEPS
1.
show ip sockets
2.
show sip-ua status
DETAILED STEPS
Step 1
show ip sockets
Use this command to display IP socket information and indicate whether the bind address of the receiving gateway is set.
The following sample output indicates that the bind address of the receiving gateway is set.
Router# show ip socketsProto Remote Port Local Port In Out Stat TTY OutputIF
17 0.0.0.0 0 --any-- 2517 0 0 9 0
17 --listen-- 172.18.192.204 1698 0 0 1 0
17 0.0.0.0 0 172.18.192.204 67 0 0 489 0
17 0.0.0.0 0 172.18.192.204 5060 0 0 A1 0
Step 2
show sip-ua status
Use this command to display SIP user-agent status and indicate whether bind is enabled.
The following sample output indicates that signaling is disabled and media on 172.18.192.204 is enabled.
Router# show sip-ua statusSIP User Agent StatusSIP User Agent for UDP : ENABLEDSIP User Agent for TCP : ENABLEDSIP User Agent bind status(signaling): DisabledSIP User Agent bind status(media): ENABLED 172.18.192.204SIP max-forwards : 6SIP DNS SRV version: 2 (rfc 2782)Redirection (3xx) message handling: ENABLEDSDP application configuration:Version line (v=) requiredOwner line (o=) requiredSession name line (s=) requiredTimespec line (t=) requiredMedia supported: audio imageNetwork types supported: INAddress types supported: IP4Transport types supported: RTP/AVP udptl
Troubleshooting Tips
Note
For general troubleshooting tips and a list of important debug commands, see the "General Troubleshooting Tips" section on page 18.
Configuration Example for SIP Bind Features
Note
IP addresses and hostnames in examples are fictitious.
This sample output shows that bind is enabled on router 172.18.192.204:
Router# show running-configBuilding configuration...Current configuration : 2791 bytes!version 12.2service configno service single-slot-reload-enableno service padservice timestamps debug uptimeservice timestamps log uptimeno service password-encryptionservice internalservice udp-small-servers!ip subnet-zeroip ftp source-interface Ethernet0!voice service voipsipbind control source-interface FastEthernet0!interface FastEthernet0ip address 172.18.192.204 255.255.255.0duplex autospeed autofair-queue 64 256 1000ip rsvp bandwidth 75000 100!voice-port 1/1/1no supervisory disconnect lcfo!dial-peer voice 1 potsapplication sessiondestination-pattern 5550111port 1/1/1!dial-peer voice 29 voipapplication sessiondestination-pattern 5550133session protocol sipv2session target ipv4:172.18.200.33codec g711ulaw!gateway!line con 0line aux 0line vty 0 4login!endAdditional References
General SIP References
•
"SIP Feature Roadmap" on Page 1—Describes how to access Cisco Feature Navigator; also lists and describes, by Cisco IOS release, SIP features for that release.
•
"Overview of SIP" on page 1—Describes underlying SIP technology; also lists related documents, standards, MIBs, RFCs, and how to obtain technical assistance.
References Mentioned in This Chapter
•
Cisco IOS Voice, Video, and Fax Command Reference, Release 12.3T at http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122newft/122tcr/122tvr/index.htm
Any Internet Protocol (IP) addresses used in this document are not intended to be actual addresses. Any examples, command display output, and figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses in illustrative content is unintentional and coincidental.
© 2007 Cisco Systems, Inc. All rights reserved.

