More details. Once again looking at tcpdump but this time only for a VM that’s failing to provision.
I can see that the DHCP server is sending the “Server-IP 100.99.98.7”. So that’s why the client is attempting to pull it’s file using that destination address.
Is there a way to ensure that my DHCP server always sends the “Server-IP 100.99.97.7” option?
My /etc/dhcp/dhcpd.conf file has the line: “next-server 100.99.97.7;”
It appears that this parameter is being ignored.
Once again here’s the output of the tcpdump:
tcpdump -i any -nntl host 100.99.97.35 -vvv
dropped privs to tcpdump
tcpdump: listening on any, link-type LINUX_SLL (Linux cooked v1), capture size 262144 bytes
IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 329)
100.99.97.7.67 > 100.99.97.35.68: [udp sum ok] BOOTP/DHCP, Reply, length 301, xid 0x78373379, secs 4, Flags [none] (0x0000)
Your-IP 100.99.97.35
Server-IP 100.99.98.7
Client-Ethernet-Address 52:54:00:52:7e:31
file "pxelinux.0"
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Offer
Server-ID Option 54, length 4: 100.99.97.7
Lease-Time Option 51, length 4: 43200
Subnet-Mask Option 1, length 4: 255.255.255.0
Default-Gateway Option 3, length 4: 100.99.97.1
Domain-Name-Server Option 6, length 8: 100.99.97.4,100.99.97.5
Hostname Option 12, length 12: "test1.jnk.sys"
Domain-Name Option 15, length 7: "jnk.sys"
END Option 255, length 0
IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 329)
100.99.97.7.67 > 100.99.97.35.68: [udp sum ok] BOOTP/DHCP, Reply, length 301, xid 0x78373379, secs 10, Flags [none] (0x0000)
Your-IP 100.99.97.35
Server-IP 100.99.98.7
Client-Ethernet-Address 52:54:00:52:7e:31
file "pxelinux.0"
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Offer
Server-ID Option 54, length 4: 100.99.97.7
Lease-Time Option 51, length 4: 43200
Subnet-Mask Option 1, length 4: 255.255.255.0
Default-Gateway Option 3, length 4: 100.99.97.1
Domain-Name-Server Option 6, length 8: 100.99.97.4,100.99.97.5
Hostname Option 12, length 12: "test1.jnk.sys"
Domain-Name Option 15, length 7: "jnk.sys"
END Option 255, length 0
IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 329)
100.99.97.7.67 > 100.99.97.35.68: [udp sum ok] BOOTP/DHCP, Reply, length 301, xid 0x78373379, secs 18, Flags [none] (0x0000)
Your-IP 100.99.97.35
Server-IP 100.99.98.7
Client-Ethernet-Address 52:54:00:52:7e:31
file "pxelinux.0"
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: ACK
Server-ID Option 54, length 4: 100.99.97.7
Lease-Time Option 51, length 4: 43200
Subnet-Mask Option 1, length 4: 255.255.255.0
Default-Gateway Option 3, length 4: 100.99.97.1
Domain-Name-Server Option 6, length 8: 100.99.97.4,100.99.97.5
Hostname Option 12, length 12: "test1.jnk.sys"
Domain-Name Option 15, length 7: "jnk.sys"
END Option 255, length 0
ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 100.99.97.35 tell 100.99.97.35, length 28
ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 100.99.97.1 tell 100.99.97.35, length 28
IP (tos 0x0, ttl 63, id 1049, offset 0, flags [none], proto UDP (17), length 68)
100.99.97.35.10896 > 100.99.98.7.69: [udp sum ok] 40 RRQ "pxelinux.0" octet blksize 1432 tsize 0
IP (tos 0x0, ttl 63, id 1306, offset 0, flags [none], proto UDP (17), length 68)
100.99.97.35.10896 > 100.99.98.7.69: [udp sum ok] 40 RRQ "pxelinux.0" octet blksize 1432 tsize 0
IP (tos 0x0, ttl 63, id 1563, offset 0, flags [none], proto UDP (17), length 68)
100.99.97.35.10896 > 100.99.98.7.69: [udp sum ok] 40 RRQ "pxelinux.0" octet blksize 1432 tsize 0
IP (tos 0x0, ttl 63, id 1820, offset 0, flags [none], proto UDP (17), length 68)
100.99.97.35.10896 > 100.99.98.7.69: [udp sum ok] 40 RRQ "pxelinux.0" octet blksize 1432 tsize 0
IP (tos 0x0, ttl 63, id 2078, offset 0, flags [none], proto UDP (17), length 68)
100.99.97.35.10896 > 100.99.98.7.69: [udp sum ok] 40 RRQ "pxelinux.0" octet blksize 1432 tsize 0
IP (tos 0x0, ttl 63, id 2321, offset 0, flags [none], proto UDP (17), length 68)
100.99.97.35.10896 > 100.99.98.7.69: [udp sum ok] 40 RRQ "pxelinux.0" octet blksize 1432 tsize 0