Systemd/networkd: Difference between revisions
imported>Mweinelt m →Static |
imported>Mweinelt m →Static |
||
Line 102: | Line 102: | ||
=== Static === | === Static === | ||
Apply a static address and routing configuration onto <code>enp1s0</code>. When the gateway is not on the same prefix as the address configured, you usually also need to set <code>GatewayOnLink</code>, to indicate the gateway is directly reachable on the interface. | Apply a static address and routing configuration onto <code>enp1s0</code>. | ||
When the gateway is not on the same prefix as the address configured, as is customary on some cloud providers, you usually also need to set <code>GatewayOnLink</code>, to indicate the gateway is directly reachable on the interface. | |||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> |