If the device under test (DUT) does not have a DHCPv4 server or you do not wish to use DHCPv4 on the LAN, set the testvar lanMode to ‘static’ in your CDRouter configuration file. For example,
testvar lanMode static
testvar dhcpClientStart 192.168.1.2 testvar dhcpClientEnd 192.168.1.50
When configured this way, CDRouter will not send any DHCPv4 requests to the DUT. Also, any DHCPv4 server specific tests in your test package 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 enabling the testvar lanStaticDns. This instructs CDRouter to use the value assigned to testvar wanDnsServer for all LAN clients.
testvar lanMode static testvar lanStaticDns yes testvar wanDnsServer 18.104.22.168
With the above configuration, LAN clients will send requests directly to the ‘real’ DNS server, instead of sending DNS requests to the DUT.