Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
linux:radvd [09.07.2024 15:10. ] – [Musterkonfiguration GUA via SLAAC und ULA via DHCPv6] django | linux:radvd [10.07.2024 18:40. ] (aktuell) – [RA — Router Advertisement (ICMPv6 type 134)] django | ||
---|---|---|---|
Zeile 61: | Zeile 61: | ||
=== RA — Router Advertisement (ICMPv6 type 134) === | === RA — Router Advertisement (ICMPv6 type 134) === | ||
- | **Router Advertisment Nachrichten** werden vom Server entweder regelmässig an alle Clients im Netz oder ebnen speziell auf An Anfrage durch einen Client versandt. Es handelt sich also im ersten Fall um eine ICMPv6-Nachricht, | + | **Router Advertisment Nachrichten** werden vom Server entweder regelmässig an alle Clients im Netz oder ebnen speziell auf An Anfrage durch einen Client versandt. Es handelt sich also im ersten Fall um eine ICMPv6-Nachricht, |
* Ein Router verwenden diese RA-Nachrichten, | * Ein Router verwenden diese RA-Nachrichten, | ||
* Hosts verwerten diese RA-Nachrichten, | * Hosts verwerten diese RA-Nachrichten, | ||
Zeile 67: | Zeile 67: | ||
* **Home-Agent H-Flag**: Dieses Flag wird verwendet, um anzuzeigen, dass es sich bei dem beworbenen Präfix um ein Heimnetzwerk-Präfix handelt, insbesondere für Mobile IPv6, dass sie also somit als Home Agent für Mobile IPv6 fungieren und Dienste für mobile Knoten bereitstellen können. | * **Home-Agent H-Flag**: Dieses Flag wird verwendet, um anzuzeigen, dass es sich bei dem beworbenen Präfix um ein Heimnetzwerk-Präfix handelt, insbesondere für Mobile IPv6, dass sie also somit als Home Agent für Mobile IPv6 fungieren und Dienste für mobile Knoten bereitstellen können. | ||
* **On-link L-Flag**: Ist dieses Flag gesetzt, wird definiert dass ein bestimmtes Präfix als " | * **On-link L-Flag**: Ist dieses Flag gesetzt, wird definiert dass ein bestimmtes Präfix als " | ||
- | * **Managed M-Flag** : Eine ' | + | * **Managed M-Flag** : Eine ' |
* **Other O-Flag** : Eine ' | * **Other O-Flag** : Eine ' | ||
* **Router-Präferenz (Prf)**: Der Wert in diesem Feld steht für die Präferenzstufe des Routers, der die RA-Nachricht sendet. So wird z.B. darüber ermittelt ob das Gateway als Standardgateway fungieren soll. Das Prf-Feld kann drei Werte annehmen: Hoch (0x00), Mittel (0x40) oder Niedrig (0x80). Router mit einem höheren Präferenzwert werden gegenüber Routern mit niedrigeren Werten bevorzugt. | * **Router-Präferenz (Prf)**: Der Wert in diesem Feld steht für die Präferenzstufe des Routers, der die RA-Nachricht sendet. So wird z.B. darüber ermittelt ob das Gateway als Standardgateway fungieren soll. Das Prf-Feld kann drei Werte annehmen: Hoch (0x00), Mittel (0x40) oder Niedrig (0x80). Router mit einem höheren Präferenzwert werden gegenüber Routern mit niedrigeren Werten bevorzugt. | ||
Zeile 176: | Zeile 176: | ||
- **[[# | - **[[# | ||
- **[[# | - **[[# | ||
- | - **[[#musterkonfiguration|Musterkonfiguration für GUA via SLAAC und statischen festen ULA mit Hilfe von DHCPv6]]** | + | - **[[#musterkonfiguration_gua_via_slaac_und_ula_via_dhcpv6|Musterkonfiguration für GUA via SLAAC und statischen festen ULA mit Hilfe von DHCPv6]]** |
</ | </ | ||
Zeile 230: | Zeile 229: | ||
* **M-Flag**: \\ AdvManagedFlag = **'' | * **M-Flag**: \\ AdvManagedFlag = **'' | ||
* **O-Flag**: \\ AdvOtherConfigFlag = **'' | * **O-Flag**: \\ AdvOtherConfigFlag = **'' | ||
- | * **A-Flag**: \\AdvAutonomous = **'' | + | * **A-Flag**: \\ AdvAutonomous = **'' |
* **Global-Scope Address Prefix** : \\ **'' | * **Global-Scope Address Prefix** : \\ **'' | ||
* **Route** : \\ **'' | * **Route** : \\ **'' | ||
Zeile 699: | Zeile 698: | ||
</ | </ | ||
- | Warum ist das nun so? Ganz einfach, weil am Client-Renchner | + | Warum ist das nun so? Ganz einfach, weil am Client-Rechner |
# vim / | # vim / | ||
<file bash / | <file bash / | ||
Zeile 1162: | Zeile 1161: | ||
==== Musterkonfiguration GUA via SLAAC und ULA via DHCPv6 ==== | ==== Musterkonfiguration GUA via SLAAC und ULA via DHCPv6 ==== | ||
+ | === Grundüberlegungen === | ||
In den beiden vorgenannten Konfigurationsbeispielen **[[# | In den beiden vorgenannten Konfigurationsbeispielen **[[# | ||
Zeile 1177: | Zeile 1177: | ||
- **GUA**: | - **GUA**: | ||
- Die öffentlichen **IPv6** Adressen (**GUA**)) vergeben wir dynamisch via SLAAC. | - Die öffentlichen **IPv6** Adressen (**GUA**)) vergeben wir dynamisch via SLAAC. | ||
- | - Laptops oder Notebooks auf denen ein aktuelles fortschrittliches Linux, wie z.B. **[[https:// | + | - Laptops oder Notebooks auf denen ein aktuelles fortschrittliches Linux, wie z.B. **[[https:// |
- Bei mobilen Geräten aus dem Hause Apple mit ihrem **[[https:// | - Bei mobilen Geräten aus dem Hause Apple mit ihrem **[[https:// | ||
- | Wir wollen uns also nun ansehen, wie wir solch ein muster-Szenario abbilden können | + | Wir wollen uns also nun ansehen, wie wir solch ein Muster-Szenario abbilden können |
</ | </ | ||
- | Der geneigte Leser wir sich nun fragen, ja wie macht man denn nun das beim **radvd**. denn schließlich wissen wir ja folgendes: | ||
+ | <WRAP center round alert 80%> | ||
+ | Der geneigte Leser wir sich nun fragen, ja wie macht man denn nun das beim **radvd**? Denn schliesslich wissen wir ja dass wir bei Nutzung von **SLAAC** die bekannten Flags wir folgt setzen müssen: | ||
+ | * **M-Flag**: \\ AdvManagedFlag = **'' | ||
+ | * **O-Flag**: \\ AdvOtherConfigFlag = **'' | ||
+ | * **A-Flag**: \\ AdvAutonomous = **'' | ||
+ | Hingegen bei **DHCPv6** hingegen müssen wir die Flags wie folgt setzen. | ||
+ | * **M-Flag**: \\ AdvManagedFlag = **'' | ||
+ | * **O-Flag**: \\ AdvOtherConfigFlag = **'' | ||
+ | * **A-Flag**: \\ AdvAutonomous = **'' | ||
+ | O.K. das **'' | ||
+ | </ | ||
- | FIXME | + | === radvd Konfiguration === |
+ | Wie wir aber dennoch eine funktionierende Konfiguration des **radvd** hierzu hinbekommen werden wir uns nun ansehen. **SPOILER**: | ||
+ | * **Netzwerkinterface** : \\ Der **radvd** soll auf dem Netzwerkinterface **'' | ||
+ | * **GUA** | ||
+ | * **SLAAC** : \\ Clients sollen sich über den Mechanismus **SLAAC** selbst öffentliche IPv6-Adressen generieren und das ohne Zuhilfenahme eines DHCPv6-Servers bei der Adressvergabe! | ||
+ | * **Global-Scope Address Prefix** : \\ **'' | ||
+ | * **Route** : \\ **'' | ||
+ | * **AdvRouteLifetime** : \\ Gültigkeit der Routen Lifetime | ||
+ | * **M-Flag**: \\ AdvManagedFlag = **'' | ||
+ | * **O-Flag**: \\ AdvOtherConfigFlag = **'' | ||
+ | * **A-Flag**: \\ AdvAutonomous = **'' | ||
+ | * **ULA** | ||
+ | * **DHCPv6** : \\ Der **radvd** lauscht auf dem Netzwerkinterface **'' | ||
+ | * **Unique Local IPv6 prefix** : \\ Hier verwenden wir den zuvor erzeugten Unique Local IPv6 prefix von **'' | ||
+ | * **Route** : \\ **'' | ||
+ | * **AdvRouteLifetime** : \\ Gültigkeit der Routen Lifetime | ||
+ | * **M-Flag**: \\ O.K. das **M-Flag** müssten wir ja eigentlich auf **'' | ||
+ | * **O-Flag**: \\ AdvOtherConfigFlag = **'' | ||
+ | * **A-Flag**: \\ AdvAutonomous = **'' | ||
+ | Daraus ergibt sich nun folgende Konfigurationsdatei für unseren radvd: | ||
+ | # vim / | ||
+ | <file bash / | ||
+ | # for GUA and SLAAC as well as ULA with DHCPv6 | ||
+ | # | ||
+ | # - O-flag: AdvOtherConfigFlag = on (obtaining a DNS server list | ||
+ | # and a domain name from a Stateless DHCPv6 server, but | ||
+ | # not addressing information. | ||
+ | # - M-flag: AdvManagedFlag = off (address configuration via SLAAC for GUA) | ||
+ | # - A-flag: AdvAutonomous = on (address configuration via SLAAC for GUA) | ||
+ | # - A-flag: AdvAutonomous = off (address configuration via DHCPv6 for static ULA) | ||
+ | interface eth1 | ||
+ | { | ||
+ | # A flag indicating | ||
+ | # router advertisements and responds to router solicitations. | ||
+ | # This option no longer has to be specified first, but it needs | ||
+ | # to be on to enable advertisement on this interface. | ||
+ | AdvSendAdvert on; | ||
+ | |||
+ | # The maximum | ||
+ | # cast router advertisements from the interface, in seconds. | ||
+ | # Must be no less than 4 seconds and no greater than 1800 seconds. | ||
+ | # Minimum when using Mobile IPv6 extensions: 0.07. | ||
+ | # For values less than 0.2 seconds, 0.02 seconds is added to | ||
+ | # account for scheduling granularities as specified in RFC3775. | ||
+ | MaxRtrAdvInterval 600; | ||
+ | |||
+ | # The minimum time allowed between sending unsolicited multicast | ||
+ | # router advertisements from the interface, in seconds. | ||
+ | # Must be no less than 3 seconds and no greater than | ||
+ | # 0.75 * MaxRtrAdvInterval. | ||
+ | # Minimum when using Mobile IPv6 extensions: 0.03. | ||
+ | MinRtrAdvInterval 200; | ||
+ | |||
+ | # The preference associated with the default router, as either | ||
+ | # " | ||
+ | AdvDefaultPreference medium; | ||
+ | |||
+ | # Mobile IPv6 support, when set, indicates that sending router is | ||
+ | # able to serve as Mobile IPv6 Home Agent. | ||
+ | # When set, minimum limits specified by Mobile IPv6 are used for | ||
+ | # MinRtrAdvInterval and MaxRtrAdvInterval. | ||
+ | AdvHomeAgentFlag off; | ||
+ | |||
+ | # When set, hosts use the administered (stateful) protocol for | ||
+ | # address | ||
+ | # autoconfigured using stateless address autoconfiguration. | ||
+ | # The use of this flag is described in RFC 4862. | ||
+ | # M-flag - if it is set to 1, this informs hosts that they can | ||
+ | # obtain a global address as well as DNS and a domain name from | ||
+ | # a Stateful DHCPv6 server. Typically this means that auto- | ||
+ | # addressing using SLAAC is not allowed on this segment and both | ||
+ | # the A-flag and the O-flag are set to 0. | ||
+ | AdvManagedFlag on; | ||
+ | |||
+ | # When set, hosts use the administered (stateful) protocol for | ||
+ | # autoconfiguration of other (non-address) information. | ||
+ | # The use of this flag is described in RFC 4862 | ||
+ | # O-flag - if it is set to on, this informs hosts that they can | ||
+ | # obtain a DNS server list and a domain name from a Stateless | ||
+ | # DHCPv6 server, but not addressing information. Typically it | ||
+ | # works in conjunction with SLAAC for auto-addressing and both | ||
+ | # the A-flag and the O-flag are set to on. | ||
+ | # | ||
+ | AdvOtherConfigFlag on; | ||
+ | |||
+ | # The time, in milliseconds, | ||
+ | # reachable after having received a reachability confirmation. | ||
+ | # Used by the Neighbor Unreachability Detection algorithm (see | ||
+ | # Section 7.3 of RFC 4861). | ||
+ | # A value of zero means unspecified (by this router). | ||
+ | # Must be no greater than 3,600,000 milliseconds (1 hour). | ||
+ | AdvReachableTime 0; | ||
+ | |||
+ | # The time,in milliseconds, | ||
+ | # citation messages. Used by address resolution and the Neighbor | ||
+ | # Unreachability Detection algorithm (see Sections 7.2 and 7.3 | ||
+ | # of RFC 4861). | ||
+ | AdvRetransTimer 0; | ||
+ | |||
+ | # The default value that should be placed in the Hop Count field of | ||
+ | # the IP header for outgoing (unicast) IP packets. The value should | ||
+ | # be set to the current diameter of the Internet. | ||
+ | # The value zero means unspecified (by this router). | ||
+ | AdvCurHopLimit 64; | ||
+ | |||
+ | # The lifetime associated with the default router in units of seconds. | ||
+ | # The maximum value corresponds to 18.2 hours. A lifetime of 0 indi- | ||
+ | # cates that the router is not a default router and should not appear | ||
+ | # on the default router list. The router lifetime applies only to the | ||
+ | # router' | ||
+ | # formation contained in other message fields or options. Options that | ||
+ | # need time limits for their information include their own lifetime | ||
+ | # fields. | ||
+ | # Must be either zero or between MaxRtrAdvInterval and 9000 seconds. | ||
+ | # Default: 3 * MaxRtrAdvInterval (Minimum 1 second). | ||
+ | AdvDefaultLifetime 1800; | ||
+ | |||
+ | # When set, the link-layer address of the outgoing interface is | ||
+ | # included in the RA. | ||
+ | AdvSourceLLAddress on; | ||
+ | |||
+ | # global-scope adress prefix | ||
+ | prefix 2003: | ||
+ | { | ||
+ | # When set, indicates that this prefix can be used for on-link | ||
+ | # determination. When not set the advertisement makes no statement | ||
+ | # about on-link or off-link properties of the prefix. For instance, | ||
+ | # the prefix might be used for address configuration with some of | ||
+ | # the addresses belonging to the prefix being on-link and others | ||
+ | # being off-link. | ||
+ | AdvOnLink on; | ||
+ | |||
+ | # When set, indicates that this prefix can be used for autonomous | ||
+ | # address configuration as specified in RFC 4862. | ||
+ | # A-flag - if it is set to on, this informs hosts that they can | ||
+ | # auto-generate GUA address using SLAAC. If it is set to off means | ||
+ | # that auto-configuration is not allowed for this segment. | ||
+ | AdvAutonomous on; | ||
+ | |||
+ | # When set, indicates that the address of interface is sent instead | ||
+ | # of network prefix, as is required by Mobile IPv6. When set, | ||
+ | # minimum limits specified by Mobile IPv6 are used for | ||
+ | # MinRtrAdvInterval and MaxRtrAdvInterval. | ||
+ | AdvRouterAddr off; | ||
+ | |||
+ | # The length of time in seconds (relative to the time the packet is | ||
+ | # sent) that the prefix is valid for the purpose of on-link de- | ||
+ | # termination. The symbolic value infinity represents infinity | ||
+ | # (i.e. a value of all one bits (0xffffffff)). The valid lifetime | ||
+ | # is also used by RFC 4862. | ||
+ | # | ||
+ | # Note that clients will ignore AdvValidLifetime of an existing | ||
+ | # prefix if the lifetime is below two hours, as required in RFC | ||
+ | # 4862 Section 5.5.3 point e). | ||
+ | # Note: RFC4861' | ||
+ | # 30 days. | ||
+ | AdvValidLifetime 5400; | ||
+ | |||
+ | # The length of time in seconds (relative to the time the packet | ||
+ | # is sent) that addresses generated from the prefix via stateless | ||
+ | # address autoconfiguration remain preferred. The symbolic value | ||
+ | # infinity represents infinity (i.e. a value of all one bits | ||
+ | # (0xffffffff)). | ||
+ | # | ||
+ | # Note: RFC4861' | ||
+ | # 7 days. | ||
+ | AdvPreferredLifetime 2700; | ||
+ | }; | ||
+ | |||
+ | route 2003: | ||
+ | { | ||
+ | # The preference associated with the default router, as either | ||
+ | # " | ||
+ | AdvRoutePreference medium; | ||
+ | |||
+ | # The lifetime associated with the route in units of seconds. The | ||
+ | # symbolic value infinity represents infinity (i.e. a value of | ||
+ | # all one bits (0xffffffff)). | ||
+ | # | ||
+ | # Default: 3 * MaxRtrAdvInterval | ||
+ | AdvRouteLifetime 1800; | ||
+ | }; | ||
+ | |||
+ | prefix fdb6: | ||
+ | { | ||
+ | # When set, indicates that this prefix can be used for on-link | ||
+ | # determination. When not set the advertisement makes no statement | ||
+ | # about on-link or off-link properties of the prefix. For instance, | ||
+ | # the prefix might be used for address configuration with some of | ||
+ | # the addresses belonging to the prefix being on-link and others | ||
+ | # being off-link. | ||
+ | AdvOnLink on; | ||
+ | |||
+ | # When set, indicates that this prefix can be used for autonomous | ||
+ | # address configuration as specified in RFC 4862. | ||
+ | # A-flag - if it is set to on, this informs hosts that they can | ||
+ | # auto-generate GUA address using SLAAC. If it is set to off means | ||
+ | # that auto-configuration is not allowed for this segment. | ||
+ | AdvAutonomous off; | ||
+ | |||
+ | # When set, indicates that the address of interface is sent instead | ||
+ | # of network prefix, as is required by Mobile IPv6. When set, | ||
+ | # minimum limits specified by Mobile IPv6 are used for | ||
+ | # MinRtrAdvInterval and MaxRtrAdvInterval. | ||
+ | AdvRouterAddr off; | ||
+ | |||
+ | # The length of time in seconds (relative to the time the packet is | ||
+ | # sent) that the prefix is valid for the purpose of on-link de- | ||
+ | # termination. The symbolic value infinity represents infinity | ||
+ | # (i.e. a value of all one bits (0xffffffff)). The valid lifetime | ||
+ | # is also used by RFC 4862. | ||
+ | # | ||
+ | # Note that clients will ignore AdvValidLifetime of an existing | ||
+ | # prefix if the lifetime is below two hours, as required in RFC | ||
+ | # 4862 Section 5.5.3 point e). | ||
+ | # Note: RFC4861' | ||
+ | # 30 days. | ||
+ | AdvValidLifetime 5400; | ||
+ | |||
+ | # The length of time in seconds (relative to the time the packet | ||
+ | # is sent) that addresses generated from the prefix via stateless | ||
+ | # address autoconfiguration remain preferred. The symbolic value | ||
+ | # infinity represents infinity (i.e. a value of all one bits | ||
+ | # (0xffffffff)). | ||
+ | # | ||
+ | # Note: RFC4861' | ||
+ | # 7 days. | ||
+ | AdvPreferredLifetime 2700; | ||
+ | }; | ||
+ | |||
+ | route fdb6: | ||
+ | { | ||
+ | # The preference associated with the default router, as either | ||
+ | # " | ||
+ | AdvRoutePreference medium; | ||
+ | |||
+ | # The lifetime associated with the route in units of seconds. The | ||
+ | # symbolic value infinity represents infinity (i.e. a value of | ||
+ | # all one bits (0xffffffff)). | ||
+ | # | ||
+ | # Default: 3 * MaxRtrAdvInterval | ||
+ | AdvRouteLifetime 1800; | ||
+ | }; | ||
+ | | ||
+ | }; | ||
+ | </ | ||
+ | |||
+ | Wollen wir die Kondfigurationsdate ohne die Kommentare sehen, grep' | ||
+ | # grep -Ev ' | ||
+ | |||
+ | ++++ Beispielkonfigurationsdatei ohne Kommentare | | ||
+ | < | ||
+ | { | ||
+ | AdvSendAdvert on; | ||
+ | MaxRtrAdvInterval 600; | ||
+ | MinRtrAdvInterval 200; | ||
+ | AdvDefaultPreference medium; | ||
+ | AdvHomeAgentFlag off; | ||
+ | AdvManagedFlag on; | ||
+ | AdvOtherConfigFlag on; | ||
+ | AdvReachableTime 0; | ||
+ | AdvRetransTimer 0; | ||
+ | AdvCurHopLimit 64; | ||
+ | AdvDefaultLifetime 1800; | ||
+ | AdvSourceLLAddress on; | ||
+ | prefix 2003: | ||
+ | { | ||
+ | AdvOnLink on; | ||
+ | AdvAutonomous on; | ||
+ | AdvRouterAddr off; | ||
+ | AdvValidLifetime 5400; | ||
+ | AdvPreferredLifetime 2700; | ||
+ | }; | ||
+ | route 2003: | ||
+ | { | ||
+ | AdvRoutePreference medium; | ||
+ | AdvRouteLifetime 1800; | ||
+ | }; | ||
+ | prefix fdb6: | ||
+ | { | ||
+ | AdvOnLink on; | ||
+ | AdvAutonomous off; | ||
+ | AdvRouterAddr off; | ||
+ | AdvValidLifetime 5400; | ||
+ | AdvPreferredLifetime 2700; | ||
+ | }; | ||
+ | route fdb6: | ||
+ | { | ||
+ | AdvRoutePreference medium; | ||
+ | AdvRouteLifetime 1800; | ||
+ | }; | ||
+ | | ||
+ | }; | ||
+ | </ | ||
+ | ++++ | ||
+ | |||
+ | Bevor wir nun unseren **radvd** starten, führen wir noch einen Konfigurationstest durch. | ||
+ | Wir prüfen also nun die Konfigurationsdatei unseres **radvd** auf syntaktische Fehler. | ||
+ | # radvd -cC / | ||
+ | |||
+ | [Jul 09 17:59:05] radvd (1264): config file, / | ||
+ | |||
+ | Nun starten wir unseren **radvd** Daemon. | ||
+ | # systemctl start radvd.service | ||
+ | |||
+ | Im journald wir der Start entsprechend dokumentiert. | ||
+ | # journalctl -fu radvd | ||
+ | |||
+ | < | ||
+ | Jul 09 18:00:37 vml000110 radvd[1296]: | ||
+ | Bei Bedarf können wir natürlich auch den Status unseres Daemons jederzeit abfragen. | ||
+ | # systemctl status radvd.service | ||
+ | |||
+ | < | ||
+ | <font style=" | ||
+ | | ||
+ | | ||
+ | | ||
+ | Main PID: 1296 (radvd) | ||
+ | Tasks: 2 (limit: 9510) | ||
+ | | ||
+ | CPU: 13ms | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | Jul 09 18:00:37 vml000110 systemd[1]: Started IPv6 Router Advertisement Daemon. | ||
+ | Jul 09 18:00:37 vml000110 radvd[1296]: | ||
+ | </ | ||
+ | |||
+ | |||
+ | Nun prüfen wir, ob unser **radvd** auch die richtigen Router Advertisement ICMPv6 Nachrichten ins Netz schickt. Hier bieten sich zwei mögliche Varianten an: | ||
+ | - Mit dem Programm **'' | ||
+ | # radvd configuration generated by radvdump 2.18 | ||
+ | # based on Router Advertisement from fe80:: | ||
+ | # received by interface enp0s25 | ||
+ | # | ||
+ | |||
+ | interface enp0s25 | ||
+ | { | ||
+ | AdvSendAdvert on; | ||
+ | # Note: {Min, | ||
+ | AdvManagedFlag on; | ||
+ | AdvOtherConfigFlag on; | ||
+ | AdvReachableTime 0; | ||
+ | AdvRetransTimer 0; | ||
+ | AdvCurHopLimit 64; | ||
+ | AdvDefaultLifetime 1800; | ||
+ | AdvHomeAgentFlag off; | ||
+ | AdvDefaultPreference medium; | ||
+ | AdvSourceLLAddress on; | ||
+ | |||
+ | prefix 2001: | ||
+ | { | ||
+ | AdvValidLifetime 5400; | ||
+ | AdvPreferredLifetime 2700; | ||
+ | AdvOnLink on; | ||
+ | AdvAutonomous on; | ||
+ | AdvRouterAddr off; | ||
+ | }; # End of prefix definition | ||
+ | |||
+ | |||
+ | prefix fdb6: | ||
+ | { | ||
+ | AdvValidLifetime 5400; | ||
+ | AdvPreferredLifetime 2700; | ||
+ | AdvOnLink on; | ||
+ | AdvAutonomous off; | ||
+ | AdvRouterAddr off; | ||
+ | }; # End of prefix definition | ||
+ | |||
+ | |||
+ | route 2001: | ||
+ | { | ||
+ | AdvRoutePreference medium; | ||
+ | AdvRouteLifetime 1800; | ||
+ | }; # End of route definition | ||
+ | |||
+ | |||
+ | route fdb6: | ||
+ | { | ||
+ | AdvRoutePreference medium; | ||
+ | AdvRouteLifetime 1800; | ||
+ | }; # End of route definition | ||
+ | |||
+ | }; # End of interface definition</ | ||
+ | - Mit Hilfe von **'' | ||
+ | 18: | ||
+ | hop limit 64, Flags [managed, other stateful], pref medium, router lifetime 1800s, reachable time 0ms, retrans timer 0ms | ||
+ | prefix info option (3), length 32 (4): 2003: | ||
+ | prefix info option (3), length 32 (4): fdb6: | ||
+ | route info option (24), length 24 (3): 2003: | ||
+ | route info option (24), length 24 (3): fdb6: | ||
+ | source link-address option (1), length 8 (1): 52: | ||
+ | ^C | ||
+ | 1 packet captured | ||
+ | 1 packet received by filter | ||
+ | 0 packets dropped by kernel | ||
+ | </ | ||
+ | |||
+ | |||
+ | === kea-dhcp6 Konfiguration === | ||
+ | Wir brauchen jetzt natürlich für die statischen **ULA** noch eine passende Konfigurationsdatei. Wir greifen nun kurz dem Kapitel **[[linux: | ||
+ | |||
+ | # vim / | ||
+ | ++++ Beispielkonfigurationsdatei ohne Kommentare | | ||
+ | < | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ] | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ], | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | } | ||
+ | ], | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ], | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | ], | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | ++++ | ||
+ | |||
+ | === IP-Adresse am Client === | ||
+ | Fragen wir die IP-Adresse des Netzwerkinterfaces ab sehen wir: | ||
+ | django@nitropad: | ||
+ | < | ||
+ | link/ether 3c: | ||
+ | inet 10.0.10.73/ | ||
+ | | ||
+ | inet6 fdb6: | ||
+ | | ||
+ | inet6 2001: | ||
+ | | ||
+ | inet6 2001: | ||
+ | | ||
+ | inet6 fe80:: | ||
+ | | ||
+ | |||
+ | <WRAP center round tip 80%> | ||
+ | Wir haben neben der **IPv4** Adresse **'' | ||
+ | </ | ||
===== Orchestrierung - Installation und Konfiguration des radvd mit Hilfe von Ansible | ===== Orchestrierung - Installation und Konfiguration des radvd mit Hilfe von Ansible | ||
==== Aufgabenstellung ==== | ==== Aufgabenstellung ==== |