summaryrefslogtreecommitdiff
path: root/examples/source/init-lan
diff options
context:
space:
mode:
Diffstat (limited to 'examples/source/init-lan')
-rw-r--r--examples/source/init-lan/dependencies2
-rw-r--r--examples/source/init-lan/down1
-rw-r--r--examples/source/init-lan/type1
-rw-r--r--examples/source/init-lan/up11
4 files changed, 15 insertions, 0 deletions
diff --git a/examples/source/init-lan/dependencies b/examples/source/init-lan/dependencies
new file mode 100644
index 0000000..79607c6
--- /dev/null
+++ b/examples/source/init-lan/dependencies
@@ -0,0 +1,2 @@
+init-sysctl
+mount-cgroups
diff --git a/examples/source/init-lan/down b/examples/source/init-lan/down
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/examples/source/init-lan/down
@@ -0,0 +1 @@
+
diff --git a/examples/source/init-lan/type b/examples/source/init-lan/type
new file mode 100644
index 0000000..bdd22a1
--- /dev/null
+++ b/examples/source/init-lan/type
@@ -0,0 +1 @@
+oneshot
diff --git a/examples/source/init-lan/up b/examples/source/init-lan/up
new file mode 100644
index 0000000..9877c14
--- /dev/null
+++ b/examples/source/init-lan/up
@@ -0,0 +1,11 @@
+multisubstitute
+{
+ import -i ETH0_IP4
+ import -i ETH1_IP4
+ import -i ETH2_IP4
+}
+
+if { ifconfig lo 127.0.0.1 netmask 255.0.0.0 }
+if { ifconfig eth0 ${ETH0_IP4} netmask 255.255.255.0 }
+if { ifconfig eth1 ${ETH1_IP4} netmask 255.255.255.0 }
+if { ifconfig eth2 ${ETH2_IP4} netmask 255.255.255.0 }