2015年10月13日 星期二

infiniband 的dhcp

infiniband 的dhcp server不能用官網下載的dhcp server .是有修改的
我從ubuntu 14.04.3下載source code
apt-get source isc-dhcp

檢查
/common/lpf.c
+/* Default broadcast address for IPoIB */
+static unsigned char default_ib_bcast_addr[20] = {
+     0x00, 0xff, 0xff, 0xff,
+    0xff, 0x12, 0x40, 0x1b,
+    0x00, 0x00, 0x00, 0x00,
+    0x00, 0x00, 0x00, 0x00,
+    0xff, 0xff, 0xff, 0xff
+};
+

是否有這一段. 的確是有的


dhcpd.conf

ddns-update-style none;

# option definitions common to all supported networks...
option domain-name "example.org";
option domain-name-servers ns1.example.org, ns2.example.org;

default-lease-time 600;
max-lease-time 7200;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
#authoritative;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;
subnet 192.168.1.0 netmask 255.255.255.0 {
       option dhcp-client-identifier = option dhcp-client-identifier;
       option subnet-mask 255.255.255.0 ;
       default-lease-time 86400 ;
       max-lease-time 86400 ;
       option root-path "/tftpboot" ;
       filename "pxelinux.0";
       range 192.168.1.10 192.168.1.200;
       next-server 192.168.1.11 ;
       host sw442-ib0 {
        fixed-address 192.168.1.12 ;
        #<cid prefix>:<port gid>
        option  dhcp-client-identifier = 20:00:55:04:01:fe:80:00:00:00:00:00:00:e4:1d:2d:03:00:7f:bd:21;
     }
}

沒有留言:

張貼留言