Saturday, November 30, 2019

Setting Static IP on CoreOS

  1. Connect to CoreOS shell then type:
    sudo vi /etc/systemd/network/static.network
  2. Set the static IP
    [Match]
    Name=eth0
    
    [Network]
    Address=10.0.0.16/24
    Gateway=10.0.0.1
    DNS=10.0.0.1
    

  3. Apply the new network configuration:
    sudo systemctl restart systemd-networkd
    

No comments: