Configure DHCP server on Cisco router

From Notes_Wiki

Home > Switch configuration notes > Configure DHCP server on Cisco router

Following have been tested on Cisco CSR V1000 virtual router to offer DHCP IPs to clients:

  1. To configure DHCP server using Cisco router first go to config t
    config t
  2. Create pool for DHCP
    ip dhcp pool <name>
    Such as 'ip dhcp pool host-vtep-dhcp-pool'
  3. Specify the network which will be served by this DHCP
    network <network-number> <mask-or-prefix>
    This requires the DHCP request for above networks to come to router via ip-helper-address or router should have interface on those networks
    Example 'network 10.1.1.0/24'
  4. Configure parameters for the clients such as domain-name, dns server address, gateway etc.
    domain-name <domain>
    dns-server <address [address2 ... address8]>
    default-router <address [address2 ... address8]>
    lease {days [hours] [minutes] | infinite}
    Example configuration
    domain-name example.com
    dns-server 10.1.1.2 10.1.1.3
    default-router 10.1.1.1
    lease 7
  5. After this connect with a client and try to obtain IP address via DHCP. If DHCP works properly, we can check DHCP bindings on router using:
    show ip dhcp binding


Refer:



Home > Switch configuration notes > Configure DHCP server on Cisco router