Viewing Tunnel Interface in Show Output
SymptomShow VPN-SIP session doesn’t show any information about the tunnel interface. In the following example, information about
the tunnel interface, tunnel1 is not shown:
Peer5-F#show vpn-sip session
VPN-SIP session current status
Interface: Tunnel2
Session status: READY_TO_CONNECT
Remote number : 0334563333
Local number : 0623458888
Remote address:port: 10.10.0.0:0
Local address:port : 192.0.2.22:0
Interface: Tunnel3
Session status: READY_TO_CONNECT
Remote number : 0323452222
Local number : 0623458888
Remote address:port: 10.10.0.0:0
Local address:port : 192.0.2.22:0
Interface: Tunnel4
Session status: READY_TO_CONNECT
Remote number : 0612349999
Local number : 0623458888
Remote address:port: 10.10.0.0:0
Local address:port : 192.0.2.22:0
Interface: Tunnel6
Session status: READY_TO_CONNECT
Remote number : 0634567777
Local number : 0623458888
Remote address:port: 10.10.0.0:0
Local address:port : 172.30.18.22:0
Possible CauseVPN-SIP is not configured on the tunnel interface
Peer5-F#sh run int tun1
Building configuration...
Current configuration : 201 bytes
!
interface Tunnel1
ip address 10.5.5.5 255.255.255.0
tunnel source Loopback11
tunnel mode ipsec ipv4
tunnel destination dynamic
tunnel protection ipsec profile test-prof ikev2-profile test
end
Recommended ActionConfigure VPN-SIP on the tunnel interface.
:
Peer5-F#show running interface tunnel 1
Building configuration...
Current configuration : 278 bytes
!
interface Tunnel1
ip address 10.5.5.5 255.255.255.255
tunnel source Loopback11
tunnel mode ipsec ipv4
tunnel destination dynamic
tunnel protection ipsec profile test-prof ikev2-profile test
vpn-sip local-number 0623458888 remote-number 0312341111 bandwidth 1000
end
Following is the running output for the above scenario:
Peer5-F#show vpn-sip session detail
VPN-SIP session current status
Interface: Tunnel1
Session status: READY_TO_CONNECT
Remote number : 0312341111
Local number : 0623458888
Remote address:port: 10.0.0.0:0
Local address:port : 172.30.18.22:0
Crypto conn handle: 0x8000002C
SIP Handle : 0x0
SIP callID : --
Configured/Negotiated bandwidth: 1000/0 kbps
Interface: Tunnel2
Session status: READY_TO_CONNECT
Remote number : 0334563333
Local number : 0623458888
Remote address:port: 10.0.0.0:0
Local address:port : 172.30.18.22:0
Crypto conn handle: 0x80000012
SIP Handle : 0x0
SIP callID : --
Configured/Negotiated bandwidth: 512/0 kbps
Interface: Tunnel3
Session status: READY_TO_CONNECT
Remote number : 0323452222
Local number : 0623458888
Remote address:port: 10.0.0.0:0
Local address:port : 172.30.18.22:0
Crypto conn handle: 0x80000031
SIP Handle : 0x0
SIP callID : --
Configured/Negotiated bandwidth: 512/0 kbps
Interface: Tunnel4
Session status: READY_TO_CONNECT
Remote number : 0612349999
Local number : 0623458888
Remote address:port: 10.0.0.0:0
Local address:port : 172.30.18.22:0
Crypto conn handle: 0x8000002F
SIP Handle : 0x0
SIP callID : --
Configured/Negotiated bandwidth: 1000/0 kbps
Interface: Tunnel6
Session status: READY_TO_CONNECT
Remote number : 0634567777
Local number : 0623458888
Remote address:port: 10.0.0.0:0
Local address:port : 172.30.18.22:0
Crypto conn handle: 0x80000026
SIP Handle : 0x0
SIP callID : --
Configured/Negotiated bandwidth: 1000/0 kbps
Troubleshooting SIP Registration Status
SymptomSIP registration status is Not Registered
Peer5#show vpn-sip sip registrar
Line destination expires(sec) contact
transport call-id
============================================================
Peer5-F#show vpn-sip registration-status
SIP registration of local number 0623458888 : not registered
Possible CauseIP address is not configured on the WAN interface.
Peer5#show ip interface brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 unassigned YES unset down down
GigabitEthernet0/1 unassigned YES unset up up
GigabitEthernet0/2 unassigned YES unset down down
GigabitEthernet0/3 unassigned YES unset down down
GigabitEthernet0/4 unassigned YES unset up up
GigabitEthernet0/5 10.5.5.5 YES manual up up
Vlan1 10.45.1.5 YES NVRAM up up
NVI0 10.1.1.1 YES unset up up
Loopback1 10.1.1.1 YES NVRAM up up
Loopback5 10.5.5.5 YES NVRAM administratively down down
Loopback11 10.11.11.11 YES NVRAM up up
Tunnel1 10.5.5.5 YES NVRAM up down
Tunnel2 10.2.2.2 YES NVRAM up down
Tunnel3 10.3.3.3 YES NVRAM up down
Tunnel4 10.4.4.4 YES NVRAM up down
Tunnel6 10.8.8.8 YES NVRAM up down
Peer5-F#show run interface gigabitEthernet 0/4
Building configuration...
Current configuration : 213 bytes
!
interface GigabitEthernet0/4
ip dhcp client request sip-server-address
ip dhcp client request vendor-identifying-specific
no ip address ====> no IP address
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
end
Recommended ActionUse the ip address dhcp command to configure the interface IP address.
Peer5-F#show running-config interface gigabitEthernet 0/4
Building configuration...
Current configuration : 215 bytes
!
interface GigabitEthernet0/4
ip dhcp client request sip-server-address
ip dhcp client request vendor-identifying-specific
ip address dhcp ====> configure IP address DHCP
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
end
Peer5-F#show ip interface brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 unassigned YES unset down down
GigabitEthernet0/1 unassigned YES unset up up
GigabitEthernet0/2 unassigned YES unset down down
GigabitEthernet0/3 unassigned YES unset down down
GigabitEthernet0/4 172.30.18.22 YES DHCP up up
GigabitEthernet0/5 10.5.5.5 YES manual up up
Vlan1 10.45.1.5 YES NVRAM up up
NVI0 10.1.1.1 YES unset up up
Loopback1 10.1.1.1 YES NVRAM up up
Loopback5 10.5.5.5 YES NVRAM administratively down down
Loopback11 10.11.11.11 YES NVRAM up up
Tunnel1 10.6.5.5 YES NVRAM up down
Tunnel2 10.2.2.2 YES NVRAM up down
Tunnel3 10.3.3.3 YES NVRAM up down
Tunnel4 10.4.4.4 YES NVRAM up down
Tunnel6 10.8.8.8 YES NVRAM up down
Peer5-F#show vpn-sip sip registrar
Line destination expires(sec) contact
transport call-id
============================================================
0623458888 example.com 2863 172.30.18.22
UDP 1E83ECF0-AF0611E7-802B8FCF-594EB9E7@10.50.18.22
Peer5-F#show vpn-sip registration-status
SIP registration of local number 0623458888 : registered 172.30.18.22
Session stuck in Negotiating IKE state
SymptomVPN-SIP session stuck in Negotiating IKE state.
Peer5#show vpn-sip session remote-number 0612349999 detail
VPN-SIP session current status
Interface: Tunnel4
Session status: NEGOTIATING_IKE (R)
Uptime : 00:00:58
Remote number : 0612349999
Local number : 0623458888
Remote address:port: 72.30.168.3:24825
Local address:port : 72.30.168.22:50012
Crypto conn handle: 0x8000002E
SIP Handle : 0x8000000C
SIP callID : 16
Configured/Negotiated bandwidth: 1000/1000 kbps
Possible CauseBad configuration related to IKEv2.
In the following example the Key ID that is configured in the keyring does not match the SIP numberof the remote peer.
Peer5-F#show running-config interface tunnel 4
Building configuration...
Current configuration : 276 bytes
!
interface Tunnel4
ip address 10.4.4.4 255.255.255.0
tunnel source Loopback11
tunnel mode ipsec ipv4
tunnel destination dynamic
tunnel protection ipsec profile test-prof ikev2-profile test
VPN-SIP local-number 0623458888 remote-number 0612349999 bandwidth 1000 ====> Remote number mentioned here doesn’t match the remote number in the keyring
end
IKEv2 Keyring configs:
!
crypto ikev2 keyring keys
peer peer1
identity key-id 0312341111
pre-shared-key psk1
!
peer abc
identity key-id 0345674444
pre-shared-key psk1
!
peer peer2
identity key-id 0334563333
pre-shared-key psk10337101690
!
peer peer6
identity key-id 0634567777
pre-shared-key cisco123
!
peer peer3
identity key-id 0323452222
pre-shared-key cisco123
!
peer peer4
identity key-id 0645676666
pre-shared-key psk1
!
peer NONID
identity fqdn example.com
pre-shared-key psk1
!
!
!
crypto ikev2 profile test
match identity remote any
identity local key-id 0623458888
authentication remote pre-share
authentication local pre-share
keyring local keys
dpd 10 6 periodic
nat force-encap
Recommended ActionCorrect the keyring configurations.
rypto ikev2 keyring keys
peer peer1
identity key-id 0312341111
pre-shared-key psk1
!
peer abc
identity key-id 0345674444
pre-shared-key psk1
!
peer peer2
identity key-id 0334563333
pre-shared-key psk1
!
peer peer6
identity key-id 0634567777
pre-shared-key psk1
!
peer peer3
identity key-id 0323452222
pre-shared-key psk1
!
peer peer4
identity key-id 0612349999
pre-shared-key psk1
!
peer NONID
identity fqdn example.com
pre-shared-key psk1
!
!
!
crypto ikev2 profile test
match identity remote any
identity local key-id 0623458888
authentication remote pre-share
authentication local pre-share
keyring local keys
dpd 10 6 periodic
nat force-encap
!
Peer5-F#show vpn-sip session remote-number 0612349999 detail
VPN-SIP session current status
Interface: Tunnel4
Session status: SESSION_UP (R)
Uptime : 00:02:04
Remote number : 0612349999
Local number : 0623458888
Remote address:port: 198.51.100.3:24845
Local address:port : 198.51.100.22:50020
Crypto conn handle: 0x8000004E
SIP Handle : 0x80000014
SIP callID : 24
Configured/Negotiated bandwidth: 1000/1000 kbps
Troubleshooting Session Initiation
SymptomSession does not initiate and gets stuck in Negotiating IKE state
Possible CauseFagmentation of IKE packets when a large PKI certificate is included in the IKE authentication message.
Recommended ActionConfigure IKEv2 fragmentation on the routers.
Debug Commands
The folllwing debug commands are available to debug VPN-SIP configuration:
Table 1. debug commands
Command Name
|
Description
|
debug vpn-sip event
|
Prints debug messages for SVTI registration with VPN-SIP, SIP registration, call setup, and so on.
|
debug vpn-sip errors
|
Prints error messages only when an error occurs during initialization, registration, call setup, and so on.
|
debug vpn-sip sip all
|
Enables all SIP debugging traces.
|
debug vpn-sip sip calls
|
Enables SIP SPI calls debugging trace.
|
debug vpn-sip sip dhcp
|
Enables SIP-DHCP debugging trace
|
debug vpn-sip sip error
|
Enables SIP error debugging trace
|
debug vpn-sip sip events
|
Enables SIP events debugging trace.
|
debug vpn-sip sip feature
|
Enables feature level debugging.
|
debug vpn-sip sip function
|
Enables SIP function debugging trace.
|
debug vpn-sip sip info
|
Enables SIP information debugging trace.
|
debug vpn-sip sip level
|
Enables information level debugging.
|
debug vpn-sip sip media
|
Enables SIP media debugging trace.
|
debug vpn-sip sip messages
|
Enables SIP SPI messages debugging trace
|
debug vpn-sip sip non-call
|
Enables Non-Call-Context trace (OPTIONS, SUBSCRIBE, and so on)
|
debug vpn-sip sip preauth
|
Enable SIP preauth debugging trace.
|
debug vpn-sip sip states
|
Enable SIP SPI states debugging trace.
|
debug vpn-sip sip translate
|
Enables SIP translation debugging trace.
|
debug vpn-sip sip transport
|
Enables SIP transport debugging traces.
|
debug vpn-sip sip verbose
|
Enables verbose mode.
|