network.txt 288 B

1234567891011121314151617
  1. Static Networking
  2. To configure a static IP on enp2s0, create static.network:
  3. [Match]
  4. Name=enp2s0
  5. [Network]
  6. Address=192.168.0.15/24
  7. Gateway=192.168.0.1
  8. DNS=192.168.0.1
  9. Place the file in /etc/systemd/network/. To apply the configuration, run:
  10. sudo systemctl restart systemd-networkd