Skip to content

Instantly share code, notes, and snippets.

@oviniciusfeitosa
Last active March 9, 2020 15:22
Show Gist options
  • Save oviniciusfeitosa/b4ee1670dca8ac760b62c4f425a6f738 to your computer and use it in GitHub Desktop.
Save oviniciusfeitosa/b4ee1670dca8ac760b62c4f425a6f738 to your computer and use it in GitHub Desktop.
Definir gateway padrão linux.md
Gateway padrão no linux é definido no arquivo **/etc/systemd/network/static.network**.
```sh
[Match]
Name=en*
[Network]
Address=0.0.0.0
Gateway=192.168.xxx.xxx
```
O comando garantirá que toda vez que uma conexão cabeada for realizada, será utilizado o gateway padrao **192.168.xxx.xxx**.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment