summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJames Rayner <james@archlinux.org>2007-11-10 00:43:57 +0100
committerJames Rayner <james@archlinux.org>2007-11-10 00:43:57 +0100
commite9f9e4d54cb3afb6d78a12e85035a24d346c381d (patch)
treeb3971b8737ab56b6055d2440f5b78c74fc2adb25 /examples
downloadnetctl-e9f9e4d54cb3afb6d78a12e85035a24d346c381d.tar.gz
netctl-e9f9e4d54cb3afb6d78a12e85035a24d346c381d.tar.xz
Initial Import
Diffstat (limited to 'examples')
-rw-r--r--examples/complete.example46
-rw-r--r--examples/ethernet-static.example8
-rw-r--r--examples/ethernet.example5
-rw-r--r--examples/loopback.example5
-rw-r--r--examples/ppp.example4
-rw-r--r--examples/wep-static.example12
-rw-r--r--examples/wep.example8
-rw-r--r--examples/wpa.example8
8 files changed, 96 insertions, 0 deletions
diff --git a/examples/complete.example b/examples/complete.example
new file mode 100644
index 0000000..61e76ef
--- /dev/null
+++ b/examples/complete.example
@@ -0,0 +1,46 @@
+CONNECTION="wireless"
+DESCRIPTION="Very verbose complete wireless example"
+
+INTERFACE=eth0
+HOSTNAME=myhost
+
+# Interface Settings (use IFOPTS="dhcp" for DHCP)
+IFOPTS="192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
+GATEWAY=192.168.0.1
+
+# DHCP Example
+#IFOPTS=dhcp
+#DHCP_TIMEOUT=20 # Default is 10.
+#DHCP_OPTIONS="" # Extra arguments for dhcpcd
+
+# DNS Settings (optional)
+DOMAIN=localdomain
+DNS1=192.168.0.1
+DNS2=
+SEARCH=
+
+# Standard Wireless Settings
+ESSID=MyNetwork
+SECURITY=wpa # One of wep, wpa, wpa-config, none
+KEY="SomePasskey"
+
+# Scans to see if network is available before connecting (reccomended)
+SCAN="YES"
+
+# Time to wait to connect to a network. Default 15.
+TIMEOUT=10
+
+# Pass *custom* options to iwconfig. Usually not needed (optional)
+IWOPTS="mode managed essid $ESSID channel 6 key restricted $KEY"
+
+# Any extra arguments for wpa_supplicant
+WPA_OPTS=
+
+# For SECURITY='wpa-config' only - filename of a wpa-supplicant config
+WPA_CONF=
+
+# Commands to run at various stages of configuration
+PRE_UP=
+POST_UP=
+PRE_DOWN=
+POST_DOWN="some command"
diff --git a/examples/ethernet-static.example b/examples/ethernet-static.example
new file mode 100644
index 0000000..b50cf36
--- /dev/null
+++ b/examples/ethernet-static.example
@@ -0,0 +1,8 @@
+CONNECTION="ethernet"
+DESCRIPTION="A less basic ethernet profile, using static configuration"
+INTERFACE=eth0
+IP="static"
+IFOPTS="192.168.1.23 netmask 255.255.255.0 broadcast 192.168.1.255"
+GATEWAY="192.168.1.1"
+DNS1=192.168.1.1
+DNS2=dns1.dreamhost.com
diff --git a/examples/ethernet.example b/examples/ethernet.example
new file mode 100644
index 0000000..2db6072
--- /dev/null
+++ b/examples/ethernet.example
@@ -0,0 +1,5 @@
+CONNECTION="ethernet"
+DESCRIPTION="A very basic ethernet profile, using dhcp"
+INTERFACE=eth0
+IP="dhcp"
+DHCP_TIMEOUT=10
diff --git a/examples/loopback.example b/examples/loopback.example
new file mode 100644
index 0000000..e9dcca9
--- /dev/null
+++ b/examples/loopback.example
@@ -0,0 +1,5 @@
+CONNECTION="ethernet"
+DESCRIPTION="A very basic ethernet profile, using dhcp"
+INTERFACE=lo
+IP="static"
+IFOPTS="127.0.0.1"
diff --git a/examples/ppp.example b/examples/ppp.example
new file mode 100644
index 0000000..f26bb03
--- /dev/null
+++ b/examples/ppp.example
@@ -0,0 +1,4 @@
+CONNECTION="ppp"
+INTERFACE="ignore"
+PEER="/etc/ppp/peers/provider"
+PPP_TIMEOUT=10
diff --git a/examples/wep-static.example b/examples/wep-static.example
new file mode 100644
index 0000000..4474ba7
--- /dev/null
+++ b/examples/wep-static.example
@@ -0,0 +1,12 @@
+CONNECTION="wireless"
+DESCRIPTION="A wep encrypted wireless connection using static ip"
+INTERFACE=wlan0
+SCAN="yes"
+SECURITY="wep"
+ESSID="MyNetwork"
+KEY="1234567890"
+IP="static"
+IFOPTS="192.168.1.23 netmask 255.255.255.0 broadcast 192.168.1.255"
+GATEWAY="192.168.1.1"
+DNS1=192.168.1.1
+DNS2=dns1.dreamhost.com
diff --git a/examples/wep.example b/examples/wep.example
new file mode 100644
index 0000000..4dad0e1
--- /dev/null
+++ b/examples/wep.example
@@ -0,0 +1,8 @@
+CONNECTION="wireless"
+DESCRIPTION="A simple WEP encrypted wireless connection"
+INTERFACE=wlan0
+SCAN="yes"
+SECURITY="wep"
+ESSID="MyNetwork"
+KEY="1234567890"
+IP="dhcp"
diff --git a/examples/wpa.example b/examples/wpa.example
new file mode 100644
index 0000000..f165945
--- /dev/null
+++ b/examples/wpa.example
@@ -0,0 +1,8 @@
+CONNECTION="wireless"
+INTERFACE=wlan0
+SCAN="yes"
+SECURITY="wpa"
+ESSID="mynetwork"
+KEY="SomePasskey"
+IP="dhcp"
+TIMEOUT=20