Sunday, 14 February 2016

HowTo: IPv6 over PPPoE on the Ubiquiti EdgeRouter Lite 3-Port EdgeMAX Router

The new 1.2.0beta2 version of the EdgeMAX software on the EdgeRouter Lite has the following entry in its changelog:
[PPPoE] Add IPv6 settings for PPPoE client interfaces, which allows a PPPoE client interface to work with IPv6 address
So how does that work and how can we use it ?
Ubiquiti EdgeRouter Lite 3-Port EdgeMAX Router
Our ISP, Andrews & Arnold, provides native IPv6 over PPPoE, so we thought we would test it.
We will cover the initial PPPoE configuration for IPv4 and then the additional steps for IPv6.
The first step is to configure the PPPoE client, this has to be done via the CLI as this is not currently support in the web interface.
We are using eth2 for the WAN connection over PPPoE:

We also need to ensure that the MTU is set correctly, a PPPoE connection has an 8 byte overhead so on our standard 1500 byte ADSL connection, we have to reduce the MTU to 1492, and the MSS to 40 less than that, namely 1452:

To add a masquerade rule to make the IPv4 connection work:

To enable ipv6 on the PPPoE interface:

To add a static IPv6 address to our internal LAN interface, this is the first IP in our allocated block from our ISP:

To add a default route:

To enable Router Advertisements on eth0, which is our LAN interface:

Once this is done we can test using: