Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

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

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

  • LAN Switching and Routing
6 REPLIES
New Member

Re: % This command may not be used with network, origin or vrf p

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.

Cisco Employee

Re: % This command may not be used with network, origin or vrf p

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

Re: % This command may not be used with network, origin or vrf p

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

Cisco Employee

Re: % This command may not be used with network, origin or vrf p

Yes, You are correct.

Regards,

Arul

New Member

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

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!

New Member

The origin file worked like a

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*

5817
Views
14
Helpful
6
Replies
This widget could not be displayed.