I have my IDnet IPv4 working fine, but cannot get IPv6 assigned
Trying to use dhclient with command
dhclient -6 -d -cf /etc/dhcp/IDnIPv6.conf -P --prefix-len-hint 48 eth1
IDnIPv6.conf just
request;
send dhcp-client-identifier "FTTH.91961@idnet";
Is keeps trying
Listening on Socket/eth1
Sending on Socket/eth1
PRC: Soliciting for leases (INIT).
XMT: Forming Solicit, 0 ms elapsed.
XMT: X-- IA_PD 5c:d4:11:c5
XMT: | X-- Request renew in +3600
XMT: | X-- Request rebind in +5400
XMT: Solicit on eth1, interval 1060ms.
forever
---.--
This is a Debian Linux box as the router
eth1 is the PPPoE connection ppp1 to the ONT
or eth1.911 which is up and running
my local LAN is on eth0
I have other IPv6 addresses live and working
---.---
># ip add sh dev ppp1
ppp1: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1492
qdisc fq_codel state UNKNOWN group default qlen 3 link/ppp
inet 212.xx.xx.50 peer 212.69.63.19/32 scope global ppp1
inet6 fe80::18a8:552f:6ab3:bbdc peer fe80::4e4e:35ff:fed6:e400/128 scope link
Thanks in anticipation
That's because you need to do it at the PPP level:
~# more /etc/ppp/peers/dsl-provider
# Minimalistic default options file for DSL/PPPoE connections
noipdefault
defaultroute
replacedefaultroute
hide-password
noauth
persist
maxfail 0
plugin rp-pppoe.so eth1
+ipv6 ipv6cp-use-ipaddr
# debug
user "accountname@idnet.gw6"
And then you advertise a route internally:
# more /etc/radvd.conf
interface br0 {
IgnoreIfMissing on;
AdvSendAdvert on;
AdvLinkMTU 1280;
prefix 2A02:390:XXXX:XXXX::/64
{
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr off;
};
};
And don't forget to add forwarding and appropriate filtering. I'm using foomuuri.
Adding some traffic shaping using "cake" might help with the bufferbloat problem too.
My "cake" script is:
#!/bin/bash
set -x
DOWN="50.0Mbit"
UP="10.0MBit"
ext=ppp0
ifb=ifb4${ext}
# egress
tc qdisc delete root dev $ext
tc qdisc add root dev $ext cake bandwidth $UP pppoe-vcmux nat
# ingress
ip link add name $ifb type ifb
tc qdisc del dev $ext ingress
tc qdisc add dev $ext handle ffff: ingress
tc qdisc del dev $ifb root
tc qdisc add dev $ifb root cake bandwidth $DOWN besteffort
ifconfig $ifb up
# if you don't bring the device up your connection
# will lock up on the next step.
tc filter add dev $ext parent ffff: protocol all \
prio 10 u32 match u32 0 0 flowid 1:1 action mirred egress \
redirect dev $ifb
Adjust the up/down numbers to match the service level you've got. In the middle of July I'll be bumping those numbers up to 100/20 (and saving about £2 a year).