Skip to content

Instantly share code, notes, and snippets.

@cygmris
Created March 26, 2019 12:45
Show Gist options
  • Save cygmris/ef2bad71db62056affb53914a438e0e6 to your computer and use it in GitHub Desktop.
Save cygmris/ef2bad71db62056affb53914a438e0e6 to your computer and use it in GitHub Desktop.
netplan-vlan-source-routing.conf
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
ethernets:
enp1s0:
addresses:
- 10.2.98.1/24
dhcp4: false
routes:
- to: 0.0.0.0/0
via: 10.2.98.254
table: 198
routing-policy:
- from: 10.2.98.0/24
table: 198
priority: 10
gateway4: 10.2.98.254
nameservers:
addresses:
- 8.8.8.8
- 119.29.29.29
search: []
enp2s0:
addresses: []
dhcp4: true
optional: true
enp3s0:
addresses: []
dhcp4: true
optional: true
enp4s0:
addresses: []
dhcp4: true
optional: true
version: 2
vlans:
enp1s0.2:
addresses:
- 10.2.2.100/24
dhcp4: false
routes:
- to: 0.0.0.0/0
via: 10.2.2.254
table: 102
routing-policy:
- from: 10.2.2.0/24
table: 102
priority: 40
id: 2
link: enp1s0
enp1s0.3:
addresses:
- 10.2.3.100/24
dhcp4: false
routes:
- to: 0.0.0.0/0
via: 10.2.3.254
table: 103
routing-policy:
- from: 10.2.3.0/24
table: 103
priority: 30
id: 3
link: enp1s0
enp1s0.99:
addresses:
- 10.2.99.100/24
dhcp4: false
routes:
- to: 0.0.0.0/0
via: 10.2.99.254
table: 199
routing-policy:
- from: 10.2.99.0/24
table: 199
priority: 20
id: 99
link: enp1s0
#nameservers:
# addresses: []
# search: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment