Since you mentioned one subnet with static allocations from a portion of that subnet I assume that you don't want the DHCP server handing out your static allocations. You can configure exclusions (i.e. don't give out these addresses) with "ip dhcp excluded-address"
Vijay Ramcharan > -----Original Message----- > From: [email protected] [mailto:cisco-nsp- > [email protected]] On Behalf Of Artyom Viklenko > Sent: Wednesday, December 08, 2010 2:09 AM > To: [email protected] > Subject: [c-nsp] IOS DHCP Server - dynamic and static in one subnet > > Hi, List! > > I'm trying to figure out how to achive the foloving. > > Let's say we have one subnet, f.e. x.y.z.192/27. > I would like to use DHCP in it. But also have static > mappings for some portion of address space from this > subnet. > > I've create dhcp pool with 'network' statement. So far > so good. All works as expected. > > Now I put text file on tftp server and created another > pool with 'origin' statement. But clients PC's still > get their ip assigned from the first dhcp pool. > > > ip dhcp pool test-pool > network x.y.z.192 255.255.255.224 > default-router x.y.z.193 > dns-server 1.2.3.4 5.6.7.8 > domain-name test.domain.tld > lease 0 12 > ! > ip dhcp pool test-static-pool > origin file tftp://t.t.t.t/test-static-pool > default-router x.y.z.193 > dns-server 1.2.3.4 5.6.7.8 > domain-name test.domain.tld > lease 0 12 > ! > > What's wrond with this config? Is it possible > with ios dhcp server at all? > > Please, give me some hints. > > Thanks in advance! > > -- > Sincerely yours, > Artyom Viklenko. > ------------------------------------------------------- > [email protected] | http://www.aws-net.org.ua/~artem > [email protected] | JID: [email protected] > FreeBSD: The Power to Serve - http://www.freebsd.org > _______________________________________________ > cisco-nsp mailing list [email protected] > https://puck.nether.net/mailman/listinfo/cisco-nsp > archive at http://puck.nether.net/pipermail/cisco-nsp/ _______________________________________________ cisco-nsp mailing list [email protected] https://puck.nether.net/mailman/listinfo/cisco-nsp archive at http://puck.nether.net/pipermail/cisco-nsp/
