lpi2:dhcp6
Inhaltsverzeichnis
Adresse über SLAAC + DHCP6 Zusatzinfo
- /etc/radvd.conf
interface enp0s3 { AdvSendAdvert on; prefix 2001:db8:0:15::/64 { AdvOnLink on; AdvAutonomous on; AdvPreferredLifetime 900; AdvValidLifetime 1500; }; AdvDefaultLifetime 1500; AdvOtherConfigFlag on; };
- /etc/dhcp/dhcpd6.conf
option dhcp6.name-servers 2001:db8:0:910::1; option dhcp6.domain-search "kurs.home"; subnet6 2001:db8:0:910::/64 { }
- /etc/default
… INTERFACESv6="eth0" …
DHCP Server Konfiguration für v6 testen:
dhcpd -6 -cf /etc/dhcp/dhcpd6.conf -t
DHCP Server Leases für v6 testen:
dhcpd -6 -cf /etc/dhcp/dhcpd6.conf -t
DHCP Server neu starten
service isc-dhcp-server restart
Sind DHCPv6 Server da?
ping -I enp0s3 ff02::1:2
DHCP Client für v6 testen: stateless (nur information, keine IP) Anfrage
dhclient -6 -S -v -sf /bin/true enp0s3
temporäte IPv6 Adresse anfordern:
dhclient -6 -T -v -sf /bin/true enp0s3
normale IPv6 Adresse anfordern:
dhclient -6 -N -v -sf /bin/true enp0s3
DORA (Dicover,Offer, Request, Ack) in IPv4 wird zu SARR (Silicit, Advertise, Request, Reply) in IPv6
- Lease heißt bei IPv6 Identity Assosiation
- IPv4 renew time heißt jetzt T1 (an den selben DHCP-Server)
- IPv4 rebind time heißt jetzt T2 (an alle DHCP-Server)
Ranges
normale IPv6 Adressen von f00:0 bis fff:ffff:
range6 2001:db8:0:910::f00:0 2001:db8:0:910::fff:ffff;
temporäre (nicht verlängerbare) IPv6 Adressen von 0 bis ffff:
range6 2001:db8:0:910::/104 temporary;
IPv6 Subnetz:
prefix6 2001:db8:ff00:: 2001:db8:ffff:: /64;
Adresse und Zusatzinfos über DHCPv6
- /etc/radvd.conf
interface enp0s3 { AdvSendAdvert on; prefix 2001:db8:0:15::/64 { AdvOnLink on; AdvAutonomous off; AdvPreferredLifetime 900; AdvValidLifetime 1500; }; AdvDefaultLifetime 1500; AdvManagedFlag on; };
- /etc/dhcp/dhcpd6.conf
subnet6 2001:db8:0:910::/64 { range6 2001:db8:0:910::f00:0000 2001:db8:0:910::fff:0000; range6 2001:db8:0:910::/64 temporary; prefix6 2001:db8:ff00:: 2001:db8:ffff:: /64; }
Links
Am Ende: https://ipv6.he.net/certification/
1)
range /104, damit jeder Client seine alleinige Multicast Soliticitation bekommt
lpi2/dhcp6.txt · Zuletzt geändert: 2023/12/20 11:19 von ingo_wichmann
