qacafe - ip test solutions
Knowledge Base > Which WAN modes are supported by CDRouter IPv6?

Which WAN modes are supported by CDRouter IPv6?

IPv6
CDRouter IPv6 supports several WAN modes: static IPv6, DHCPv6, autoconf, 6to4, and 6rd. CDRouter IPv6 also optionally supports DHCPv6 prefix delegation when autoconf or DHCPv6 is used. Information about each IPv6 WAN mode is provided below.

Static Mode

In this mode, any arbitrary IPv6 network may be used for the WAN connection. Unlike 6to4, there is no correlation between the WAN and the LAN addresses.

To enable static IPv6 on the WAN, set the testvar ipv6WanMode to "static":

testvar ipv6WanMode static

The DUT's IPv6 address is configured using the testvar ipv6WanIspAssignIp, whereas the ISP's WAN address is configured using the ipv6WanIspIp testvar. The value of these testvars must match the configuration of the DUT.

For example, if the DUT is configured with a static WAN IPv6 address of 3001::2, and a default router (next-hop gateway) of 3001::1, the testvars ipv6WanIspAssignIp and ipv6WanIspIp should be configured as follows:

testvar ipv6WanIspAssignIp 3001::2
testvar ipv6WanIspIp 3001::1

DHCP Mode

In this mode, CDRouter expects the DUT to issue a DHCP Solicit on the WAN interface.

To enable DHCP on the WAN, set the testvar ipv6WanMode to "DHCP":

testvar ipv6WanMode DHCP

The DUT's IPv6 address is configured using the testvar ipv6WanIspAssignIp, whereas the ISP's WAN address is configured using the ipv6WanIspIp testvar. The value of these testvars must match the configuration of the DUT.

testvar ipv6WanIspAssignIp 3001::2
testvar ipv6WanIspIp 3001::1

CDRouter also supports prefix delegation for this WAN mode. Please see this Knowledge Base article for information on configuring prefix delegation.

Autoconf Mode

In this mode, CDRouter expects the DUT to listen for a Router Advertisement on the WAN interface and to self-assign an IPv6 address using a prefix learned during this process.

To enable autoconf on the WAN, set the testvar ipv6WanMode to "autoconf":

testvar ipv6WanMode autoconf

Only two testvars must be configured for autoconf on the WAN. CDRouter will determine the correct prefix to advertise based on these testvar values:

testvar ipv6WanIspIp 3001::1
testvar ipv6WanIspPrefixLen 64

CDRouter also supports prefix delegation for this WAN mode. Please see this Knowledge Base article for information on configuring prefix delegation.

6to4 Mode

To enable 6to4, set the testvar ipv6WanMode to "6to4":

testvar ipv6WanMode 6to4

6to4 (RFC 3056) lets IPv6 networks connect over the IPv4 Internet. A special IPv6 subnet, 2002::/16, is specifically allocated for 6to4 use. Since each public IPv4 address is unique, it can simply be used as bits 17-48 of a 2002:: address. This creates a unique 48 bit network for every IPv4 address. Since the IPv4 address is embedded in the IPv6 address, it's already known where the packet must be going, or is from. This makes delivery between nodes very easy.

This doesn't solve the issue of communicating with native IPv6 addresses. To get packets delivered to non 6to4 hosts, special relay servers are run on anycast, each at the same static, well-known IPv4 address. Any of these servers are able to route traffic between the 6to4 network and the native network. These servers are run for the general public by institutions advocating IPv6 adoption.

CDRouter IPv6 simulates a 6to4 relay server for testing this functionality. By default CDRouter creates a 6to4 relay server at the well known address 192.88.99.1. This address can be changed using the testvar ipv6RelayServer:

testvar ipv6RelayServer 192.88.99.1

6to4 addresses are deterministic. The IPv4 WAN address determines the IPv6 prefix available for the LAN clients. These addresses can be allocated through autoconf or by DHCPv6.

6rd Mode (Rapid Deploy)

To enable 6rd, set the testvar ipv6WanMode to "6rd":

testvar ipv6WanMode 6rd

6rd is a generalized application of 6to4. For a detailed explanation of 6rd and its differences from 6to4, please view our article Testing 6to4 and 6rd IPv6 Islands with CDRouter.

CDRouter IPv6 creates a 6rd relay server on the WAN stack for testing 6rd functionality. By default CDRouter creates a 6to4 relay server at the well known address 192.88.99.1. Under 6rd, the ISP will generally use its own relay server with a native ISP IPv4 address. This address can be changed using the testvar ipv6RelayServer:

testvar ipv6RelayServer 10.3.3.3

6rd requires three additional testvars for complete configuration:

testvar ipv6rdPrefix 3010:1234::
testvar ipv6rdPrefixLen 32
testvar ipv6rdIPv4MaskLen 0

The ipv6rdPrefix testvar is of arbitrary length, assigned to an ISP by the IANA. The length of this prefix is determined with ipv6rdPrefixLen. Finally, the ipv6rdIPv4MaskLen indicates the number of leading bits to be dropped from the mapped IPv4 WAN address. This technique was written into the 6rd protocol in order to save prefix bits, since any bits in the IPv4 address that are not unique are useless for identifying the 6rd client.

Related articles that may also be helpful: