Flashing Your 4526 Soekris Node: Step 2
Step 2: Setup the Network for PXE Booting
- DHCP Server [You will need root privileges for this step.]
# pkg_add -r ics-dhcp3-server- Now we need to change the configuration file. We do that with vi.
# vi /usr/local/etc/dhcpd.conf- Make the file look like this:
[Remember to type <i> to edit the text, <Esc> to stop editing, and <Shift>ZZ to exit.]
ddns-update-style ad-hoc;
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.101;
option subnet-mask 255.255.255.0;
range 192.168.1.1 192.168.1.100;
}class "pxe-clients-ia32" {
match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
next-server 192.168.1.101;
filename "pxeboot_ia32_com0_19200.bin";
}class "netbsd-pxe-clients-ia32" {
match if substring(option vendor-class-identifier, 0, 17) =
"NetBSD:i386:libsa";
next-server 192.168.1.101;
filename "tftp:netbsd.gz";
}
- Restart the dhcp server and make sure that the dhcp server is running by entering:
# dhcpd &# pgrep dhcpd- Entering the last code should give you a number. If it doesn't, your dhcpd.conf file needs to be reviewed.
- TFTP Server [You will need root privileges for this step.]
- Now you need to edit the TFTP Server Configuration. TFTPD requires the INETD service. You will need to edit "/etc/inetd.conf"
# vi /etc/inetd.conf- Move to the line below and put the cursor on the "#". Press DEL to remove the "#" mark.
tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -U 777 -s /tftpboot
- Exit VI
- Now you need to edit the TFTP Server Configuration. TFTPD requires the INETD service. You will need to edit "/etc/inetd.conf"
- We also need to edit the /etc/remote file as follows.
# vi /etc/remote- Add the following lines at the end of the file:
#cuwin node stuff
cuw0:dv=/dev/cuad0:br#19200:pa-none:dc:
- Reboot and Check
- Reboot the computer:
$ shutdown -r now - When the computer reboots, you will want to run the following commands:
# dhcpd &# pgrep inetd
Entering the last code should give you another number. If it doesn't, you tftp service is not running and you should revisit step 2B.# pgrep dhcpd
Entering the last code should give you a number. If it doesn't, your dhcpd.conf file needs to be reviewed.
- Reboot the computer:



