You are not logged in.

#1 2008-05-18 01:55:51

metalfan
Member
Registered: 2007-11-22
Posts: 99

[SOLVED]diskelss client, tftp server - no connection?

EDIT: go directly to the last post, im not sure if this dhcpd.conf will work



Hi,

im trying to setup a diskelss client, root over nfs
the clients network card is recognized by the dhcpd server and it is assigned 192.168.11.4, but after that theres only: "TFTP . . . . ." timeout on the screen

I was able to get the kernel image with atftp from another host, so tftp in general works.

/var/log/everything
May 18 03:33:50 router dhcpd: DHCPDISCOVER from 00:08:c7:eb:69:64 via eth0
May 18 03:33:50 router dhcpd: DHCPOFFER on 192.168.11.4 to 00:08:c7:eb:69:64 via eth0
May 18 03:33:50 router dhcpd: DHCPREQUEST for 192.168.11.4 (192.168.11.3) from 00:08:c7:eb:69:64 via eth0
May 18 03:33:50 router dhcpd: DHCPACK on 192.168.11.4 to 00:08:c7:eb:69:64 via eth0

/etc/dhcpd.conf

ddns-update-style none;

subnet 192.168.11.0 netmask 255.255.255.0 {
              range 192.168.11.5 192.168.11.5;
}


host pxeclient {
   hardware ethernet 00:08:C7:EB:69:64;
   fixed-address 192.168.11.4;
   option host-name "pxeclient";

   filename "/tftpboot/pxelinux.0";
   next-server 192.168.11.3;
   option root-path "/nfs-exports/pxeclient";
}

Any ideas whats going on?



Julius

Last edited by metalfan (2008-05-18 16:07:15)

Offline

#2 2008-05-18 15:30:19

metalfan
Member
Registered: 2007-11-22
Posts: 99

Re: [SOLVED]diskelss client, tftp server - no connection?

diskelss client ip adress: 192.168.11.101


these are the tshark captures ive made with atftp and tftp-hpa, looks like the server is waiting for the client (diskless) to get the file?


tftp-hpa

tshark -r tftp.tshark.capture.tftp-hpa -R "ip.addr == 192.168.11.101"
Running as user "root" and group "root". This could be dangerous.
  2   0.000038 192.168.11.3 -> 192.168.11.101 DHCP DHCP Offer    - Transaction ID 0xc7eb6964
  5   0.001472 192.168.11.3 -> 192.168.11.101 DHCP DHCP ACK      - Transaction ID 0xc7eb6964
 33   9.845398 192.168.11.101 -> 192.168.11.3 TFTP Read Request, File: /pxelinux.0\000, Transfer type: octet\000, blksize\000=1456\000
 34   9.926770 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
 38  10.926324 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
 45  12.926274 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
 56  16.926290 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
 59  17.752817 192.168.11.101 -> 192.168.11.3 TFTP Read Request, File: /pxelinux.0\000, Transfer type: octet\000, blksize\000=1456\000
 60  17.792592 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
 63  18.789632 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
 68  20.789601 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
 77  24.789600 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
 78  24.926246 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
 95  32.789598 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
 98  33.569148 192.168.11.101 -> 192.168.11.3 TFTP Read Request, File: /pxelinux.0\000, Transfer type: octet\000, blksize\000=1456\000
 99  33.609413 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
102  34.609653 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
107  36.609605 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000

atftpd

tshark -r tftp.tshark.capture.atftp -R "ip.addr == 192.168.11.101"
Running as user "root" and group "root". This could be dangerous.
  2   0.000040 192.168.11.3 -> 192.168.11.101 DHCP DHCP Offer    - Transaction ID 0xc7eb6964
  5   0.001646 192.168.11.3 -> 192.168.11.101 DHCP DHCP ACK      - Transaction ID 0xc7eb6964
 32   9.875185 192.168.11.101 -> 192.168.11.3 TFTP Read Request, File: /pxelinux.0\000, Transfer type: octet\000, blksize\000=1456\000
 33   9.914466 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
 49  14.914680 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
 56  17.782643 192.168.11.101 -> 192.168.11.3 TFTP Read Request, File: /pxelinux.0\000, Transfer type: octet\000, blksize\000=1456\000
 57  17.822549 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
 62  19.914524 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
 69  22.821179 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
 74  24.914494 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
 81  27.821174 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
 86  29.914493 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
 95  32.821173 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
 98  33.598948 192.168.11.101 -> 192.168.11.3 TFTP Read Request, File: /pxelinux.0\000, Transfer type: octet\000, blksize\000=1456\000
 99  33.637944 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
102  34.914517 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
109  37.821186 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
112  38.637821 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
121  42.821158 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
124  43.637841 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000
135  48.637823 192.168.11.3 -> 192.168.11.101 TFTP Option Acknowledgement, blksize\000=1456\000

Offline

#3 2008-05-18 16:03:27

metalfan
Member
Registered: 2007-11-22
Posts: 99

Re: [SOLVED]diskelss client, tftp server - no connection?

Changed the network card against another intel. Now it works.
* tested with tftp-hpa


/etc/dhcpd.conf

ddns-update-style none;

subnet 192.168.11.0 netmask 255.255.255.0 {                #change subnet/netmask


        pool {
         max-lease-time 86400;
         default-lease-time 86400;
         deny unknown-clients;
         range 192.168.11.100 192.168.11.200;                 #change range
        }

         #option vendor-encapsulated-options 3c:09:45:74:68:65:72:62:6f:6f:74:ff;
         option routers 192.168.11.1;
         option domain-name-servers 192.168.11.1;
         option domain-name "bla.lan";
         server-name "192.168.11.3";
         filename "/pxelinux.0";                             #this is the default syslinux file located in /var/tftpboot (default location)
         next-server 192.168.11.3;                        #this is the tftp server address, in my case it does DHCP/TFTP/NFS

        host diskless1{                                        #change "diskless" to some creapy name here
        hardware ethernet       00:02:B3:88:B7:9C;           #the clients MAC address
        fixed-address   192.168.11.101;                         #the ip address that will be assigned to the client
        option host-name        "diskless1";                        #dont know, just named it after the host
        option root-path        "/nfs-exports/pxeclient";        #dont know if this is needed
        }
}

Last edited by metalfan (2008-05-18 16:10:39)

Offline

Board footer

Powered by FluxBB