Skip to content

Instantly share code, notes, and snippets.

@cathay4t
Created March 27, 2020 13:55
Show Gist options
  • Save cathay4t/40cec8b2c5d6a65e1dfb35e1ab977a37 to your computer and use it in GitHub Desktop.
Save cathay4t/40cec8b2c5d6a65e1dfb35e1ab977a37 to your computer and use it in GitHub Desktop.
---
routes:
config:
- destination: 192.168.2.0/24
metric: 108
next-hop-address: 192.168.1.3
next-hop-interface: eth1
table-id: 200
- destination: 2001:db8:a::/64
metric: 108
next-hop-address: 2001:db8:1::2
next-hop-interface: eth1
table-id: 200
route-rules:
config:
- ip-from: 192.168.3.2/32
route-table: 200
- ip-from: 2001:db8:b::/64
route-table: 200
interfaces:
- name: eth1
type: ethernet
state: up
mtu: 1500
ipv4:
enabled: true
dhcp: false
address:
- ip: 192.168.1.1
prefix-length: 24
ipv6:
enabled: true
dhcp: false
autoconf: false
address:
- ip: 2001:db8:1::1
prefix-length: 64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment