cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
17668
Views
14
Helpful
6
Replies

% This command may not be used with network, origin or vrf pools.

Shannon Sutter
Level 1
Level 1

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

6 Replies 6

liguoriariel
Level 1
Level 1

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.

ajagadee
Cisco Employee
Cisco Employee

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

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

Yes, You are correct.

Regards,

Arul

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!

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*

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: