Install NixOS on Hetzner Online: Difference between revisions

Hexa (talk | contribs)
Network configuration: IPV4 subnet is usually shared
Hexa (talk | contribs)
Line 35: Line 35:


=== Static IPv4 configuration ===
=== Static IPv4 configuration ===
Since the IPv4 network configuration is known, it can also be configured statically, preventing reliance on the DHCP service. The gateway and subnet information is visible when hovering the IPv4 address. The subnet size is usually a /26 (255.255.255.224) or a /27 (255.255.255.192).<syntaxhighlight lang="nix">
Since the IPv4 network configuration is known, it can also be configured statically, preventing reliance on the DHCP service. The gateway and subnet information is visible when hovering the IPv4 address. The subnet size is usually a /26 (<code>255.255.255.224</code>) or a /27 (<code>255.255.255.192</code>).<syntaxhighlight lang="nix">
{
{
   systemd.network = {
   systemd.network = {