summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>2018-12-14 16:00:55 -0500
committerMathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>2018-12-14 16:00:55 -0500
commitfc88ee19c2977338925d9c778560fcec45787003 (patch)
treed384367ebbff42877a949617fbfeed4f5e2ce99d
parent1a350d63b03785915c2062a63d99dc9a1ceca298 (diff)
examples: add more examples for tunnel, route-metric, and WPA-EAP
-rw-r--r--examples/ipv6_tunnel.yaml16
-rw-r--r--examples/route_metric.yaml11
-rw-r--r--examples/wpa_enterprise.yaml26
3 files changed, 53 insertions, 0 deletions
diff --git a/examples/ipv6_tunnel.yaml b/examples/ipv6_tunnel.yaml
new file mode 100644
index 0000000..86bceec
--- /dev/null
+++ b/examples/ipv6_tunnel.yaml
@@ -0,0 +1,16 @@
+network:
+ version: 2
+ ethernets:
+ eth0:
+ addresses:
+ - 1.1.1.1/24
+ - "2001:cafe:face::1/64"
+ gateway4: 1.1.1.254
+ tunnels:
+ he-ipv6:
+ mode: sit
+ remote: 2.2.2.2
+ local: 1.1.1.1
+ addresses:
+ - "2001:dead:beef::2/64"
+ gateway6: "2001:dead:beef::1"
diff --git a/examples/route_metric.yaml b/examples/route_metric.yaml
new file mode 100644
index 0000000..20bf48c
--- /dev/null
+++ b/examples/route_metric.yaml
@@ -0,0 +1,11 @@
+network:
+ version: 2
+ ethernets:
+ enred:
+ dhcp4: yes
+ dhcp4-overrides:
+ route-metric: 100
+ engreen:
+ dhcp4: yes
+ dhcp4-overrides:
+ route-metric: 200
diff --git a/examples/wpa_enterprise.yaml b/examples/wpa_enterprise.yaml
new file mode 100644
index 0000000..0602e21
--- /dev/null
+++ b/examples/wpa_enterprise.yaml
@@ -0,0 +1,26 @@
+network:
+ version: 2
+ wifis:
+ wl0:
+ access-points:
+ workplace:
+ auth:
+ key-management: eap
+ method: ttls
+ anonymous-identity: "@internal.example.com"
+ identity: "joe@internal.example.com"
+ password: "v3ryS3kr1t"
+ university:
+ auth:
+ key-management: eap
+ method: tls
+ anonymous-identity: "@cust.example.com"
+ identity: "cert-joe@cust.example.com"
+ ca-certificate: /etc/ssl/cust-cacrt.pem
+ client-certificate: /etc/ssl/cust-crt.pem
+ client-key: /etc/ssl/cust-key.pem
+ client-key-password: "d3cryptPr1v4t3K3y"
+ open-network:
+ auth:
+ key-management: none
+ dhcp4: yes