cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3142
Views
0
Helpful
1
Replies

Assigning Static Ip to SPA508g

kgrant3120
Level 1
Level 1

I need to assign a static IP address to a SPA508g phone.  We have multiple locations and Our President wants a phone in one of our remote locations connected to our Headquarters.  All of our sites are connected via 2600 routers over an MPLS.  I have looked in the settings of the spa508 and do not see were I can staticly assign an IP address.  I also looked in CCA 2.2.2 and did not see anything.  What could I be missing.

1 Reply 1

vcappucc
Level 1
Level 1

Hello,

You can change the Phone IP using the ip dhcp pool command, To configure a Dynamic Host Configuration Protocol (DHCP) address pool on a Cisco IOS DHCP Server and enter DHCP pool configuration mode, This command first appeared in Cisco IOS Release 12.0(1).

For example the UC500 device runs a DHCP Server with the default Factory Configuration:

UC560(dhcp-config)#do show run | b dhcp
ip dhcp relay information trust-all
ip dhcp excluded-address 10.1.1.1 10.1.1.10
ip dhcp excluded-address 192.168.10.1 192.168.10.10
!
ip dhcp pool phone
   network 10.1.1.0 255.255.255.0
   default-router 10.1.1.1
   option 150 ip 10.1.1.1

!
ip dhcp pool data
   import all
   network 192.168.10.0 255.255.255.0

My suggestion for your requeriment, would be an out of band change. I don't believe it would work with CCA (2.2.4), but before doing any configuration via CLI (telnet/SSH/Serial), please refer to the OOB Giude, so futher configurations done in the device can be recognized by CCA https://supportforums.cisco.com/docs/DOC-9809

Now, Assiging a specfic IP to a device is pretty easy via a CLI, the first thing you want to do is find out what is the Client ID, for that particular phone.


UC560#
UC560#show ip dhcp binding
Bindings from all pools not associated with VRF:
IP address          Client-ID/              Lease expiration        Type
                    Hardware address/
                    User name
10.1.1.18           0100.2290.0416.41       May 01 2010 12:56 PM    Automatic
10.1.1.25           0100.1fca.3493.2b       May 01 2010 12:57 PM    Automatic
UC560#
UC560#
UC560#ping 10.1.1.25

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.25, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
UC560#
UC560#show arp | in 10.1.1.25
Internet  10.1.1.25              17   001f.ca34.932b  ARPA   Vlan100
UC560#


Say that Phone (001f.ca34.932b) has to be reserved with a specific IP (10.1.1.254), in order that for the next time this device request for an IP, the DHCP Server (DHCPOFFER) will offer that IP address and subnet you have configured.

Please note that the fist DHCP message from the Station (the device asking for an IP to all DHCP Server in the network) is a Broadcast message, this means, that if you have other DHCPs in your network, you could run into issues.

Now, the next step is to clear the ip binding, you can clear it for specific binding using the clear ip dhcp binding (IP)A.B.C.D, or you can clear all bindings using clear ip dhcp binding *

UC560#clear ip dhcp bind *


Now that no IPs are bounded, so you can start with your configuration:

UC560#conf ter
Enter configuration commands, one per line.  End with CNTL/Z.
UC560(config)#ip dhcp pool PRESIDENT-PHONE
UC560(dhcp-config)#client-identifier 0100.1fca.3493.2b
UC560(dhcp-config)#host 10.1.1.254 255.255.255.0
UC560(dhcp-config)#option 150 ip 10.1.1.1
UC560(dhcp-config)#end
UC560#wr
Building configuration...

Compressed configuration from 32542 bytes to 12823 bytes
001300: %SYS-5-CONFIG_I: Configured from console by console[OK]
UC560#


it is time now to reboot that particular phone, and when he enters in the DHCPDiscover the DHCP will Offer that specific IP,

This can be verified using the following dbugs:

UC560#deb ip dhcp server packet
DHCP server packet debugging is on.
UC560#deb ip dhcp server ev
UC560#deb ip dhcp server events
DHCP server event debugging is on.

Please refer to the following link for more help in this messages


UC560(dhcp-config)#
001214: DHCPD: client's VPN is .
001215: DHCPD: DHCPREQUEST received from client 0100.1fca.3493.2b.
001216: DHCPD: client is confused about its IP address (requested 10.1.1.27, assigned 10.1.1.254).
001217: DHCPD: Sending notification of ASSIGNMENT FAILURE:
001218:   DHCPD: htype 1 chaddr 001f.ca34.932b
001219:   DHCPD: remote id 020a00000a01010101010064
001220:   DHCPD: circuit id 00000000
001221: DHCPD: Sending notification of ASSIGNMENT_FAILURE:
001222:  DHCPD: due to: Reason with no text explanation
001223:   DHCPD: htype 1 chaddr 001f.ca34.932b
001224:   DHCPD: remote id 020a00000a01010101010064
001225:   DHCPD: circuit id 00000000
UC560(dhcp-config)#
001226: DHCPD: Sending DHCPNAK to client 0100.1fca.3493.2b.
001227: DHCPD: broadcasting BOOTREPLY to client 001f.ca34.932b.
UC560(dhcp-config)#
001228: DHCPD: client's VPN is .
001229: DHCPD: Sending notification of DISCOVER:
001230:   DHCPD: htype 1 chaddr 001f.ca34.932b
001231:   DHCPD: remote id 020a00000a01010101010064
001232:   DHCPD: circuit id 00000000
001233: DHCPD: DHCPDISCOVER received from client 0100.1fca.3493.2b on interface Vlan100.
001234: DHCPD: Seeing if there is an internally specified pool class:
001235:   DHCPD: htype 1 chaddr 001f.ca34.932b
001236:   DHCPD: remote id 020a00000a01010101010064
001237:   DHCPD: circuit id 00000000
001238: DHCPD: Found previous server binding
001239: DHCPD: Sending DHCPOFFER to client 0100.1fca.3493.2b (10.1.1.254).
001240: DHCPD: broadcasting BOOTREPLY to client 001f.ca34.932b.
001241: DHCPD: client's VPN is .
001242: DHCPD: Sending notification of DISCOVER:
001243:   DHCPD: htype 1 chaddr 001f.ca34.932b
001244:   DHCPD: remote id 020a00000a01010101010064
001245:   DHCPD: circuit id 00000000
001246: DHCPD: DHCPDISCOVER received from client 0100.1fca.3493.
UC560(dhcp-con2b on interface Vlan100.
001247: DHCPD: Seeing if there is an internally specified pool class:
001248:   DHCPD: htype 1 chaddr 001f.ca34.932b
001249:   DHCPD: remote id 020a00000a01010101010064
001250:   DHCPD: circuit id 00000000
001251: DHCPD: Found previous server binding
001252: DHCPD: Sending DHCPOFFER to client 0100.1fca.3493.2b (10.1.1.254).
001253: DHCPD: broadcasting BOOTREPLY to client 001f.ca34.932b.
001254: DHCPD: client's VPN is .
001255: DHCPD: DHCPREQUEST received from client 0100.1fca.3493.2b.
001256: DHCPD: Sending notification of ASSIGNMENT:
001257:  DHCPD: address 10.1.1.254 mask 255.255.255.0
001258:   DHCPD: htype 1 chaddr 001f.ca34.932b
001259:   DHCPD: lease time remaining (secs) = 4294967295
001260: DHCPD: No default domain to append - abort update
001261: DHCPD: Sending DHCPACK to client 0100.1fca.3493.2b (10.1.1.254).
001262: DHCPD: broadcasting BOOTREPLY to client 001f.ca34.932b.fig)#
UC560(dhcp-config)#
UC560(dhcp-config)#

Now here we see that:

UC560(dhcp-config)#do show ip dhcp bind
Bindings from all pools not associated with VRF:
IP address          Client-ID/              Lease expiration        Type
                    Hardware address/
                    User name
10.1.1.254          0100.1fca.3493.2b       Infinite                Manual

and that

UC560#show ephone | b ephone-8
ephone-8[7] Mac:001F.CA34.932B TCP socket:[7] activeLine:0 whisperLine:0  REGISTERED in SCCP ver 17/17 max_streams=5
mediaActive:0 whisper_mediaActive:0 startMedia:0 offhook:0 ringing:0  reset:0 reset_sent:0 paging 0 debug:0 caps:8
IP:10.1.1.254 * 44261 7970  keepalive 36 max_line 8 available_line 8
button 1: cw:1 ccw:(0 0)
   dn 13 number 204 CH1   IDLE         CH2   IDLE
Preferred Codec: g711ulaw
Lpcor Type: none

is Register and ready to do calls.


My final configuration is:

UC560(dhcp-config)#do show run | b dhcp

ip dhcp relay information trust-all
ip dhcp excluded-address 10.1.1.1 10.1.1.10
ip dhcp excluded-address 192.168.10.1 192.168.10.10
!
ip dhcp pool phone
   network 10.1.1.0 255.255.255.0
   default-router 10.1.1.1
   option 150 ip 10.1.1.1

!
ip dhcp pool data
   import all
   network 192.168.10.0 255.255.255.0
!
ip dhcp pool PRESIDENT-PHONE
   host 10.1.1.254 255.255.255.0
   client-identifier 0100.1fca.3493.2b
   option 150 ip 10.1.1.1

I hope this helps, and if you need assistance with this requeriment or any other configuration, please just call us @ our toll free  support number for small business (sTAC), and we will be very happy to provide a solution.


Thank you
Victor.-

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: