summaryrefslogtreecommitdiffstats
path: root/dhcpcd.conf.5.in
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-01-01 14:23:36 +0000
committerRoy Marples <roy@marples.name>2009-01-01 14:23:36 +0000
commit91a44b91b06f127a98ae7f64e377e59d47eba329 (patch)
tree6efaf365bf98aec1aa3be0e08c870700efc6f4af /dhcpcd.conf.5.in
parent32dd1d3c3e47045db22ea6b0f65ff0b82a21a153 (diff)
downloaddhcpcd-91a44b91b06f127a98ae7f64e377e59d47eba329.tar.xz
Add a static directive that allows the configuration of variables, which
supercedes any DHCP configured variables. If ip_address is configured then we don't bother with a DHCP transaction.
Diffstat (limited to 'dhcpcd.conf.5.in')
-rw-r--r--dhcpcd.conf.5.in19
1 files changed, 17 insertions, 2 deletions
diff --git a/dhcpcd.conf.5.in b/dhcpcd.conf.5.in
index c7aa7219..f136a944 100644
--- a/dhcpcd.conf.5.in
+++ b/dhcpcd.conf.5.in
@@ -1,4 +1,4 @@
-.\" Copyright 2006-2008 Roy Marples
+.\" Copyright 2006-2009 Roy Marples
.\" All rights reserved
.\"
.\" Redistribution and use in source and binary forms, with or without
@@ -22,7 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd December 16, 2008
+.Dd January 1, 2009
.Dt DHCPCD.CONF 5 SMM
.Sh NAME
.Nm dhcpcd.conf
@@ -175,6 +175,21 @@ Use
.Ar script
instead of the default
.Pa @SCRIPT@ .
+.It Ic static Ar value
+Configures a static
+.Ar value .
+If you set
+.Ic ip_address
+then
+.Nm dhcpcd
+will not attempt to obtain a lease and just use the value for the address with
+an infinite lease time.
+.Pp
+Here is an example which configures a static address, routes and dns.
+.D1 interface eth0
+.D1 static ip_address=192.168.0.10/24
+.D1 static routers=192.168.0.1
+.D1 static domain_name_servers=192.168.0.1
.It Ic timeout Ar seconds
The default timeout for waiting for a DHCP response is 30 seconds which may
be too long or too short and can be changed here.