From ef6ad795b0a6d475346863c01c285cec37fd807f Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Mon, 7 Jan 2013 13:11:47 +0100 Subject: Minor update of sample profiles Reduced unnecessary quoting and some rewording. --- docs/examples/ethernet-custom | 7 +++++++ docs/examples/ethernet-dhcp | 3 +-- docs/examples/ethernet-iproute | 7 ------- docs/examples/ethernet-static | 5 +++-- docs/examples/tuntap | 2 +- docs/examples/vlan-dhcp | 1 + docs/examples/vlan-static | 1 + docs/examples/wireless-open | 4 ++-- docs/examples/wireless-wep | 2 +- docs/examples/wireless-wep-string-key | 2 +- docs/examples/wireless-wpa | 5 ++--- docs/examples/wireless-wpa-config | 6 ++---- docs/examples/wireless-wpa-configsection | 5 ++--- 13 files changed, 24 insertions(+), 26 deletions(-) create mode 100644 docs/examples/ethernet-custom delete mode 100644 docs/examples/ethernet-iproute (limited to 'docs/examples') diff --git a/docs/examples/ethernet-custom b/docs/examples/ethernet-custom new file mode 100644 index 0000000..d3a7b14 --- /dev/null +++ b/docs/examples/ethernet-custom @@ -0,0 +1,7 @@ +Description='A more versatile static ethernet connection' +Interface=eth0 +Connection=ethernet +IP=static +# Any valid iproute command can be placed in this array +IPCustom=('addr add dev eth0 192.168.1.23/24 brd +' 'route add default via 192.168.1.1') +DNS=('192.168.1.1') diff --git a/docs/examples/ethernet-dhcp b/docs/examples/ethernet-dhcp index 5866238..412ff88 100644 --- a/docs/examples/ethernet-dhcp +++ b/docs/examples/ethernet-dhcp @@ -1,4 +1,4 @@ -Description='A basic dhcp ethernet connection using iproute' +Description='A basic dhcp ethernet connection' Interface=eth0 Connection=ethernet IP=dhcp @@ -6,4 +6,3 @@ IP=dhcp #IP6=dhcp ## for IPv6 autoconfiguration #IP6=stateless - diff --git a/docs/examples/ethernet-iproute b/docs/examples/ethernet-iproute deleted file mode 100644 index 972f5bb..0000000 --- a/docs/examples/ethernet-iproute +++ /dev/null @@ -1,7 +0,0 @@ -Description='A more versatile static ethernet connection using iproute' -Interface=eth0 -Connection=ethernet -IP=static -# Any valid iproute command can be placed in this array -IPCustom=('addr add dev eth0 192.168.1.23/24 brd +' 'route add default via 192.168.1.1') -DNS=('192.168.1.1') diff --git a/docs/examples/ethernet-static b/docs/examples/ethernet-static index 0d6b5a2..b346688 100644 --- a/docs/examples/ethernet-static +++ b/docs/examples/ethernet-static @@ -1,8 +1,9 @@ -Description='A basic static ethernet connection using iproute' +Description='A basic static ethernet connection' Interface=eth0 Connection=ethernet IP=static -Address='192.168.1.23' +# The netmask in the IPv4 address is optional and defaults to 24 +Address='192.168.1.23/28' #Routes=('192.168.0.0/24 via 192.168.1.2') Gateway='192.168.1.1' DNS=('192.168.1.1') diff --git a/docs/examples/tuntap b/docs/examples/tuntap index 8ce78ac..69316a3 100644 --- a/docs/examples/tuntap +++ b/docs/examples/tuntap @@ -1,3 +1,4 @@ +Description='Example tuntap connection' Interface=tun0 Connection=tuntap Mode='tun' @@ -7,4 +8,3 @@ Group='nobody' ## Example IP configuration #IP=static #Address='10.10.1.2' - diff --git a/docs/examples/vlan-dhcp b/docs/examples/vlan-dhcp index c412618..237c411 100644 --- a/docs/examples/vlan-dhcp +++ b/docs/examples/vlan-dhcp @@ -1,3 +1,4 @@ +Description='Virtual LAN 55 on interface eth0 using DHCP' Interface=eth0.55 Connection=vlan # The variable name is plural, but needs precisely one interface diff --git a/docs/examples/vlan-static b/docs/examples/vlan-static index f9e1ae5..eb6e82a 100644 --- a/docs/examples/vlan-static +++ b/docs/examples/vlan-static @@ -1,3 +1,4 @@ +Description='Virtual LAN 11 on interface eth0' Interface=eth0.11 Connection=vlan # The variable name is plural, but needs precisely one interface diff --git a/docs/examples/wireless-open b/docs/examples/wireless-open index f4bf9bb..ba6e55c 100644 --- a/docs/examples/wireless-open +++ b/docs/examples/wireless-open @@ -1,8 +1,8 @@ -Description='A simple opened wireless connection' +Description='A simple open wireless connection' Interface=wlan0 Connection=wireless Security=none ESSID='MyNetwork' -IP='dhcp' +IP=dhcp # Uncomment this if your ssid is hidden #Hidden=yes diff --git a/docs/examples/wireless-wep b/docs/examples/wireless-wep index 479b8a3..e881e25 100644 --- a/docs/examples/wireless-wep +++ b/docs/examples/wireless-wep @@ -5,7 +5,7 @@ Security=wep ESSID='MyNetwork' # Prepend hexadecimal keys with \" Key=\"1234567890abcdef -IP='dhcp' +IP=dhcp # Uncomment this if your ssid is hidden #Hidden=yes # Uncomment if you are using an ad-hoc connection diff --git a/docs/examples/wireless-wep-string-key b/docs/examples/wireless-wep-string-key index 12483c0..e4c6af4 100644 --- a/docs/examples/wireless-wep-string-key +++ b/docs/examples/wireless-wep-string-key @@ -4,6 +4,6 @@ Connection=wireless Security=wep ESSID='MyNetwork' Key='Wireless Key' -IP='dhcp' +IP=dhcp # Uncomment this if your ssid is hidden #Hidden=yes diff --git a/docs/examples/wireless-wpa b/docs/examples/wireless-wpa index 16d17e9..5b8f4ba 100644 --- a/docs/examples/wireless-wpa +++ b/docs/examples/wireless-wpa @@ -3,12 +3,11 @@ Interface=wlan0 Connection=wireless Security=wpa +IP=dhcp + ESSID='MyNetwork' # Prepend hexadecimal keys with \" # If your key starts with ", write it as '""""' Key='WirelessKey' - -IP='dhcp' - # Uncomment this if your ssid is hidden #Hidden=yes diff --git a/docs/examples/wireless-wpa-config b/docs/examples/wireless-wpa-config index e598dce..cb1face 100644 --- a/docs/examples/wireless-wpa-config +++ b/docs/examples/wireless-wpa-config @@ -1,8 +1,6 @@ -Description='A wpa_supplicant configuration based wireless connection' +Description='A wpa_supplicant configuration file based wireless connection' Interface=wlan0 Connection=wireless Security=wpa-config WPAConfigFile='/etc/wpa_supplicant.conf' -IP='dhcp' -# Uncomment this if your ssid is hidden -#Hidden=yes +IP=dhcp diff --git a/docs/examples/wireless-wpa-configsection b/docs/examples/wireless-wpa-configsection index dde9ccd..820ff4b 100644 --- a/docs/examples/wireless-wpa-configsection +++ b/docs/examples/wireless-wpa-configsection @@ -1,9 +1,8 @@ +Description='A wireless connection using a custom network block configuration' Interface=wlan0 Connection=wireless Security=wpa-configsection -# Uncomment this if your ssid is hidden -#Hidden=yes -IP='dhcp' +IP=dhcp WPAConfigSection=( 'ssid="University"' 'key_mgmt=WPA-EAP' -- cgit v1.2.3-24-g4f1b