Jump to content
Sign in to follow this  
handler

tftp-сервер

Recommended Posts

Здравствуйте!

SuSE 11.2 tftp - все из коробки

/etc/xinetd.d/tftp

service tftp

{

socket_type = dgram

protocol = udp

wait = yes

flags = IPv6 IPv4

user = root

server = /usr/sbin/in.tftpd

server_args = -s /tftpboot/dsl

disable = no

}

/tftpboot/dsl - содержит все файлы для РХЕ-загрузки

service xinetd restart

netstat -a|grep ftp

tcp 0 0 *:ftp *:* LISTEN

tcp 0 0 *:ftp *:* LISTEN

udp 0 0 *:tftp *:*

dhcpd.conf

ddns-update-style none;

authoritative;

option domain-name-servers 192.168.0.20;

allow bootp;

allow booting;

subnet 192.168.0.0 netmask 255.255.255.0 {

option routers 192.168.0.21;

group {

next-server 192.168.0.21;

filename "pxelinux.0";

host comp01 {

hardware ethernet 00:13:d4:42:34:51;

fixed-address 192.168.0.1;

}

}

}

Далее запускаем машину с адресом 192.168.0.1.

Она получает адрес а от тфтп-сервера ответа нет

tcpdump -i eth1 -vvv host 192.168.0.1

10:11:14.192546 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has linux.kkkt.com tell 192.168.0.1, length 46

10:11:14.192579 ARP, Ethernet (len 6), IPv4 (len 4), Reply linux.kkkt.com is-at 00:0e:2e:d8:fa:7c (oui Unknown), length 28

10:11:14.192646 IP (tos 0x0, ttl 20, id 3, offset 0, flags [none], proto UDP (17), length 55)

192.168.0.1.ah-esp-encap > linux.kkkt.com.tftp: [udp sum ok] 27 RRQ "pxelinux.0" octet tsize 0

10:11:16.219260 IP (tos 0x0, ttl 20, id 4, offset 0, flags [none], proto UDP (17), length 55)

192.168.0.1.acp-port > linux.kkkt.com.tftp: [udp sum ok] 27 RRQ "pxelinux.0" octet tsize 0

10:11:20.228913 IP (tos 0x0, ttl 20, id 5, offset 0, flags [none], proto UDP (17), length 55)

192.168.0.1.msync > linux.kkkt.com.tftp: [udp sum ok] 27 RRQ "pxelinux.0" octet tsize 0

10:11:26.215914 IP (tos 0x0, ttl 20, id 6, offset 0, flags [none], proto UDP (17), length 55)

192.168.0.1.gxs-data-port > linux.kkkt.com.tftp: [udp sum ok] 27 RRQ "pxelinux.0" octet tsize 0

10:11:34.180290 IP (tos 0x0, ttl 20, id 7, offset 0, flags [none], proto UDP (17), length 55)

192.168.0.1.vrtl-vmf-sa > linux.kkkt.com.tftp: [udp sum ok] 27 RRQ "pxelinux.0" octet tsize 0

10:11:44.125492 IP (tos 0x0, ttl 20, id 8, offset 0, flags [none], proto UDP (17), length 60)

192.168.0.1.newlixengine > linux.kkkt.com.tftp: [udp sum ok] 32 RRQ "pxelinux.0" octet blksize 1456

10:12:20.153961 IP (tos 0x0, ttl 20, id 9, offset 0, flags [none], proto UDP (17), length 60)

192.168.0.1.newlixconfig > linux.kkkt.com.tftp: [udp sum ok] 32 RRQ "pxelinux.0" octet blksize 1456

10:13:32.162897 IP (tos 0x0, ttl 20, id 10, offset 0, flags [none], proto UDP (17), length 60)

192.168.0.1.tsrmagt > linux.kkkt.com.tftp: [udp sum ok] 32 RRQ "pxelinux.0" octet blksize 1456

10:15:20.148830 IP (tos 0x0, ttl 20, id 11, offset 0, flags [none], proto UDP (17), length 60)

192.168.0.1.tpcsrvr > linux.kkkt.com.tftp: [udp sum ok] 32 RRQ "pxelinux.0" octet blksize 1456

10:17:44.111789 IP (tos 0x0, ttl 20, id 12, offset 0, flags [none], proto UDP (17), length 60)

192.168.0.1.idware-router > linux.kkkt.com.tftp: [udp sum ok] 32 RRQ "pxelinux.0" octet blksize 1456

10:21:32.322331 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.0.1 tell 192.168.0.1, length 46

10:21:33.311140 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.0.1 tell 192.168.0.1, length 46

10:21:34.311151 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.0.1 tell 192.168.0.1, length 46

10:22:00.877863 IP (tos 0x0, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 96)

Share this post


Link to post
Share on other sites

Алексей писал(а) Fri, 05 March 2010 09:20

Далее запускаем машину с адресом 192.168.0.1.

Она получает адрес а от тфтп-сервера ответа нет

tcpdump -i eth1 -vvv host 192.168.0.1

1. Может, прежде pxe имеет смысл проверить работу сервера с обычного tftp клиента?

2. Для PXE чаще используют tftpd-hpa сервер. Во всяком случае, у меня с ним проблем не было.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...