Which WAN modes are supported by CDRouter IPv6?

CDRouter IPv6 supports several WAN modes: static IPv6, DHCPv6, autoconf, 6to4, 6rd, and PPPoE. CDRouter IPv6 also optionally supports DHCPv6 prefix delegation when static, autoconf, DHCPv6, or PPPoE 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

DHCPv6 Mode

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

To enable DHCPv6 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 IPv4 address 192.88.99.1 with IPv6 address 3001:051a:cafe::6. These addresses can be changed using the testvars ipv6RelayServer and ipv6RelayServerGlobal:

testvar ipv6RelayServer 192.88.99.1
testvar ipv6RelayServerGlobal 3001:051a:cafe::6

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. Similarly, the IPv6 address used by the relay server can be configured using the testvar ipv6RelayServerGlobal:

testvar ipv6RelayServer 10.3.3.3
testvar ipv6RelayServerGlobal 3001:051a:cafe::6

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.

IPv6 over PPPoE

To enable IPv6 over PPPoE, set the testvar ipv6WanMode to PPPoE:

testvar ipv6WanMode PPPoE

The PPPoE username, password, and authentication type must also be configured using the following testvars:

testvar pppoeUser      qacafe
testvar pppoePassword  qacafe123
testvar pppAuthType    CHAP

IPv6 over PPP is formally defined in IETF RFC 5072. In addition, IETF RFC 4241 describes a dual-stack internet access model which defines the basic IPv6 over PPPoE architecture implemented by CDRouter.

PPPoE primarily provides authentication capabilities for IPv6. There are no NCP (IPv6CP) options for negotiating IPv6 addresses like there are for IPv4. As a result, following successful PPPoE connection establishment, the CPE must utilize another mechanism for obtaining global IPv6 address and prefix information. CDRouter currently supports three different scenarios for provisioning IPv6 address and prefix information CPE devices implementing IPv6 over PPPoE:

  1. Static configuration of LAN side IPv6 address and prefix
  2. DHCPv6 for WAN address and LAN prefix
  3. DHCPv6 for LAN prefix only

If the CPE is running PPPoE for IPv4 as well as IPv6, CDRouter requires that both IPCP and IPv6CP occur in the same PPPoE session. CDRouter does not support implementations where IPCP and IPv6CP occur in different PPPoE sessions.

For more information on IPv6 over PPPoE, including configuration examples for each of the three scenarios listed above, please see our Application Note on testing IPv6 over PPPoE with CDRouter.