summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/mlx_ipoib
diff options
context:
space:
mode:
authorMichael Brown2006-03-16 19:30:54 +0100
committerMichael Brown2006-03-16 19:30:54 +0100
commit7e0a7a2e08cd9dcb65fd60d3c525eb3b9e827896 (patch)
tree1a7fac39614a0d021824d0283c37e04f87b3a9d1 /src/drivers/net/mlx_ipoib
parentMerge from Etherboot 5.4 (diff)
parentImport from Etherboot 5.4 (diff)
downloadipxe-7e0a7a2e08cd9dcb65fd60d3c525eb3b9e827896.tar.gz
ipxe-7e0a7a2e08cd9dcb65fd60d3c525eb3b9e827896.tar.xz
ipxe-7e0a7a2e08cd9dcb65fd60d3c525eb3b9e827896.zip
Merge from Etherboot 5.4
Diffstat (limited to 'src/drivers/net/mlx_ipoib')
-rw-r--r--src/drivers/net/mlx_ipoib/patches/dhcpd.patch23
-rw-r--r--src/drivers/net/mlx_ipoib/samples/dhcpd.conf56
2 files changed, 79 insertions, 0 deletions
diff --git a/src/drivers/net/mlx_ipoib/patches/dhcpd.patch b/src/drivers/net/mlx_ipoib/patches/dhcpd.patch
new file mode 100644
index 00000000..e2d0a202
--- /dev/null
+++ b/src/drivers/net/mlx_ipoib/patches/dhcpd.patch
@@ -0,0 +1,23 @@
+diff -ru ../../orig/dhcp-3.0.4b2/common/options.c ./common/options.c
+--- ../../orig/dhcp-3.0.4b2/common/options.c 2005-11-02 01:19:03.000000000 +0200
++++ ./common/options.c 2005-12-06 14:38:17.000000000 +0200
+@@ -537,6 +537,7 @@
+ priority_list [priority_len++] = DHO_DHCP_LEASE_TIME;
+ priority_list [priority_len++] = DHO_DHCP_MESSAGE;
+ priority_list [priority_len++] = DHO_DHCP_REQUESTED_ADDRESS;
++ priority_list [priority_len++] = DHO_DHCP_CLIENT_IDENTIFIER;
+ priority_list [priority_len++] = DHO_FQDN;
+
+ if (prl && prl -> len > 0) {
+diff -ru ../../orig/dhcp-3.0.4b2/includes/site.h ./includes/site.h
+--- ../../orig/dhcp-3.0.4b2/includes/site.h 2002-03-12 20:33:39.000000000 +0200
++++ ./includes/site.h 2005-12-06 14:36:55.000000000 +0200
+@@ -135,7 +135,7 @@
+ the aforementioned problems do not matter to you, or if no other
+ API is supported for your system, you may want to go with it. */
+
+-/* #define USE_SOCKETS */
++#define USE_SOCKETS
+
+ /* Define this to use the Sun Streams NIT API.
+
diff --git a/src/drivers/net/mlx_ipoib/samples/dhcpd.conf b/src/drivers/net/mlx_ipoib/samples/dhcpd.conf
new file mode 100644
index 00000000..ed6975f9
--- /dev/null
+++ b/src/drivers/net/mlx_ipoib/samples/dhcpd.conf
@@ -0,0 +1,56 @@
+# dhcpd.conf
+#
+# Sample configuration file for ISC dhcpd
+#
+
+# option definitions common to all supported networks...
+
+DHCPD_INTERFACE = "ib0";
+
+# if you do not use dynamical DNS updates:
+#
+# this statement is needed by dhcpd-3 needs at least this statement.
+# you have to delete it for dhcpd-2, because it does not know it.
+#
+# if you want to use dynamical DNS updates, you should first read
+# read /usr/share/doc/packages/dhcp-server/DDNS-howto.txt
+ddns-update-style none; ddns-updates off;
+
+filename "pxelinux.bin";
+
+# If this DHCP server is the official DHCP server for the local
+# network, the authoritative directive should be uncommented.
+#authoritative;
+
+# No service will be given on this subnet, but declaring it helps the
+# DHCP server to understand the network topology.
+
+subnet 10.152.187.0 netmask 255.255.255.0 {
+}
+
+# This declaration allows BOOTP clients to get dynamic addresses,
+# which we don't really recommend.
+
+shared-network "ipoib_network" {
+ subnet 11.4.8.0 netmask 255.255.255.0 {
+ option dhcp-client-identifier = option dhcp-client-identifier;
+ option subnet-mask 255.255.255.0;
+ option domain-name "yok.mtl.com";
+ option domain-name-servers 10.0.0.1;
+ default-lease-time 28800;
+ max-lease-time 86400;
+ next-server 11.4.8.99;
+
+ }
+}
+
+
+# You need one such entry for each client
+host swlab35 {
+ fixed-address 11.4.8.35; # the IP address to be assigned to the client
+ # The value of the client identifier must be comprised from the prefix 20:00:
+ # folowed by the client's ipoib qp number - 55:04:01 in this example -
+ # followed by the GID of the port
+ option dhcp-client-identifier = 20:00:55:04:01:fe:80:00:00:00:00:00:00:00:02:c9:00:01:70:8a:81;
+}
+