linux tftp server problem | docsis.org

You are here

linux tftp server problem

4 posts / 0 new
Last post
motyw
linux tftp server problem

Hey
i have a problem tftp server / modem or ....

i have linux router
i installed dhcp server + tftp server for modem
modem dont get filename ( config file name )
in log i see only:

Oct 27 08:11:02 a-router dhcpd[16298]: DHCPDISCOVER from 80:c6:ab:a7:c9:c2 via enp5s0.140
Oct 27 08:11:02 a-router dhcpd[16298]: DHCPOFFER on 10.240.152.100 to 80:c6:ab:a7:c9:c2 via enp5s0.140
Oct 27 08:11:04 a-router dhcpd[16298]: DHCPREQUEST for 10.240.152.100 (172.16.2.4) from 80:c6:ab:a7:c9:c2 via enp5s0.140
Oct 27 08:11:04 a-router dhcpd[16298]: DHCPACK on 10.240.152.100 to 80:c6:ab:a7:c9:c2 via enp5s0.140

modem status:
D3(config)#show cable modem 10.240.152.100
MacAddress 80:c6:ab:a7:c9:c2
IpAddress 10.240.152.100
Primary SID 1
Version v1.0
Mac Status RNG(OK)

config dhcp:
dhcpd.conf

ddns-update-style none;
authoritative;
option option-122 code 122 = string;
server-identifier 172.16.2.4;
subnet 172.16.2.0 netmask 255.255.255.248 { }
option time-servers 1172.16.2.4;
next-server 172.16.2.4;
option log-servers 172.16.2.4;
include "/etc/dhcp/lms/d3.conf";

/etc/dhcp/lms/d3.conf:

shared-network d3 {
include "/etc/dhcp/mod-d3.conf";
}

mode-d3.conf:

subnet 10.240.152.0 netmask 255.255.252.0 {
default-lease-time 86400;
max-lease-time 86400;
option subnet-mask 255.255.252.0;
option routers 10.240.152.1;
option domain-name "d3.a";
option domain-name-servers 172.16.2.4;
option time-servers 172.16.2.4;
option log-servers 172.16.2.4;
next-server 172.16.2.4;
host thomson-test { hardware ethernet 80:c6:ab:a7:c9:c2; fixed-address 10.240.152.100; filename "/tftpboot/fast_30_tho_8.cm";}
}


cat /etc/xinetd.d/tftp:

service tftp

{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}

tcpdump

08:22:17.499064 IP 172.16.2.4.67 > 10.240.152.100.68: BOOTP/DHCP, Reply, length 354
08:22:19.506493 IP 172.16.2.4.67 > 10.240.152.100.68: BOOTP/DHCP, Reply, length 354
08:22:19.525983 ARP, Request who-has 10.240.152.100 tell 10.240.152.100, length 46
08:22:19.623495 ARP, Request who-has 10.240.152.1 tell 10.240.152.100, length 46
08:22:19.623503 ARP, Reply 10.240.152.1 is-at 00:21:5a:cb:d5:9a, length 28
08:22:19.633492 IP 10.240.152.100.1905 > 172.16.2.4.37: UDP, length 0
08:22:19.918535 IP 10.240.152.100.1906 > 172.16.2.4.69: 35 RRQ "/tftpboot/fast_30_cis_8.cm" octet
08:22:19.920695 IP 172.16.2.4.39800 > 10.240.152.100.1906: UDP, length 19

what i do wrong?

kwesibrunee
Likely it is the path to file

Likely it is the path to file in question

host thomson-test { hardware ethernet 80:c6:ab:a7:c9:c2; fixed-address 10.240.152.100; filename "/tftpboot/fast_30_tho_8.cm";}

This line assumes that in the TFTP server directory, typically /tftpboot/ you have a folder called tftpboot which contains a file called fast_30_tho_8.cm

I suspect that is not the case

change this line

host thomson-test { hardware ethernet 80:c6:ab:a7:c9:c2; fixed-address 10.240.152.100; filename "/tftpboot/fast_30_tho_8.cm";}

to
host thomson-test { hardware ethernet 80:c6:ab:a7:c9:c2; fixed-address 10.240.152.100; filename "fast_30_tho_8.cm";}

motyw
Hi,

Hi,
it also did not help the effect unchanged :(

kamien
TFTP Test

Have you tested it with a TFTP client on a PC? From your 10.240.152.0 subnet, if you connect a PC you should be able to download the config file with a TFTP client. If that doesn't work, could be a firewall (allow udp/69) or TFTP issue. Could also be a file permissions issue - make sure you set SELinux args if you're using RHEL/CentOS.

Log in or register to post comments