[OSL | CCIE_Voice] DHCP WITH ONE POOL USING STATIC MAPPING.
Requirements: I want to configure a DHCP server on a router . The requirement is that just 1 DHCP pool is required for the phone. I am also asked to assign ip addresses of 14.10.66.13 and 14.10.66.14 for my phones. Solution: #conf t Enter configuration commands, one per line. End with CNTL/Z. ROUTER1(config)#ip dhcp database flash:origin.txt ROUTER1(config)#no service dhcp ROUTER1(config)#service dhcp ROUTER1(config)#do more origin.txt *time* Mar 14 2013 06:54 AM *version* 4 !IP address Type Hardware address Lease expiration VRF !IP address Type Hardware address Interface-name !IP address Interface-name Lease expiration Server IP address Hardware address Vrf *end* Open Notepad and modify origin.txt as below: *time* Mar 14 2013 06:55 AM *version* 4 !IP address TypeHardware addressLease expiration 142.102.66.13 /24 id 010024142EFF10 infinite 142.102.66.14 /24 id 016C504DDACC3D infinite *end* Don't forget the mask or it won't work and no dots are required in the Hardware Address. Copy the file to Publisher using tftp. Download the file to Router flash using tftp from Publisher. no ip dhcp database flash:origin.txt ip dhcp excluded-address 142.102.66.1 142.102.66.12 ip dhcp excluded-address 142.102.66.15 142.102.66.254 ip dhcp pool voice origin file flash:origin.txt option 150 ip [CUCM or CME IP Address] depends on if you're doing CUCM or CME default-router [ip address of Voice VLAN] Hope this helps Michael Sears CCIE (V) #38404 ___ For more information regarding industry leading CCIE Lab training, please visit www.ipexpert.com Are you a CCNP or CCIE and looking for a job? Check out www.PlatinumPlacement.com
Re: [OSL | CCIE_Voice] DHCP WITH ONE POOL USING STATIC MAPPING.
Another way to upload file to router flash would be to use TCL shell, as described here -- http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html Might save you couple of minutes. Sergey On Thu, Mar 14, 2013 at 10:12 AM, michael.se...@compucom.com wrote: Requirements: I want to configure a DHCP server on a router . The requirement is that just 1 DHCP pool is required for the phone. I am also asked to assign ip addresses of 14.10.66.13 and 14.10.66.14 for my phones. Solution: #conf t Enter configuration commands, one per line. End with CNTL/Z. ROUTER1(config)#ip dhcp database flash:origin.txt ROUTER1(config)#no service dhcp ROUTER1(config)#service dhcp ROUTER1(config)#do more origin.txt *time* Mar 14 2013 06:54 AM *version* 4 !IP address Type Hardware address Lease expiration VRF !IP address Type Hardware address Interface-name !IP address Interface-name Lease expiration Server IP address Hardware address Vrf *end* Open Notepad and modify origin.txt as below: *time* Mar 14 2013 06:55 AM *version* 4 !IP address TypeHardware address Lease expiration 142.102.66.13 /24 id 010024142EFF10 infinite 142.102.66.14 /24 id 016C504DDACC3D infinite *end* Don't forget the mask or it won't work and no dots are required in the Hardware Address. Copy the file to Publisher using tftp. Download the file to Router flash using tftp from Publisher. no ip dhcp database flash:origin.txt ip dhcp excluded-address 142.102.66.1 142.102.66.12 ip dhcp excluded-address 142.102.66.15 142.102.66.254 ip dhcp pool voice origin file flash:origin.txt option 150 ip [CUCM or CME IP Address] depends on if you're doing CUCM or CME default-router [ip address of Voice VLAN] Hope this helps Michael Sears CCIE (V) #38404 ___ For more information regarding industry leading CCIE Lab training, please visit www.ipexpert.com Are you a CCNP or CCIE and looking for a job? Check out www.PlatinumPlacement.com ___ For more information regarding industry leading CCIE Lab training, please visit www.ipexpert.com Are you a CCNP or CCIE and looking for a job? Check out www.PlatinumPlacement.com
Re: [OSL | CCIE_Voice] DHCP WITH ONE POOL USING STATIC MAPPING.
I have used both methods and prefer the TCL shell cli as it saves a few minutes (of clicking through CUCM gui to upload the file). If you don't want to remember that CLI you can reference the origin file directly on the TFTP server (origin file tftp://[pub or sub ip address]/origin.txt) rather than copying down to the router's flash, but this may only save you a few seconds. Just another option to consider. One important note, make sure there is a SPACE in the CIDR notation between the IP and the /24 because it will not work without a space. Between the other elements I use tabs (haven't tried with spaces but that may work) and make sure you keep the header/footer and comment lines in the file. On Thu, Mar 14, 2013 at 11:01 AM, Sergey Heyphets ser...@heyphets.comwrote: Another way to upload file to router flash would be to use TCL shell, as described here -- http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html Might save you couple of minutes. Sergey On Thu, Mar 14, 2013 at 10:12 AM, michael.se...@compucom.com wrote: Requirements: I want to configure a DHCP server on a router . The requirement is that just 1 DHCP pool is required for the phone. I am also asked to assign ip addresses of 14.10.66.13 and 14.10.66.14 for my phones. Solution: #conf t Enter configuration commands, one per line. End with CNTL/Z. ROUTER1(config)#ip dhcp database flash:origin.txt ROUTER1(config)#no service dhcp ROUTER1(config)#service dhcp ROUTER1(config)#do more origin.txt *time* Mar 14 2013 06:54 AM *version* 4 !IP address Type Hardware address Lease expiration VRF !IP address Type Hardware address Interface-name !IP address Interface-name Lease expiration Server IP address Hardware address Vrf *end* Open Notepad and modify origin.txt as below: *time* Mar 14 2013 06:55 AM *version* 4 !IP address TypeHardware address Lease expiration 142.102.66.13 /24 id 010024142EFF10 infinite 142.102.66.14 /24 id 016C504DDACC3D infinite *end* Don't forget the mask or it won't work and no dots are required in the Hardware Address. Copy the file to Publisher using tftp. Download the file to Router flash using tftp from Publisher. no ip dhcp database flash:origin.txt ip dhcp excluded-address 142.102.66.1 142.102.66.12 ip dhcp excluded-address 142.102.66.15 142.102.66.254 ip dhcp pool voice origin file flash:origin.txt option 150 ip [CUCM or CME IP Address] depends on if you're doing CUCM or CME default-router [ip address of Voice VLAN] Hope this helps Michael Sears CCIE (V) #38404 ___ For more information regarding industry leading CCIE Lab training, please visit www.ipexpert.com Are you a CCNP or CCIE and looking for a job? Check out www.PlatinumPlacement.com ___ For more information regarding industry leading CCIE Lab training, please visit www.ipexpert.com Are you a CCNP or CCIE and looking for a job? Check out www.PlatinumPlacement.com ___ For more information regarding industry leading CCIE Lab training, please visit www.ipexpert.com Are you a CCNP or CCIE and looking for a job? Check out www.PlatinumPlacement.com