Re: Question on configuring DHCP using network and subnet

From: Thomwin Chen (thomwin_chen@yahoo.com)
Date: Mon Nov 14 2005 - 04:23:43 GMT-3


Hi Steven,
   
  if you have at least 2 box of Cisco routers,
  you can test this by using :
  R2(config-if)# ip address dhcp
  on one of the router acting as DHCP client
   
  Rgds,
  Thomwin
  

steven richards <ccie_2005@hotmail.com> wrote:
  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

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