When testing a router with a wireless WAN interface, CDRouter can either be connected to the base station of the wireless network, or a second router may be used to test through a real wireless network.
When a connection to the base station is not possible, the two router configuration below is recommended. The first router is configured as the normal router under test. The second router should be placed in a DMZ configuration. Since the WAN interface of CDRouter actually connects to the LAN interface of the second router behind NAT, CDRouter can only use a single IP address for WAN connectivity.
This mode of operation can be enabled by configuring the remoteHostIp on the WAN side with an additional private IP address. When connecting from the LAN, clients will use the IP address remoteHostIp. However, the actual protocol stack will run using remoteHostPrivateIp. The second WAN router must be configured with a DMZ host that matches remoteHostPrivateIp. For example:
testvar remoteHostIp 5.0.0.2 testvar remoteHostPrivateIp 192.168.1.100
When CDRouter is running in this type of configuration, several test cases that use multiple IP address on the WAN are skipped automatically. Only the remoteHostIp is used on the WAN side. Some test modules do not support this type of configuration.
# -- the lanIp matches Router 1's LAN IP address testvar lanIp 192.168.1.1 # -- CDRouter WAN configuration matches LAN side of Router 2 testvar wanIspIp 192.168.1.100 testvar wanIspAssignIp 192.168.1.1 testvar wanNatIp 77.56.1.2 testvar wanMode static # -- the remoteHostIp matches Router 2 WAN side testvar remoteHostIp 77.67.1.2 # -- the remoteHostPrivateIp is an IP on Router 2's LAN testvar remoteHostPrivateIp 192.168.1.100 # -- adjust the HOP count based on the number of hops testvar IPv4HopCount 2