If anyone happens across this and has an Edgerouter lite/pro and wants IPv6 this is for you.
Previously I had it going via SLAAC on a Zywall until a firmware update broke that.
Now I have a Ubiquiti Edgerouter and a simple setup for you folks.
First... you need to know how to use vi so learn that first.. and second you need to use the console.
This cannot be configured from the UI.
This assumes your wan interfaces is eth0 and your lan interface is eth1
1. sudo vi /etc/sysctl.conf
Add the following lines:
net.ipv6.conf.all.forwarding = 1net.ipv6.conf.eth0.accept_ra = 2
2. Load your changes:
sudo sysctl -p /etc/sysctl.conf
3. Setup the wide-dhcpv6 client
sudo vi /etc/wide-dhcpv6/dhcp6c.conf
Add the following at the end:
interface eth0 { send ia-pd 0; request domain-name-servers;}; id-assoc pd 0 { prefix-interface eth1 { sla-id 1; sla-len 0; };};
4. Start wide-dhcpv6:
sudo /etc/init.d/wide-dhcpv6-client start
Check your eth1 interface for an IPv6 address..
sudo ipconfig
Look for lines like...
inet6 addr: fe80::618:d6ff:fef0:7744/64 Scope:Linkinet6 addr: 2602:306:bdbe:966f:xxxx:xxxx:xxxx:xxxx/64 Scope:Global
5. Set up radvd
Use the following commands:
configureset interfaces ethernet eth1 ipv6 router-advert prefix ::/64commit
Workstations should now get addresses and all should be well.
Not too hard!
Enjoy.
↧