Tags

, ,

The following commands will create a pool of addresses.

  • network: 10.10.10.0/24
  • domain name: DOMAIN-NAME.LOCAL
  • dns server: 10.10.10.2, 10.10.10.3
  • default gateway: 10.10.10.1
  • least duration: 7 days
# conf t
# ip dhcp pool POOLNAME
# network 10.10.10.0 /24
# domain-name DOMAIN-NAME.LOCAL
# dns-server 10.10.10.2 10.10.10.3
# default router 10.10.10.1
# lease 7

 

We’ll then need to exclude the address that we’ve previously assigned statically.

The following line will exclude the addresses for the router and the dns servers.

# conf t
# ip dhcp excluded-address 10.10.10.1 10.10.10.3
Advertisements