path: root/defaultenv
diff options
authorEnrico Scholz <>2012-03-08 15:03:26 +0100
committerSascha Hauer <>2012-03-12 22:44:06 +0100
commit3661e874aabd6fe29dba1bd32a8507b3b0f37e81 (patch)
tree5488e7788f8fd45afa1b22eb3b4acd6ec10680c6 /defaultenv
parent4cf35a6c6d58fa2a4fb6c117792fd0a034345742 (diff)
net: dhcp: allow to set transmitted vendor id
For net boot setups it is useful to submit boot params like server or bootfile over dhcp. To distinguish barebox from e.g. pxe machines, a custom vendor id can be sent in dhcp discover/request messages. E.g. the ISC dhcp server can be configured with | if substring(option vendor-class-identifier,0,8) = "barebox:" { | next-server; | server-name ""; | option tftp-server-name ""; | option root-path = concat("/srv/sysroots/by-mac/", | binary-to-ascii (16, 8, "-", substring (hardware, 1, 6))); | } to sent boot params which are valid for barebox hosts only. Signed-off-by: Enrico Scholz <> Jean-Christophe PLAGNIOL-VILLARD: - update the use dhcp command option - support to set the vendor via env dhcp_vendor_id Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <> Signed-off-by: Sascha Hauer <>
Diffstat (limited to 'defaultenv')
1 files changed, 1 insertions, 0 deletions
diff --git a/defaultenv/config b/defaultenv/config
index 98662735e..63fc05963 100644
--- a/defaultenv/config
+++ b/defaultenv/config
@@ -9,6 +9,7 @@ machine=FIXME
# use 'dhcp' to do dhcp in barebox and in kernel
# use 'none' if you want to skip kernel ip autoconfiguration
# or set your networking parameters here