Skip to content

Instantly share code, notes, and snippets.

@Burekasim
Created November 7, 2021 18:30
Show Gist options
  • Save Burekasim/3f67cb7e950ee2ba14eaf9ac4a23614b to your computer and use it in GitHub Desktop.
Save Burekasim/3f67cb7e950ee2ba14eaf9ac4a23614b to your computer and use it in GitHub Desktop.
interfaces.yaml
network:
ethernets:
ens5:
addresses:
- <ENS5_IP>/32
match:
macaddress: <ENS5_MAC_ADDRESS>
routes:
- table: 2
to: <ENS5_GATEWAY>/32
via: 0.0.0.0
scope: link
- table: 2
to: 0.0.0.0/0
via: <ENS5_GATEWAY>
routing-policy:
- to: 0.0.0.0/0
from: <ENS5_IP>/32
table: 2
- to: <ENS5_IP>/32
from: 0.0.0.0/0
table: 2
ens6:
addresses:
- <ENS6_IP>/32
match:
macaddress: <ENS6_MAC_ADDRESS>
routes:
- table: 3
to: <ENS6_GATEWAY>/32
via: 0.0.0.0
scope: link
- table: 3
to: 0.0.0.0/0
via: <ENS6_GATEWAY>
routing-policy:
- to: 0.0.0.0/0
from: <ENS6_IP>/32
table: 3
- to: <ENS6_IP>/32
from: 0.0.0.0/0
table: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment