dhcp option 150

Ali Al-Shabibi ali.al-shabibi at cern.ch
Mon Aug 24 16:39:20 UTC 2009


Hello,

     I have been trying to netboot my machines and I have been running 
into a problem where my option for the grub file (option 150) is not 
sent by the dhcp server. Here is my dhcp configuration:

option space netboot;
option netboot.grub-menu code 150 = text;
ddns-update-style none ;
subnet 192.168.1.0 netmask 255.255.255.0 {
         default-lease-time 600;
         max-lease-time 7200;
}

host pc-openflow-01 {
     hardware ethernet 00:02:B3:0A:7F:DB;
     fixed-address 192.168.1.1;
         option netboot.grub-menu "(nd)/boot/grub.lst";
         filename "/pc-openflow-01/boot/pxegrub";
}

And is the dump of the dhcp exchanges seen on the wire:

pcatb86 ~ # tcpdump -i eth1 -vvv -s 0 -n port 67 and port 68
tcpdump: listening on eth1, link-type EN10MB (Ethernet), capture size 
65535 bytes
16:27:43.131501 IP (tos 0x0, ttl 20, id 0, offset 0, flags [none], proto 
UDP (17), length 576) 0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] 
BOOTP/DHCP, Request from 00:02:b3:09:5c:08, length 548, xid 0xb4095c08, 
secs 1024, Flags [Broadcast] (0x8000)
       Client-Ethernet-Address 00:02:b3:09:5c:08
       Vendor-rfc1048 Extensions
         Magic Cookie 0x63825363
         DHCP-Message Option 53, length 1: Discover
         Parameter-Request Option 55, length 13:
           Subnet-Mask, Default-Gateway, Vendor-Class, Vendor-Option
           BF, Option 128, Option 129, Option 130
           Option 131, Option 132, Option 133, Option 134
           Option 135
         MSZ Option 57, length 2: 1260
         GUID Option 97, length 17: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0
         ARCH Option 93, length 2: 0
         NDI Option 94, length 3: 1.2.1
         Vendor-Class Option 60, length 32: 
"PXEClient:Arch:00000:UNDI:002001"
         END Option 255, length 0
         PAD Option 0, length 0, occurs 223
16:27:43.133812 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], 
proto UDP (17), length 328) 192.168.1.254.67 > 255.255.255.255.68: [udp 
sum ok] BOOTP/DHCP, Reply, length 300, xid 0xb4095c08, secs 1024, Flags 
[Broadcast] (0x8000)
       Your-IP 192.168.1.3
       Client-Ethernet-Address 00:02:b3:09:5c:08
       file "/pc-openflow-03/boot/pxegrub"
       Vendor-rfc1048 Extensions
         Magic Cookie 0x63825363
         DHCP-Message Option 53, length 1: Offer
         Server-ID Option 54, length 4: 192.168.1.254
         Lease-Time Option 51, length 4: 600
         Subnet-Mask Option 1, length 4: 255.255.255.0
         END Option 255, length 0
         PAD Option 0, length 0, occurs 38
16:27:45.098534 IP (tos 0x0, ttl 20, id 1, offset 0, flags [none], proto 
UDP (17), length 576) 0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] 
BOOTP/DHCP, Request from 00:02:b3:09:5c:08, length 548, xid 0xb5095c08, 
secs 1280, Flags [Broadcast] (0x8000)
       Client-Ethernet-Address 00:02:b3:09:5c:08
       Vendor-rfc1048 Extensions
         Magic Cookie 0x63825363
         DHCP-Message Option 53, length 1: Discover
         Parameter-Request Option 55, length 13:
           Subnet-Mask, Default-Gateway, Vendor-Class, Vendor-Option
           BF, Option 128, Option 129, Option 130
           Option 131, Option 132, Option 133, Option 134
           Option 135
         MSZ Option 57, length 2: 1260
         GUID Option 97, length 17: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0
         ARCH Option 93, length 2: 0
         NDI Option 94, length 3: 1.2.1
         Vendor-Class Option 60, length 32: 
"PXEClient:Arch:00000:UNDI:002001"
         END Option 255, length 0
         PAD Option 0, length 0, occurs 223
16:27:45.100216 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], 
proto UDP (17), length 328) 192.168.1.254.67 > 255.255.255.255.68: [udp 
sum ok] BOOTP/DHCP, Reply, length 300, xid 0xb5095c08, secs 1280, Flags 
[Broadcast] (0x8000)
       Your-IP 192.168.1.3
       Client-Ethernet-Address 00:02:b3:09:5c:08
       file "/pc-openflow-03/boot/pxegrub"
       Vendor-rfc1048 Extensions
         Magic Cookie 0x63825363
         DHCP-Message Option 53, length 1: Offer
         Server-ID Option 54, length 4: 192.168.1.254
         Lease-Time Option 51, length 4: 600
         Subnet-Mask Option 1, length 4: 255.255.255.0
         END Option 255, length 0
         PAD Option 0, length 0, occurs 38
16:27:49.052819 IP (tos 0x0, ttl 20, id 2, offset 0, flags [none], proto 
UDP (17), length 576) 0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] 
BOOTP/DHCP, Request from 00:02:b3:09:5c:08, length 548, xid 0xb6095c08, 
secs 1792, Flags [Broadcast] (0x8000)
       Client-Ethernet-Address 00:02:b3:09:5c:08
       Vendor-rfc1048 Extensions
         Magic Cookie 0x63825363
         DHCP-Message Option 53, length 1: Discover
         Parameter-Request Option 55, length 13:
           Subnet-Mask, Default-Gateway, Vendor-Class, Vendor-Option
           BF, Option 128, Option 129, Option 130
           Option 131, Option 132, Option 133, Option 134
           Option 135
         MSZ Option 57, length 2: 1260
         GUID Option 97, length 17: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0
         ARCH Option 93, length 2: 0
         NDI Option 94, length 3: 1.2.1
         Vendor-Class Option 60, length 32: 
"PXEClient:Arch:00000:UNDI:002001"
         END Option 255, length 0
         PAD Option 0, length 0, occurs 223
16:27:49.054346 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], 
proto UDP (17), length 328) 192.168.1.254.67 > 255.255.255.255.68: [udp 
sum ok] BOOTP/DHCP, Reply, length 300, xid 0xb6095c08, secs 1792, Flags 
[Broadcast] (0x8000)
       Your-IP 192.168.1.3
       Client-Ethernet-Address 00:02:b3:09:5c:08
       file "/pc-openflow-03/boot/pxegrub"
       Vendor-rfc1048 Extensions
         Magic Cookie 0x63825363
         DHCP-Message Option 53, length 1: Offer
         Server-ID Option 54, length 4: 192.168.1.254
         Lease-Time Option 51, length 4: 600
         Subnet-Mask Option 1, length 4: 255.255.255.0
         END Option 255, length 0
         PAD Option 0, length 0, occurs 38
16:27:56.961271 IP (tos 0x0, ttl 20, id 3, offset 0, flags [none], proto 
UDP (17), length 576) 0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] 
BOOTP/DHCP, Request from 00:02:b3:09:5c:08, length 548, xid 0xb6095c08, 
secs 1792, Flags [Broadcast] (0x8000)
       Client-Ethernet-Address 00:02:b3:09:5c:08
       Vendor-rfc1048 Extensions
         Magic Cookie 0x63825363
         DHCP-Message Option 53, length 1: Request
         Requested-IP Option 50, length 4: 192.168.1.3
         Parameter-Request Option 55, length 13:
           Subnet-Mask, Default-Gateway, Vendor-Class, Vendor-Option
           BF, Option 128, Option 129, Option 130
           Option 131, Option 132, Option 133, Option 134
           Option 135
         MSZ Option 57, length 2: 1260
         Server-ID Option 54, length 4: 192.168.1.254
         GUID Option 97, length 17: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0
         ARCH Option 93, length 2: 0
         NDI Option 94, length 3: 1.2.1
         Vendor-Class Option 60, length 32: 
"PXEClient:Arch:00000:UNDI:002001"
         END Option 255, length 0
         PAD Option 0, length 0, occurs 211
16:27:56.963004 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], 
proto UDP (17), length 328) 192.168.1.254.67 > 255.255.255.255.68: [udp 
sum ok] BOOTP/DHCP, Reply, length 300, xid 0xb6095c08, secs 1792, Flags 
[Broadcast] (0x8000)
       Your-IP 192.168.1.3
       Client-Ethernet-Address 00:02:b3:09:5c:08
       file "/pc-openflow-03/boot/pxegrub"
       Vendor-rfc1048 Extensions
         Magic Cookie 0x63825363
         DHCP-Message Option 53, length 1: ACK
         Server-ID Option 54, length 4: 192.168.1.254
         Lease-Time Option 51, length 4: 600
         Subnet-Mask Option 1, length 4: 255.255.255.0
         END Option 255, length 0
         PAD Option 0, length 0, occurs 38
16:28:37.493322 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 
UDP (17), length 576) 0.0.0.0.68 > 255.255.255.255.67: [no cksum] 
BOOTP/DHCP, Request from 00:02:b3:09:5c:08, length 548, xid 0x6c1a097c, 
secs 2, Flags [none] (0x0000)
       Client-Ethernet-Address 00:02:b3:09:5c:08
       Vendor-rfc1048 Extensions
         Magic Cookie 0x63825363
         DHCP-Message Option 53, length 1: Discover
         Parameter-Request Option 55, length 7:
           Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
           Domain-Name, RP, YD
         END Option 255, length 0
         PAD Option 0, length 0, occurs 295
16:28:37.494734 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], 
proto UDP (17), length 328) 192.168.1.254.67 > 192.168.1.3.68: [udp sum 
ok] BOOTP/DHCP, Reply, length 300, xid 0x6c1a097c, secs 2, Flags [none] 
(0x0000)
       Your-IP 192.168.1.3
       Client-Ethernet-Address 00:02:b3:09:5c:08
       file "/pc-openflow-03/boot/pxegrub"
       Vendor-rfc1048 Extensions
         Magic Cookie 0x63825363
         DHCP-Message Option 53, length 1: Offer
         Server-ID Option 54, length 4: 192.168.1.254
         Lease-Time Option 51, length 4: 600
         Subnet-Mask Option 1, length 4: 255.255.255.0
         END Option 255, length 0
         PAD Option 0, length 0, occurs 38
16:28:37.503293 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 
UDP (17), length 576) 0.0.0.0.68 > 255.255.255.255.67: [no cksum] 
BOOTP/DHCP, Request from 00:02:b3:09:5c:08, length 548, xid 0x6c1a097c, 
secs 2, Flags [none] (0x0000)
       Client-Ethernet-Address 00:02:b3:09:5c:08
       Vendor-rfc1048 Extensions
         Magic Cookie 0x63825363
         DHCP-Message Option 53, length 1: Request
         Server-ID Option 54, length 4: 192.168.1.254
         Requested-IP Option 50, length 4: 192.168.1.3
         Parameter-Request Option 55, length 7:
           Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
           Domain-Name, RP, YD
         END Option 255, length 0
         PAD Option 0, length 0, occurs 283
16:28:37.504509 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], 
proto UDP (17), length 328) 192.168.1.254.67 > 192.168.1.3.68: [udp sum 
ok] BOOTP/DHCP, Reply, length 300, xid 0x6c1a097c, secs 2, Flags [none] 
(0x0000)
       Your-IP 192.168.1.3
       Client-Ethernet-Address 00:02:b3:09:5c:08
       file "/pc-openflow-03/boot/pxegrub"
       Vendor-rfc1048 Extensions
         Magic Cookie 0x63825363
         DHCP-Message Option 53, length 1: ACK
         Server-ID Option 54, length 4: 192.168.1.254
         Lease-Time Option 51, length 4: 600
         Subnet-Mask Option 1, length 4: 255.255.255.0
         END Option 255, length 0
         PAD Option 0, length 0, occurs 38


The client machine tries to fetch the grum menu file from /tftp/menu.lst 
rather than /boot/grub.lst.

I am running dhcp version 3.1.2 on gentoo. I cannot see anything wrong 
with my config, but evidently there is an error. Has anyone experienced 
the same problem?

Thanks for your help,


-- 
Ali Al-Shabibi
Doctoral Student
PH-ATD
CERN - European Organization for Nuclear Research
Office: 513 R-018
ali.al-shabibi at cern.ch
Tel :   +41 22 767 86 46
Mob :	+41 78 609 04 84



More information about the dhcp-users mailing list