

, so mangle the first 32 bits.rfc3849 wrote:The prefix allocated for documentation purposes is 2001:DB8::/32






Code: Select all
# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
#option classless_static_routes
# Most distributions have NTP support.
option ntp_servers
# Respect the network MTU. This is applied to DHCP routes.
option interface_mtu
# A ServerID is required by RFC2131.
require dhcp_server_identifier
# Generate SLAAC address using the Hardware Address of the interface
#slaac hwaddr
# OR generate Stable Private IPv6 Addresses based from the DUID
slaac private
#noipv6rs
ipv6only
allowinterfaces ppp0
interface ppp0
interface ppp0
# request a normal (IA_NA) IPv6 address with IAID 0
iaid 100
# ia_pd
ia_pd 3 eth3 eth1Code: Select all
interface eth1
# green - wired
{
## (Send advertisement messages to other hosts)
AdvSendAdvert on;
## (Fragmentation is bad(tm))
AdvLinkMTU 1280;
MaxRtrAdvInterval 300;
## (IPv6 subnet prefix we've been assigned by our ISP)
# dhcpcd gets our delegated prefix and allocates it
# around our interfaces
# it also allocates the interface IPv6 address
# we just advertise the /64 on the interface
prefix ::/64
{
AdvOnLink on;
AdvAutonomous on;
};
};



Code: Select all
+----------+ +--------+
| | | +--LAN 1 -->
---ISP-+ Fritzbox +---A---+ Server |
| | | +--LAN 2 -->
+----------+ +--------+Code: Select all
ip -6 addr show
ip -6 route showCode: Select all
ping6 google.comCode: Select all
$ ping6 google.com
PING google.com(lhr48s30-in-x0e.1e100.net (2a00:1450:4009:823::200e)) 56 data bytes
64 bytes from lhr48s30-in-x0e.1e100.net (2a00:1450:4009:823::200e): icmp_seq=1 ttl=118 time=20.1 ms
64 bytes from lhr48s30-in-x0e.1e100.net (2a00:1450:4009:823::200e): icmp_seq=2 ttl=118 time=21.2 ms
64 bytes from lhr48s30-in-x0e.1e100.net (2a00:1450:4009:823::200e): icmp_seq=3 ttl=118 time=20.6 ms

Code: Select all
ping6 ff02::2 -I <towards Fritzbox> Code: Select all
$ ping6 ff02::2 -I eth0
ping6: Warning: source address might be selected on device other than: eth0
PING ff02::2(ff02::2) from :: eth0: 56 data bytes
64 bytes from fe80::5054:ff:febe:8d73%eth0: icmp_seq=1 ttl=64 time=0.906 ms
64 bytes from fe80::5054:ff:febe:8d73%eth0: icmp_seq=2 ttl=64 time=0.960 ms
64 bytes from fe80::5054:ff:febe:8d73%eth0: icmp_seq=3 ttl=64 time=0.908 msCode: Select all
$ ip -6 route show
xxx:xxx:xxx:xxx::/64 dev eth0 proto kernel metric 256 expires 86236sec pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium
default via fe80::5054:ff:febe:8d73 dev eth0 proto ra metric 1024 expires 736sec mtu 1280 hoplimit 64 pref mediumCode: Select all
ipv6only

Code: Select all
ipv6onlyCode: Select all
<Fritzbox_Facing_Interface>
# request a normal (IA_NA) IPv6 address with IAID 100
iaid 100
ia_na
Code: Select all
dhcpcd -dCode: Select all
man dhcpcd.confCode: Select all
# ia_pd
ia_pd 3 eth3 eth1Code: Select all
killall dhcpcd