Created
June 6, 2015 16:22
-
-
Save TotalLag/067a56a22ece085bd43b to your computer and use it in GitHub Desktop.
Network setup for CoreOS on MyCustomHosting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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