Skip to content

Instantly share code, notes, and snippets.

@TotalLag
Created June 6, 2015 16:22
Show Gist options
  • Select an option

  • Save TotalLag/067a56a22ece085bd43b to your computer and use it in GitHub Desktop.

Select an option

Save TotalLag/067a56a22ece085bd43b to your computer and use it in GitHub Desktop.
Network setup for CoreOS on MyCustomHosting
[Unit]
Description=Add MCH Gateway
After=network.target
[Service]
Type=oneshot
ExecStart=/usr/bin/route add <gateway> dev eth0
ExecStart=/usr/bin/route add default gw <gateway>
[Install]
WantedBy=network.target
[Match]
Name=eth0
[Network]
Address=<ip>
Gateway=<gateway>
DNS=8.8.8.8
DNS=8.8.4.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment