Re: How I could configure static DHCP through an IOS?

From: Bajo (bajoalex@gmail.com)
Date: Sun Jan 13 2008 - 15:04:11 ARST


Amin,

The previous email is an example of "manual mapping" :)

For "static" DHCP mapping, you have to create a file and point the
router to it. DHCP service must be restarted.

The CD has sample good guidance. I have pasted here:

Static Mapping Configuration: Example
The following example shows how to restart the DHCP server, configure
the pool, and specify the URL at which the static mapping text file is
stored:

no service dhcp

service dhcp

ip dhcp pool abcpool

origin file tftp://10.1.0.1/staticfilename

From,

http://www.cisco.com/en/US/products/sw/iosswrel/ps5207/products_feature_guide09186a008027fa7c.html

The following is a sample static mapping text file:

*time* Jan 21 2005 03:52 PM

*version* 2

!IP address Type Hardware address Lease expiration

10.0.0.4 /24 1 0090.bff6.081e Infinite

10.0.0.5 /28 id 00b7.0813.88f1.66 Infinite

10.0.0.2 /21 1 0090.bff6.081d Infinite
*end*

On 1/12/08, Bajo <bajoalex@gmail.com> wrote:
> Hi Amin,
> Am not sure if you are asking about this
>
> 1) Client router
>
> Rack1R2#sh run | in dhcp-ser
> ip dhcp-server 145.1.17.1 <.............R1 address
>
> interface FastEthernet0/1
> ip dhcp client client-id ascii R2-dhcp <...> or use "ip dhcp client
> client-id ascii hex"
> ip address dhcp
> duplex auto
> speed auto
> end
>
> 2) On the DHCP server:
> ip dhcp pool R2-pool
> host 145.1.17.2 255.255.255.0
> client-identifier
> 0063.6973.636f.2d30.3030.642e.6263.3438.2e37.6537.312d.4661.302f.31
>
> If you use asci on clinet, do "deb ip dhcp server packet" to get the
> client-id on the server.side.
>
>
> Rack1R2#sh dhcp lease
> Temp IP addr: 145.1.17.2 for peer on Interface: FastEthernet0/1
> Temp sub net mask: 255.255.255.0
> DHCP Lease server: 145.1.17.1, state: 3 Bound
> DHCP transaction id: 9C5A6A45
> Lease: 86400 secs, Renewal: 43200 secs, Rebind: 75600 secs
> Next timer fires after: 06:27:51
> Retry count: 0 Client-ID: cisco-000d.bc48.7e71-Fa0/1
> Hostname: R2-dhcp
>
> Rack1R1#sh ip dhcp binding
> Bindings from all pools not associated with VRF:
> IP address Client-ID/ Lease expiration Type
> Hardware address/
> User name
> 145.1.17.2 0063.6973.636f.2d30. Infinite Manual
> 3030.642e.6263.3438.
> 2e37.6537.312d.4661.
> 302f.31
>
>
> DoC : http://www.cisco.com/univercd/cc/td/doc/product/software/ios123/123newft/123t/123t_8/gtdhcpcf.htm
>
>
> -ip dhcp-server x.x..x.x
> int f0/1
> Ip add dhcp cline-name RA-dhcp
>
> 2). On the dhcp-server (x.x.x.x)
> ip dhcp pool pool-name
> host y.y.y.y 255.255.255.0
> clinet-id
>
> On 1/11/08, CCIE <ccie@axizo.com> wrote:
> > Dear Expert,
> >
> > How I could configure static DHCP through an IOS?
> >
> > Regars,
> >
> > Amin
> >
> > _______________________________________________________________________
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
> >
>
>
> --
> Kind Regards,
>
> Bajo
>

-- 
Kind Regards,

Bajo



This archive was generated by hypermail 2.1.4 : Fri Feb 01 2008 - 10:37:59 ARST