[c-nsp] Permament IP addresses from DHCP
Jared Mauch
jared at puck.nether.net
Tue Aug 22 10:03:49 EDT 2006
Or in more tangible config language:
! static IP laptop
ip dhcp pool node2.wireless
host 10.0.254.194 255.255.255.128
client-identifier 0100.0d93.8303.06
!
ip dhcp pool my_home
network 10.0.254.128 255.255.255.128
dns-server 10.0.254.5 10.0.44.2
default-router 10.0.254.193
domain-name nether.net
lease 0 0 15
!
This way the laptop always gets the same IP address. You
can either use the client-identifier, or hardware-address
under the static ip address config, eg:
!
hardware-address 000e.3834.c1a3
On Tue, Aug 22, 2006 at 08:00:15AM -0400, Richard Danielli wrote:
> Have a look at RFC 2131, sections 3.1 and 3.2. The answers to your
> questions are there...
>
> Cheers,
> -rd-
>
> Bartosz Piec wrote:
> > Hello,
> >
> > I'm using Cisco 2821 router as a DHCP server.
> >
> > Let's assume that I have a notebook. The situation looks like that:
> > - one day the notebook gets IP address 10.0.0.2
> > - every other day it gets still the same address, but...
> > - I go to the other place, connect my laptop there, get some IP address
> > from the local DHCP address (different than 10.0.0.2)
> > - I come back to my original place and my address changes to 10.0.0.3
> >
> > Is it possible for router to remember (for some time) that my laptop,
> > with its MAC address, has always 10.0.0.2? I don't want to set static IP
> > address and I don't want to create a DHCP pool for every host in my
> > network but I want have permanent addresses in my hosts.
> >
>
> --
> Richard Danielli
> President, eSubnet
>
> (416) 203-5253
> www.eSubnet.com
>
>
> _______________________________________________
> 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/
--
Jared Mauch | pgp key available via finger from jared at puck.nether.net
clue++; | http://puck.nether.net/~jared/ My statements are only mine.
More information about the cisco-nsp
mailing list