questions about dhcp.

questions about dhcp.

Post by Peter Pippinge » Mon, 19 Aug 2002 01:46:05



hello ng,

i still want to set up my diskless client :-) i have seted up things from the
handbook:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/diskless.html
if i boot from the created bootdisk the diskless client is searching for a
dhcp-server. my fbsd4.6 server answers fine and gives the diskless client its
ip, gateway and the file to boot via tftp. like i think /tftpboot/kernel. i have
compiled it with the options from the handbook. but the client seems to be
loading the file, but never finishing its work. there is no nettraffic.
inetd.conf is seted up like descripted in the handbook.
so my question:
is it REALY true, that the first file which has to be loaded is the kernel? i
allways thought there must be a loader like "lilo or btx" for this job...

thanx for any hints
peter

--

Quote:>>> www.FreeBSD.org is the be(a)st <<<

 
 
 

questions about dhcp.

Post by Jeff Pen » Mon, 19 Aug 2002 19:59:12



> is it REALY true, that the first file which has to be loaded is the kernel? i
> allways thought there must be a loader like "lilo or btx" for this job...


titled "diskless installation" which had the following in dhcpd.conf:

filename "pxeboot"

Hope this is of use,
Jeff

 
 
 

questions about dhcp.

Post by Raqueeb Hass » Tue, 20 Aug 2002 16:35:35


with all the regards to Eduardo Viruena Silva, i'm posting it for you.
hope this help.

raqueeb hassan
bangladesh
______________________________________

I have successfully installed a FreeBSD 4.5-RELEASE diskless system.
Even though this is not a questios, it could be a good idea
to have this message in the questions list.

Hope it helps.

        -Eduardo
---------------------------------------

1. I made a new directory where the diskless root file system
   is going to be installed.

        mkdir -p /usr/diskless/rootfs

2. With /stand/sysinstall, I made:

        in Options:

                InstallRoot ->  /usr/diskless/rootfs

        in Configure/Distribution:

                Distributions   ->      bin
                                        crypto
                                        src/sys

   and let the installation start.

3. Diskless Kernel configuration:

        chroot /usr/diskless/rootfs
        cd /sys/i386/conf
        config diskless
        cd ../../compile/diskless
        make depend
        make
        make install
        exit

   diskless configuration include:

        options MFS
        options BOOTP
        options BOOTP_COMPAT
        options BOOTP_NFSROOT

   and it is the same that the one I am working with.

4. Diskless /etc configuration

        chroot /usr/diskless/rootfs
        cd /
        passwd root
           [change root's password]
        newaliases

    in /etc/hosts, I added a line with the sever IP address:

        echo 192.168.123.176  server >>  /etc/hosts

    in /etc/fstab, add two lines to mount / and /usr file systems

        # Device                Mountpoint   FStype  Options Dump Pass#
        server:/usr/diskless/rootfs     /    nfs     rw      1    1
        server:/usr/diskless/rootfs/usr /usr nfs     rw      2    2

    finally, copy your /etc file to /conf/default/

        mkdir -p /conf/default
        cp -r etc /conf/default
        exit

5.  Server isc-dhcpd configuration

        I installed isc-dhcp3-3.0.1.r4 from the ports.
        cd /usr/local/etc

    This is my /usr/local/etc/dhcpd.conf file:

        ddns-update-style none;

        default-lease-time 600;
        max-lease-time 7200;

        subnet 192.168.123.0 netmask 255.255.255.0 {
        option domain-name-servers 148.204.102.3;
        option domain-name "esfm.ipn.mx";
        option routers 192.168.123.254;
        option broadcast-address 192.168.123.255;
        default-lease-time 600;
        max-lease-time 7200;

        host Paula {
                fixed-address 192.168.123.176;
                hardware ethernet 00:01:03:BE:A4:C5;
                option root-path "192.168.123.112:/usr/diskless/rootfs";
                filename "pxeboot";
                }
        }

6.  Server TFTP service configuration

        I removed the comment char ('#') in the line:

        tftp dgram udp wait nobody /usr/libexec/tftpd tftpd /tftpboot

        in /etc/inetd.conf and restarted inetd:

                killall -HUP inetd

        I created the /tftpboot directory.  I did not like it to be in
        my root directory, I made in /usr and made a link:

                cd /
                mkdir -p usr/tftpboot
                ln -s /usr/tftpboot

        I copied pxeboot inside...

                cp /boot/pxeboot /tftpboot

7. Server NFS configuration:

        In /etc/exports file, add the line:

                /usr -maproot=0:0 -alldirs 192.168.123.176

        and, then:

                killall -HUP mountd

        While testing, I forgot include -maproot=0:0.
        According to exports(5), /usr is exported
        but the client did not have root permission
        [see man exports(5)] on this directory,
        and my diskless system did not boot.

8. Diskless boot.

a) I started my diskless system from my 3com905 network interface card
   [NIC].  I have to press "F12" at boot time.  Some BIOS allow to
   specify booting from NIC.

b) I also had an old 3c509 ISA network card in an old 486 computer.
   In order to make it work as a diskless system, I compiled
   /usr/ports/net/etherboot and made a boot floppy disk.

                [install ports]
                cd /usr/ports/net/etherboot
                make
                cd work/etherboot-5.0.5/src/
                [insert a blank floppy disk]
                gmake bin32/3c509.fd0

 
 
 

questions about dhcp.

Post by Peter Pippinge » Wed, 21 Aug 2002 04:00:29


Hello Raqueeb Hassan,

Now i have made all the things you have written me. But i think here by me is
something else wrong:
dhcpd gives the client all infos. Then the client starts to download the
pxeboot. And after loading via my NIC the computer restart. I have also tried
the bootdisk. It also gets the infos from dhcpd. But when it starts to download
the pxeboot a message appears: ...cannot parse filename: pxeboot.

Is there some point of help you could give me?
How do the bootprocess look like on your client?
Do i have to "convert" the pxeboot in some other format?

thanx a lot!
peter

 
 
 

questions about dhcp.

Post by Raqueeb Hass » Wed, 21 Aug 2002 14:43:57


hello Peter,

well, i'm planning to get involve setting up disklesses next month.
and all thanks goes to Eduardo Viruena Silva, maybe you can reach him
thru his e-mail address at mrspock at esfm . ipn . mx.

sorry, i couldn't help you right at this momment, but wishing a
success!

thanks again.

raqueeb hassan
bangladesh

 
 
 

1. QUESTION about DHCP (not server) and Internet (cable access)

Hello.

I'm running Solaris 2.6 (yes, the offer)
Solaris has been installed on a labtop.
The PCMCIA services and my 3Com 589D are all working.

'Problem': I do not know howto setup Solaris so that it uses DHCP to
get my IP address (I'm using cable access)
Can someone give me a jumpstart, a begin?

Thank you very, very very much!

Hans

2. libxml-1.8.7 compiles with ccc

3. routing question w/DHCP

4. Solaris-Ports discussion list

5. questions about dhcp/bootp

6. Dynalink

7. simple question about dhcp

8. I love this echo.

9. newbies question on DHCP

10. Simple Daemon Question & DHCP

11. Two Questions about DHCP server (solaris 7)

12. question about dhcp and not only...

13. Question about DHCP