[c-nsp] IOS DHCP Server - dynamic and static in one subnet

Ramcharan, Vijay A vijay.ramcharan at verizonbusiness.com
Wed Dec 8 10:35:08 EST 2010


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: cisco-nsp-bounces at puck.nether.net [mailto:cisco-nsp-
> bounces at puck.nether.net] On Behalf Of Artyom Viklenko
> Sent: Wednesday, December 08, 2010 2:09 AM
> To: cisco-nsp at puck.nether.net
> 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.
> -------------------------------------------------------
> artem at aws-net.org.ua | http://www.aws-net.org.ua/~artem
> artem at viklenko.net   | JID: artem at jabber.aws-net.org.ua
> FreeBSD: The Power to Serve   -  http://www.freebsd.org
> _______________________________________________
> cisco-nsp mailing list  cisco-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-nsp
> archive at http://puck.nether.net/pipermail/cisco-nsp/



More information about the cisco-nsp mailing list