From 44811e8a2ae745a9463a5c6b9add9506352b7dba Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Wed, 25 Feb 2009 20:02:14 +0000 Subject: [PATCH] documenting static host IP assignments * docs/formatnetwork.html docs/formatnetwork.html.in: patch from Charles Duffy documenting static host IP assignments. daniel --- ChangeLog | 5 +++++ docs/formatnetwork.html | 12 +++++++++++- docs/formatnetwork.html.in | 14 +++++++++++++- 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 79f91e478c..dcfb9745f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Feb 25 21:00:46 CET 2009 Daniel Veillard + + * docs/formatnetwork.html docs/formatnetwork.html.in: patch from + Charles Duffy documenting static host IP assignments. + Tue Feb 24 14:55:28 GMT 2009 Mark McLoughlin * tests/nodedevxml2xmltest.c: Add a test to check node diff --git a/docs/formatnetwork.html b/docs/formatnetwork.html index faebbb90cd..59539c2af7 100644 --- a/docs/formatnetwork.html +++ b/docs/formatnetwork.html @@ -211,7 +211,9 @@ ... <ip address="192.168.122.1" netmask="255.255.255.0"> <dhcp> - <range start="192.168.122.2" end="192.168.122.254" /> + <range start="192.168.122.100" end="192.168.122.254" /> + <host mac="00:16:3e:77:e2:ed" name="foo.example.com" ip="192.168.122.10" /> + <host mac="00:16:3e:3e:a9:1a" name="bar.example.com" ip="192.168.122.11" /> </dhcp> </ip> </network> @@ -231,6 +233,14 @@ IPv4 addresses to be provided to DHCP clients. These two addresses must lie within the scope of the network defined on the parent ip element. Since 0.3.0 +
host
Within the dhcp element there may be zero or more + host elements; these specify hosts which will be given + names and predefined IP addresses by the built-in DHCP server. Any + such element must specify the MAC address of the host to be assigned + a given name (via the mac attribute), the IP to be + assigned to that host (via the ip attribute), and the + name to be given that host by the DHCP server (via the + name attribute). Since 0.4.5

Example configuration diff --git a/docs/formatnetwork.html.in b/docs/formatnetwork.html.in index ca37b05f59..fd6843004a 100644 --- a/docs/formatnetwork.html.in +++ b/docs/formatnetwork.html.in @@ -98,7 +98,9 @@ ... <ip address="192.168.122.1" netmask="255.255.255.0"> <dhcp> - <range start="192.168.122.2" end="192.168.122.254" /> + <range start="192.168.122.100" end="192.168.122.254" /> + <host mac="00:16:3e:77:e2:ed" name="foo.example.com" ip="192.168.122.10" /> + <host mac="00:16:3e:3e:a9:1a" name="bar.example.com" ip="192.168.122.11" /> </dhcp> </ip> </network> @@ -126,6 +128,16 @@ must lie within the scope of the network defined on the parent ip element. Since 0.3.0 +
host
+
Within the dhcp element there may be zero or more + host elements; these specify hosts which will be given + names and predefined IP addresses by the built-in DHCP server. Any + such element must specify the MAC address of the host to be assigned + a given name (via the mac attribute), the IP to be + assigned to that host (via the ip attribute), and the + name to be given that host by the DHCP server (via the + name attribute). Since 0.4.5 +

Example configuration