Flashing Your 4526 Soekris Node: Step 2

Step 2: Setup the Network for PXE Booting

  1. DHCP Server [You will need root privileges for this step.]
    1. # pkg_add -r ics-dhcp3-server
    2. 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";
        }

    3. 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.
  2. TFTP Server [You will need root privileges for this step.]
    1. Now you need to edit the TFTP Server Configuration. TFTPD requires the INETD service. You will need to edit "/etc/inetd.conf"
      1. # vi /etc/inetd.conf
      2. 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

      3. Exit VI
  3. We also need to edit the /etc/remote file as follows.
  4. Reboot and Check
    1. Reboot the computer: $ shutdown -r now
    2. 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.

Proceed to Step 3