09-19-2007 09:45 AM - edited 03-05-2019 06:35 PM
Hi,
I'm trying to add a static DHCP IP on the pool and i'm getting this error "% This command may not be used with network, origin or vrf pools."
Here you can see the DHCP pool config
ip dhcp pool Data
network 10.10.135.0 255.255.255.0
default-router 10.10.135.1
domain-name domain.com
option 150 ip 172.16.1.11
dns-server 172.16.1.40 172.17.1.250
netbios-name-server 172.16.1.40 172.17.1.250
once I try to enter
host 10.10.135.111 255.255.255.0
I get the error message,
Any ideas?
2801 Version 12.3(11)T3
Thank you a lot
Zeek
09-24-2007 04:26 AM
are you try to do this:
ip dhcp pool StaticXXX
host x.x.x.x 255.255.255.0
client-identifier 01aa.bbcc.ddee.ff
the line client iodentifier use it if you want to fix a MAC to an IP Addr.
Well, i hoppr this solve your issue.
09-24-2007 05:32 AM
Hi,
If you want to configure manual bindings, create a host pool for the 10.10.135.111 address. For example:
ip dhcp pool STATIC
host 10.10.135.111 255.255.255.0
Client-identifier (aabb.ccdd.eeff ...)
default-router 10.10.135.1
domain-name domain.com
option 150 ip 172.16.1.11
dns-server 172.16.1.40 172.17.1.250
netbios-name-server 172.16.1.40 172.17.1.250
ip dhcp pool Data
network 10.10.135.0 255.255.255.0
default-router 10.10.135.1
domain-name domain.com
option 150 ip 172.16.1.11
dns-server 172.16.1.40 172.17.1.250
netbios-name-server 172.16.1.40 172.17.1.250
Below is the URL that has some additional details.
http://www.cisco.com/en/US/docs/ios/12_1/iproute/configuration/guide/1cdipadr.html
I hope it helps.
Regards,
Arul
09-24-2007 05:46 AM
If I understand the documentation correctly, because pool STATIC is a subset of pool Data, there is no need to specify default-router, domain-name, etc. in the STATIC pool. Because it is a subset, the STATIC pool will inherit these values from the Data pool.
Is that right?
Kevin Dorrell
Luxembourg
09-24-2007 06:06 AM
Yes, You are correct.
Regards,
Arul
12-27-2011 10:57 PM
Also you can create the file
look here: http://www.cisco.com/en/US/docs/ios/12_3t/12_3t11/feature/guide/gtdhcpsm.html#wp1027188
Make sure you have correct file format. Next using tftp move copy file to your flash: and instead using remote location you can do command
#(dhcp-config) origin file flash:mystaticdhcp.txt
after that you can just edit the file on your computer, upload in to flash: and just reload dhcp service.
#(config) no service dhcp
#(config) service dhcp
Good Luck!
04-22-2016 11:47 AM
The origin file worked like a charm once I figured out where to put what. You can also add comments for the device name...as far as I can tell.
01 is the ID; xx.xxxx.xxxx.xx is the hex numbers from the MAC. Yes, the decimals have to be moved. (example: 01 ID + 00:40:96:xx.yy.zz = 0100.4096.xxyy.zz).
You have to space between the IP and the subnet. If no subnet is placed, the default IP class subnet will be used.
*time* Apr 22 2016 12:00 PM
*version* 2
!IP address Type Hardware address Lease expiration
!Switch
X.X.X.X /29 id 01xx.xxxx.xxxx.xx Infinite
!AP-Zada-Zada
X.X.X.X /29 id 01xx.xxxx.xxxx.xx Infinite
!AP-Yada-Yada
X.X.X.X /29 id 01xx.xxxx.xxxx.xx Infinite
*end*
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: