The below configuration commands can be used to configure IPv6 DCHP-PD on a Ubiquiti Edgerouter running EdgeOS that has an existing IPv4 PPPoE configuration. This has been tested with version 2.0.4 but should also work on earlier versions.
The following assumes that your PPPoE interface is running on eth0
, tagged with VLAN ID 100
, and that your local bridge interface is named switch0
- if your configuration varies, please adjust this as necessary.
set interfaces ethernet eth0 vif 100 pppoe 0 dhcpv6-pd pd 0 interface switch0 host-address '::1'
set interfaces ethernet eth0 vif 100 pppoe 0 dhcpv6-pd pd 0 interface switch0 prefix-id ':1'
set interfaces ethernet eth0 vif 100 pppoe 0 dhcpv6-pd pd 0 interface switch0 service slaac
set interfaces ethernet eth0 vif 100 pppoe 0 dhcpv6-pd pd 0 prefix-length 56
set interfaces ethernet eth0 vif 100 pppoe 0 dhcpv6-pd rapid-commit enable
set interfaces ethernet eth0 vif 100 pppoe 0 ipv6 dup-addr-detect-transmits 0
set interfaces ethernet eth0 vif 100 pppoe 0 ipv6 enable
set firewall options mss-clamp6 mss 1432
This example does not include an IPv6 firewall and is provided as an example only.
For reference, here is a more complete basic configuration tree for both IPv6 and IPv4:
ethernet eth0 {
duplex auto
mtu 1500
speed auto
vif 100 {
pppoe 0 {
default-route auto
dhcpv6-pd {
pd 0 {
interface switch0 {
host-address ::1
prefix-id :1
service slaac
}
prefix-length 56
}
rapid-commit enable
}
ipv6 {
dup-addr-detect-transmits 0
enable {
}
}
mtu 1492
name-server auto
password your-password
user-id your-username@pentanet.com.au
}
}
}