IPv6 DHCP6c
Version vom 15. November 2019, 11:25 Uhr von Thomas.will (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „=Install= *apt-get install wide-dhcpv6-client =sysctl.conf= ==IPv6 Forwarding einschalten== net.ipv6.conf.all.forwarding = 1 ==Akzeptieren der Router Advertism…“)
Install
- apt-get install wide-dhcpv6-client
sysctl.conf
IPv6 Forwarding einschalten
net.ipv6.conf.all.forwarding = 1
Akzeptieren der Router Advertisments
net.ipv6.conf.ens19.accept_ra=2
systcl neueinlesen
- sysctl -p
net.ipv6.conf.all.forwarding = 1 net.ipv6.conf.ens19.accept_ra = 2
in /etc/wide-dhcpv6/dhcp6c.conf interface eth0 { # external facing interface (WAN)
send ia-na 1; send ia-pd 1; request domain-name-servers; request domain-name; script "/etc/wide-dhcpv6/dhcp6c-script";
};
id-assoc pd 1 {
prefix-interface eth1 { #internal facing interface (LAN)
sla-id 0; # subnet. Combined with ia-pd to configure the subnet for this interface.
ifid 1; #IP address "postfix". if not set it will use EUI-64 address of the interface. Combined with SLA-ID'd prefix to create full IP address of interface.
sla-len 8; # prefix bits assigned. Take the prefix size you're assigned (something like /48 or /56) and subtract it from 64. In my case I was being assigned a /56, so 64-56=8
};
};
id-assoc na 1 {
# id-assoc for eth1
};