IPv6 DHCP6c

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

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

wide-dhcpv6-client=

=Defaulteinstellung

Interface auf von dem die Anfragen ausgehen

  • cat /etc/default/wide-dhcpv6-client
INTERFACES="ens18"

Konfigdatei

  • cat /etc/wide-dhcpv6/dhcp6c.conf
interface ens18 {  
    send ia-pd 1;
    send rapid-commit;
    script "/etc/wide-dhcpv6/dhcp6c-script";
};

id-assoc pd 1 {
    prefix ::/56 infinity;
    prefix-interface ens19 {
        sla-id 0;
        ifid 1;
        sla-len 8;
    };
};

=restart

  • systemctl restart wide-dhcpv6-client.service