[...]
Does anyone here use Andrews & Arnold with linux PPPoE and has a
> working IPv6 configuration?
>
> (Or a better idea on how to get the public IP on to a linux box
> without
> using pppoe? I do not want "dodgy" NAT on proprietary devices)
... I've been asked to share. I use debian.
/etc/ppp/peers/aanet:
# cnw: connect to aanet
user [your aanet username]
plugin rp-pppoe.so
eth1
noipdefault
defaultroute
#usepeerdns <----- uncomment this if you want resolv.conf to be
set up automatically
hide-password
lcp-echo-interval 1
lcp-echo-failure 10
#connect /bin/true
noauth
persist
maxfail 0
#holdoff 120 <---- this will cause pppd to dial once every 2 mins
else default is 0 sec
mtu 1492
noaccomp
default-asyncmap
+ipv6
ipv6cp-use-ipaddr
ipv6cp-accept-local
ipv6cp-accept-remote
"ip addr" should show a v6 link local on ppp0:
7: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1492 qdisc
pfifo_fast state UNKNOWN group default qlen 3
link/ppp
inet [your ipv4 addr] peer [aanet ipv4 addr]/32 scope global ppp0
valid_lft forever preferred_lft forever
inet6 fe80::35e2:b75a:e9b2:a690/10 scope link
valid_lft forever preferred_lft forever
cat /etc/ppp/ip-up.d/aanet:
#!/bin/sh
# cnw: delete previous default routes and set up new one
route delete default
route add default dev $PPIF
iptables -t nat -A POSTROUTING -o $PPIF -j MASQUERADE
ip -6 route del default
ip -6 route add default dev ${PPIF}
exit 0
on startup I run a script that - amongst other things does this:
ip -6 addr add [an ip6 from my aanet block]/64 dev eth0
radvd -C /srv/radvd.conf
cat /srv/radvd.conf
interface eth0 {
MaxRtrAdvInterval 20;
MinRtrAdvInterval 10;
prefix [my aanet assigned ipv6 block]/64 {
AdvOnLink on;
AdvRouterAddr on;
AdvValidLifetime 60;
AdvPreferredLifetime 59;
};
RDNSS [my ipv6 local dns server] {
};
};
I verify routing by pinging aanets dns servers:
PING aadns(aadns (2001:8b0::2020)) 56 data bytes
64 bytes from aadns (2001:8b0::2020): icmp_seq=1 ttl=60 time=14.6 ms
64 bytes from aadns (2001:8b0::2020): icmp_seq=2 ttl=60 time=13.9 ms
if you are running bind & isc-dhcp-server it needs adjusting, e.g. in
my case adding ipv6 to allow-query to bind and various other minor
tweaks.
Hope that helps,
Conrad