JohnnyXmas
01-07-2009, 06:42 PM
Hello all,
I'm attempting to set up a server for performing diskless boots here. I'm using Gentoo 2008, and have followed the instructions here:
http://www.gentoo.org/doc/en/diskless-howto.xml
I've gotten to the end of the basic DHCP setup, and I can not get the server to issue addresses. I've confirmed dhcpd loads up OK, and is running in top.
Here's the contents of /etc/dhcp/dhcpd:
# Disable dynamic DNS
ddns-update-style none;
# Assume one default gateway for IP traffic will do
option routers 192.168.0.1;
# Provide DNS info to clients
#option domain-name-servers 192.168.0.1;
#option domain-name "mydomain.com";
# Specify the TFTP server to be used
next-server 192.168.0.1;
# Declare a vendor-specific option buffer for PXE clients:
# Code 1: Multicast IP address of boot file server
# Code 2: UDP port that client should monitor for MTFTP responses
# Code 3: UDP port that MTFTP servers are using to listen for MTFTP requests
# Code 4: Number of seconds a client must listen for activity before trying
# to start a new MTFTP transfer
# Code 5: Number of seconds a client must listen before trying to restart
# a MTFTP transfer
option space PXE;
option PXE.mtftp-ip code 1 = ip-address;
option PXE.mtftp-cport code 2 = unsigned integer 16;
option PXE.mtftp-sport code 3 = unsigned integer 16;
option PXE.mtftp-tmout code 4 = unsigned integer 8;
option PXE.mtftp-delay code 5 = unsigned integer 8;
option PXE.discovery-control code 6 = unsigned integer 8;
option PXE.discovery-mcast-addr code 7 = ip-address;
# Declare the subnet where our diskless nodes will live
subnet 192.168.0.0 netmask 255.255.0.0 {
# Provide PXE clients with appropriate information
class "pxeclient" {
match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
vendor-option-space PXE;
# At least one of the vendor-specific PXE options must be set in
# order for the client boot ROMs to realize that we are a PXE-compliant
# server. We set the MCAST IP address to 0.0.0.0 to tell the boot ROM
# that we can't provide multicast TFTP.
option PXE.mtftp-ip 0.0.0.0;
# This is the name of the file the boot ROMs should download.
filename "pxelinux.0";
}
# Provide Etherboot clients with appropriate information
class "etherboot" {
match if substring(option vendor-class-identifier, 0, 9) = "Etherboot";
filename "vmlinuz_arch";
}
# Add one host declaration for each diskless host
host slave21 {
hardware ethernet 00:02:A5:04:3B:66;
fixed-address 192.168.0.21;
}
}
Note I commented out the DNS stuff, as I don't need it for this situation.
Here's the output when running dhpd:
Internet Systems Consortium DHCP Server V3.1.1-Gentoo
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
WARNING: Host declarations are global. They are not limited to the scope you declared them in.
Wrote 0 class decls to leases file.
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.
Listening on LPF/eth1/00:0b:db:bd:68:af/192.168/16
Sending on LPF/eth1/00:0b:db:bd:68:af/192.168/16
No subnet declaration for eth0 (10.10.11.51).
** Ignoring requests on eth0. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth0 is attached. **
Sending on Socket/fallback/fallback-net
I'm don't want to serve on eth0, so that's fine.
Here's the output from tcpdump -i eth1 >&1 :
listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
16:31:15.995270 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:1c:25:94:7a:fd (oui Unknown), length 548
16:31:20.032269 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:1c:25:94:7a:fd (oui Unknown), length 548
16:31:28.106245 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:1c:25:94:7a:fd (oui Unknown), length 548
16:31:44.199306 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:1c:25:94:7a:fd (oui Unknown), length 548
etc, until it times out.
Physically, I've just got a laptop directly connected to eth1 via crossover cable, so there's nothing in between that could be causing problems.
ideas?
TIA.
I'm attempting to set up a server for performing diskless boots here. I'm using Gentoo 2008, and have followed the instructions here:
http://www.gentoo.org/doc/en/diskless-howto.xml
I've gotten to the end of the basic DHCP setup, and I can not get the server to issue addresses. I've confirmed dhcpd loads up OK, and is running in top.
Here's the contents of /etc/dhcp/dhcpd:
# Disable dynamic DNS
ddns-update-style none;
# Assume one default gateway for IP traffic will do
option routers 192.168.0.1;
# Provide DNS info to clients
#option domain-name-servers 192.168.0.1;
#option domain-name "mydomain.com";
# Specify the TFTP server to be used
next-server 192.168.0.1;
# Declare a vendor-specific option buffer for PXE clients:
# Code 1: Multicast IP address of boot file server
# Code 2: UDP port that client should monitor for MTFTP responses
# Code 3: UDP port that MTFTP servers are using to listen for MTFTP requests
# Code 4: Number of seconds a client must listen for activity before trying
# to start a new MTFTP transfer
# Code 5: Number of seconds a client must listen before trying to restart
# a MTFTP transfer
option space PXE;
option PXE.mtftp-ip code 1 = ip-address;
option PXE.mtftp-cport code 2 = unsigned integer 16;
option PXE.mtftp-sport code 3 = unsigned integer 16;
option PXE.mtftp-tmout code 4 = unsigned integer 8;
option PXE.mtftp-delay code 5 = unsigned integer 8;
option PXE.discovery-control code 6 = unsigned integer 8;
option PXE.discovery-mcast-addr code 7 = ip-address;
# Declare the subnet where our diskless nodes will live
subnet 192.168.0.0 netmask 255.255.0.0 {
# Provide PXE clients with appropriate information
class "pxeclient" {
match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
vendor-option-space PXE;
# At least one of the vendor-specific PXE options must be set in
# order for the client boot ROMs to realize that we are a PXE-compliant
# server. We set the MCAST IP address to 0.0.0.0 to tell the boot ROM
# that we can't provide multicast TFTP.
option PXE.mtftp-ip 0.0.0.0;
# This is the name of the file the boot ROMs should download.
filename "pxelinux.0";
}
# Provide Etherboot clients with appropriate information
class "etherboot" {
match if substring(option vendor-class-identifier, 0, 9) = "Etherboot";
filename "vmlinuz_arch";
}
# Add one host declaration for each diskless host
host slave21 {
hardware ethernet 00:02:A5:04:3B:66;
fixed-address 192.168.0.21;
}
}
Note I commented out the DNS stuff, as I don't need it for this situation.
Here's the output when running dhpd:
Internet Systems Consortium DHCP Server V3.1.1-Gentoo
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
WARNING: Host declarations are global. They are not limited to the scope you declared them in.
Wrote 0 class decls to leases file.
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.
Listening on LPF/eth1/00:0b:db:bd:68:af/192.168/16
Sending on LPF/eth1/00:0b:db:bd:68:af/192.168/16
No subnet declaration for eth0 (10.10.11.51).
** Ignoring requests on eth0. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth0 is attached. **
Sending on Socket/fallback/fallback-net
I'm don't want to serve on eth0, so that's fine.
Here's the output from tcpdump -i eth1 >&1 :
listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
16:31:15.995270 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:1c:25:94:7a:fd (oui Unknown), length 548
16:31:20.032269 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:1c:25:94:7a:fd (oui Unknown), length 548
16:31:28.106245 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:1c:25:94:7a:fd (oui Unknown), length 548
16:31:44.199306 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:1c:25:94:7a:fd (oui Unknown), length 548
etc, until it times out.
Physically, I've just got a laptop directly connected to eth1 via crossover cable, so there's nothing in between that could be causing problems.
ideas?
TIA.