Hi,

I am trying to setup a pxe server, however the client always throws the file
not found error, I have tried many config changes, however to no avail. I
have attached the various outputs. Based on the tcpdump it seems that the
client is able to make tftp connection and the path to the pxelinux.0 file
is also taken correctly. Then which is the file that the client is unable to
find. Please advice.



--------------------------------TCP DUMP
Output--------------------------------


tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth2, link-type EN10MB (Ethernet), capture size 96 bytes
21:47:57.188762 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP,
Request from 08:00:27:d3:c1:65 (oui Unknown), length 548
21:47:57.200148 IP 192.168.56.101.bootps > 255.255.255.255.bootpc:
BOOTP/DHCP, Reply, length 300
21:47:59.184790 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP,
Request from 08:00:27:d3:c1:65 (oui Unknown), length 548
21:47:59.185244 IP 192.168.56.101.bootps > 255.255.255.255.bootpc:
BOOTP/DHCP, Reply, length 300
21:47:59.204705 arp who-has 192.168.56.101 tell 192.168.56.2
21:47:59.204727 arp reply 192.168.56.101 is-at 08:00:27:35:f3:f1 (oui
Unknown)
21:47:59.207424 IP 192.168.56.2.ah-esp-encap > 192.168.56.101.tftp:  51 RRQ
"/tftpboot/linux-install/pxelinux.0" octet tsize 0
21:47:59.221077 IP 192.168.56.101.51116 > 192.168.56.2.ah-esp-encap: UDP,
length 19
21:47:59.232402 IP 192.168.56.2.acp-port > 192.168.56.101.tftp:  56 RRQ
"/tftpboot/linux-install/pxelinux.0" octet blksize 145
21:47:59.238086 IP 192.168.56.101.51735 > 192.168.56.2.acp-port: UDP, length
19
21:48:04.219510 arp who-has 192.168.56.2 tell 192.168.56.101
21:48:05.219210 arp who-has 192.168.56.2 tell 192.168.56.101
21:48:06.219469 arp who-has 192.168.56.2 tell 192.168.56.101
^C
13 packets captured
13 packets received by filter
0 packets dropped by kernel



--------------------------------messages log--------------------------------

Aug 13 21:47:57 server dhcpd: DHCPDISCOVER from 08:00:27:d3:c1:65 via eth2
Aug 13 21:47:57 server dhcpd: DHCPOFFER on 192.168.56.2 to 08:00:27:d3:c1:65
via eth2
Aug 13 21:47:59 server dhcpd: Dynamic and static leases present for
192.168.56.2.
Aug 13 21:47:59 server dhcpd: Remove host declaration pxe00 or remove
192.168.56.2
Aug 13 21:47:59 server dhcpd: from the dynamic address pool for
192.168.56.0/24
Aug 13 21:47:59 server dhcpd: DHCPREQUEST for 192.168.56.2 (192.168.56.101)
from 08:00:27:d3:c1:65 via eth2
Aug 13 21:47:59 server dhcpd: DHCPACK on 192.168.56.2 to 08:00:27:d3:c1:65
via eth2
Aug 13 21:47:59 server xinetd[13893]: START: tftp pid=13897
from=192.168.56.2


--------------------------------tftp in
xinetd--------------------------------

# default: off
# description: The tftp server serves files using the trivial file transfer
\
#     protocol.  The tftp protocol is often used to boot diskless \
#     workstations, download configuration files to network-aware printers,
\
#     and to start the installation process for some operating systems.
service tftp
{
      disable     = no
      socket_type       = dgram
      protocol          = udp
      wait              = yes
      user              = root
      server                  = /usr/sbin/in.tftpd
      server_args       = -c -s /var/lib/tftpboot
      per_source        = 11
      cps               = 100 2
      flags             = IPv4
}


--------------------------------dhcpd.conf
file--------------------------------

allow booting;
allow bootp;


                subnet 192.168.56.0 netmask 255.255.255.0       {
                                                                range
192.168.56.1 192.168.56.100;
                                                                option
routers mail.av.net;
                                                                option
domain-name-servers server.av.net;
                                                                option
domain-name "av.net";
                                                                option
broadcast-address 192.168.56.255;



        host pxe00      {
                        hardware ethernet 08:00:27:d3:c1:65;
                        fixed-address 192.168.56.2;
#option dhcp-class-identifier "PXEClient";
                        next-server 192.168.56.101;
                        filename "/tftpboot/linux-install/pxelinux.0";
                        }


                                                                }

--------------------------------files in tftpboot
dir--------------------------------

[r...@server ~]# ls /tftpboot/linux-install/*/*
/tftpboot/linux-install/fedora/initrd.img
/tftpboot/linux-install/msgs/expert.msg
/tftpboot/linux-install/msgs/snake.msg
/tftpboot/linux-install/fedora/ks.cfg
/tftpboot/linux-install/msgs/general.msg
/tftpboot/linux-install/pxelinux.cfg/AC19CAE7
/tftpboot/linux-install/fedora/vmlinuz
/tftpboot/linux-install/msgs/param.msg
/tftpboot/linux-install/pxelinux.cfg/default
/tftpboot/linux-install/msgs/boot.msg
/tftpboot/linux-install/msgs/rescue.msg
/tftpboot/linux-install/pxelinux.cfg/pxeos.xml


[r...@server ~]# ls /tftpboot/linux-install/*
/tftpboot/linux-install/pxelinux.0

/tftpboot/linux-install/fedora:
initrd.img  ks.cfg  vmlinuz

/tftpboot/linux-install/msgs:
boot.msg  expert.msg  general.msg  param.msg  rescue.msg  snake.msg

/tftpboot/linux-install/pxelinux.cfg:
AC19CAE7  default  pxeos.xml

--------------------------------pxelinux.cfg
file--------------------------------

default local
timeout 100
prompt 1
display msgs/boot.msg
F1 msgs/boot.msg
F2 msgs/general.msg
F3 msgs/expert.msg
F4 msgs/param.msg
F5 msgs/rescue.msg
F7 msgs/snake.msg

label local
  localboot 1

label 0
  localboot 1



label 1
  kernel /tftpboot/linux-install/fedora/vmlinuz
  append initrd=/tftpboot/linux-install/fedora/initrd.img ramdisk_size=13406
ks=/data/repository/local_repo/ks.cfg





22:08:07.770055 IP 192.168.56.1.ah-esp-encap > 192.168.56.101.tftp:  27 RRQ
"pxelinux.0" octet tsize 0
22:08:07.774665 IP 192.168.56.101.34440 > 192.168.56.1.ah-esp-encap: UDP,
length 19
22:08:07.780525 IP 192.168.56.1.acp-port > 192.168.56.101.tftp:  32 RRQ
"pxelinux.0" octet blksize 1456
22:08:07.784387 IP 192.168.56.101.41886 > 192.168.56.1.acp-port: UDP, length
19



Regards,
Ashish

Attachment: pxe-logs.rtf
Description: RTF file

_______________________________________________
To unsubscribe, email [email protected] with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to