Question on configuring DHCP using network and subnet command

From: steven richards (ccie_2005@hotmail.com)
Date: Mon Nov 14 2005 - 03:59:33 GMT-3


  Hello,

Unfortunatly the lab I use is remote and I cannot test to features of DHCP
that I am curiouse about.
The two that I am questioning are using the network command and the subnet
command under the DHCP pool. I believe the way that this would work is the
network command and the mask designates the pool of addresses that get
handed out. Say for instance I configured 1.1.1.0/27 the router would only
asign addresses in the range of the /27. Now with the subnet prefix-length
command is this for the subnet mask? Say for instance I configured the
1.1.1.0/27 with the subnet prefix-length 25 command would that asign IP
addresses in the 1.1.1.0/27 with a /25 sugnet mask ?

   Thanks,

R6(config)#ip dhcp pool TEST
R6(dhcp-config)#network ?
  A.B.C.D Network number in dotted-decimal notation

R6(dhcp-config)#network 1.1.1.0 ?
  /nn or A.B.C.D Network mask or prefix length
  <cr>

R6(dhcp-config)#network 1.1.1.0

R6(dhcp-config)#subnet prefix-length ?
  <1-31> Specify the prefix length

R6(dhcp-config)#subnet prefix-length



This archive was generated by hypermail 2.1.4 : Thu Dec 01 2005 - 09:12:06 GMT-3