linux:systemd
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
linux:systemd [2021/09/15 12:17] – [VLAN] frank | linux:systemd [2023/10/15 11:09] (aktuell) – [IPv6] frank | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== Systemd ====== | ||
+ | |||
+ | ===== Grundlagen ===== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | rc.local: https:// | ||
+ | ===== Netzwerk ===== | ||
+ | |||
+ | ==== dsa ==== | ||
+ | |||
+ | / | ||
+ | < | ||
+ | [Match] | ||
+ | Name=eth0 | ||
+ | |||
+ | [Network] | ||
+ | DHCP=no | ||
+ | LinkLocalAddressing=no | ||
+ | ConfigureWithoutCarrier=true | ||
+ | </ | ||
+ | / | ||
+ | < | ||
+ | [Match] | ||
+ | Name=wan | ||
+ | |||
+ | [Network] | ||
+ | BindCarrier=eth0 | ||
+ | |||
+ | Address=192.168.0.18/ | ||
+ | Gateway=192.168.0.10 | ||
+ | DNS=192.168.0.10 | ||
+ | </ | ||
+ | |||
+ | Wird ConfigureWithoutCarrier beim DSA-Port gesetzt wird die default-route nicht gesetzt, | ||
+ | |||
+ | Für DNS muss resolved laufen | ||
+ | ==== Brücke ==== | ||
+ | |||
+ | Erstellen der Brücke in netdev-Datei und Konfiguration in network-Datei | ||
+ | |||
+ | / | ||
+ | < | ||
+ | [NetDev] | ||
+ | Name=lanbr0 | ||
+ | Kind=bridge | ||
+ | |||
+ | [Bridge] | ||
+ | DefaultPVID=1 | ||
+ | VLANFiltering=1 | ||
+ | </ | ||
+ | |||
+ | / | ||
+ | < | ||
+ | [Match] | ||
+ | Name=lanbr0 | ||
+ | |||
+ | [Network] | ||
+ | BindCarrier=eth0 | ||
+ | ConfigureWithoutCarrier=true | ||
+ | |||
+ | Address=192.168.1.1/ | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | </ | ||
+ | ==== VLAN ==== | ||
+ | https:// | ||
+ | |||
+ | das vlan muss in einer netdev-Datei erst erstellt und dann in der network-Datei des physikalischen Interfaces verlinkt werden | ||
+ | |||
+ | / | ||
+ | < | ||
+ | [NetDev] | ||
+ | Name=wan.110 | ||
+ | Kind=vlan | ||
+ | |||
+ | [VLAN] | ||
+ | Id=110 | ||
+ | </ | ||
+ | |||
+ | / | ||
+ | < | ||
+ | [Match] | ||
+ | Name=wan | ||
+ | |||
+ | [Link] | ||
+ | # Override MAC address (spoof MAC address) | ||
+ | MACAddress=08: | ||
+ | |||
+ | [Network] | ||
+ | BindCarrier=eth0 | ||
+ | |||
+ | # | ||
+ | |||
+ | #static setup | ||
+ | Address=192.168.0.18/ | ||
+ | Gateway=192.168.0.10 | ||
+ | DNS=192.168.0.10 | ||
+ | |||
+ | VLAN=wan.110 | ||
+ | VLAN=wan.140 | ||
+ | </ | ||
+ | |||
+ | ==== statische Routen ==== | ||
+ | |||
+ | in der .Network-datei, | ||
+ | < | ||
+ | [Route] | ||
+ | Gateway=192.168.0.10 | ||
+ | Destination=10.0.3.0/ | ||
+ | GatewayOnLink=yes | ||
+ | </ | ||
+ | ==== pppoe ==== | ||
+ | https:// | ||
+ | ==== IPv6 ==== | ||
+ | === Adresszuweisung === | ||
+ | |||
+ | wie IPv4 in network-datei mit zusätzlichem Address-Wert | ||
+ | |||
+ | < | ||
+ | Address=192.168.1.1/ | ||
+ | Address=fd00: | ||
+ | </ | ||
+ | |||
+ | === DHCPv6/RA === | ||
+ | |||
+ | zusammen mit ipv4-DHCP-Server ( | ||
+ | DHCPServer=no/ | ||
+ | DHCPServer-Section => nur IPv6) | ||
+ | |||
+ | < | ||
+ | [Match] | ||
+ | Name=lanbr0 | ||
+ | |||
+ | [Network] | ||
+ | BindCarrier=eth0 | ||
+ | ConfigureWithoutCarrier=true | ||
+ | |||
+ | Address=192.168.1.1/ | ||
+ | Address=fd00: | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | DHCPServer=yes | ||
+ | IPv6SendRA=yes | ||
+ | DHCPv6PrefixDelegation=yes | ||
+ | |||
+ | [DHCPServer] | ||
+ | PoolOffset=100 | ||
+ | PoolSize=150 | ||
+ | |||
+ | [IPv6SendRA] | ||
+ | Managed=true | ||
+ | |||
+ | [IPv6Prefix] | ||
+ | Prefix=fd00: | ||
+ | </ | ||
+ | |||
+ | === Tunnel (he) === | ||
+ | |||
+ | https:// | ||
+ | |||
+ | ==== probleme ==== | ||
+ | === boot hängt on wait-for-online === | ||
+ | |||
+ | https:// | ||
+ | |||
+ | sudo systemctl edit systemd-networkd-wait-online.service | ||
+ | |||
+ | [Service] | ||
+ | ExecStart= | ||
+ | ExecStart=/ | ||
linux/systemd.txt · Zuletzt geändert: 2023/10/15 11:09 von frank