I want to setup PXE boot using tftp. Well, TFTP never worked. There are two computer connected by a switch. DHCP seems to be working fine. I used 192.168.0.0/24 net. Server has IP 192.168.0.254 and client has IP of 192.168.0.10. I was constantly getting TFTP TIMEOUT error message. I started looking at /var/log/messages and found the following:
Sep 9 18:24:59 localhost in.tftpd: tftpd: read(ack): No route to host
Sep 9 18:25:04 localhost in.tftpd: tftpd: read(ack): No route to host
I added the following route
route -add 192.168.0.0 netmask 255.255.255.0 gw 192.168.0.10
Noting works for me
Here is the routing table.
[root@localhost ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 192.168.0.10 255.255.255.0 UG 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
What do I need to do? I thought that if you were in the same subnet you didn't need a gateway. What am I not thinking right?