qacafe - ip test solutions
Knowledge Base > Test Execution > How can I configure CDRouter to run without a DHCP server in the router?

How can I configure CDRouter to run without a DHCP server in the router?

If the device under test (DUT) does not have a DHCP server or you do not wish to use DHCP on the LAN, set the testvar useInternalDHCP to 'yes' in your CDRouter configuration file. For example,

  testvar useInternalDHCP yes

When the testvar useInternalDHCP is enabled, CDRouter will automatically assign IP addresses to any LAN clients from the IP range defined by the testvars dhcpClientStart and dhcpClientEnd:

  testvar dhcpClientStart 192.168.1.2
  testvar dhcpClientEnd 192.168.1.50

When configured this way, CDRouter will not send DHCP requests to the DUT. Also, any DHCP server specific tests will be automatically skipped.

By default, the LAN clients will also use the DUT's LAN IP as the DNS server address. This behavior can be modified by specifying the DNS server that CDRouter should assign to all LAN clients using the testvar internalDHCPdns:

  testvar internalDHCPdns 1.1.1.1

The internalDHCPdns testvar is normally set to the same DNS server as testvar wanDnsServer. In this setup, LAN clients will send directly to the real DNS server instead of sending DNS requests to the DUT.