IPv6 DHCP6c: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(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…“)
 
Zeile 11: Zeile 11:
 
  net.ipv6.conf.ens19.accept_ra = 2
 
  net.ipv6.conf.ens19.accept_ra = 2
  
in /etc/wide-dhcpv6/dhcp6c.conf
+
=wide-dhcpv6-client==
interface eth0 { # external facing interface (WAN)
+
==Defaulteinstellung=
  send ia-na 1;
+
Interface auf von dem die Anfragen ausgehen
  send ia-pd 1;
+
*cat  /etc/default/wide-dhcpv6-client
  request domain-name-servers;
+
INTERFACES="ens18"
  request domain-name;
+
==Konfigdatei==
  script "/etc/wide-dhcpv6/dhcp6c-script";
+
*cat /etc/wide-dhcpv6/dhcp6c.conf
 +
<pre>
 +
interface ens18 {
 +
    send ia-pd 1;
 +
    send rapid-commit;
 +
    script "/etc/wide-dhcpv6/dhcp6c-script";
 
};
 
};
  
 
id-assoc pd 1 {
 
id-assoc pd 1 {
  prefix-interface eth1 { #internal facing interface (LAN)
+
    prefix ::/56 infinity;
    sla-id 0; # subnet. Combined with ia-pd to configure the subnet for this interface.
+
    prefix-interface ens19 {
    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-id 0;
    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
+
        ifid 1;
 +
        sla-len 8;
 
     };
 
     };
  };
 
 
  id-assoc na 1 {
 
  # id-assoc for eth1
 
 
};
 
};
 +
</pre>
 +
=restart
 +
*systemctl restart wide-dhcpv6-client.service

Version vom 15. November 2019, 11:37 Uhr

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