免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 10217 | 回复: 21
打印 上一主题 下一主题

PXE安装CENTOS5出问题了,求教! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-17 11:07 |只看该作者 |倒序浏览
客户机能取到IP,取完IP之后从服务器的/tftpboot/pxelinux.cfg/目录下取配置文件时出错了,我贴一下相关的配置文件与日志,请大家指点一下,感激不尽!!!
/etc/dhcpd.conf
  1. ddns-update-style interim;
  2. ignore client-updates;
  3. allow booting;
  4. allow bootp;

  5. subnet 192.168.253.0 netmask 255.255.255.0 {

  6. # --- default gateway
  7.         option routers                  192.168.253.254;
  8.         option subnet-mask              255.255.255.0;

  9. #       option nis-domain               "domain.org";
  10. #       option domain-name              "domain.org";
  11. #       option domain-name-servers      192.168.1.1;

  12.         option time-offset              -18000; # Eastern Standard Time
  13. #       option ntp-servers              192.168.1.1;
  14. #       option netbios-name-servers     192.168.1.1;
  15. # --- Selects point-to-point node (default is hybrid). Don't change this unless
  16. # -- you understand Netbios very well
  17. #       option netbios-node-type 2;

  18.         range dynamic-bootp 192.168.253.100 192.168.253.149;
  19.         default-lease-time 21600;
  20.         max-lease-time 43200;
  21. #       option root-path "nfs:/tftp";
  22.         filename "/tftpboot/pxelinux.0";
  23.         # we want the nameserver to appear at a fixed address
  24. #       host ns {
  25. #               next-server marvin.redhat.com;
  26. #               hardware ethernet 12:34:56:78:AB:CD;
  27. #               fixed-address 207.175.42.254;
  28. #       }
  29. }
复制代码

/etc/xinetd.d/tftp
  1. # default: off
  2. # description: The tftp server serves files using the trivial file transfer \
  3. #       protocol.  The tftp protocol is often used to boot diskless \
  4. #       workstations, download configuration files to network-aware printers, \
  5. #       and to start the installation process for some operating systems.
  6. service tftp
  7. {
  8.         socket_type             = dgram
  9.         protocol                = udp
  10.         wait                    = yes
  11.         user                    = root
  12.         server                  = /usr/sbin/in.tftpd
  13.         server_args             = -u nobody /tftpboot
  14.         disable                 = no
  15.         per_source              = 11
  16.         cps                     = 100 2
  17.         flags                   = IPv4
  18. }
复制代码

/tftpboot下的文件、目录列表
  1. [root@PXE ~]# cd /tftpboot/
  2. [root@PXE tftpboot]# ll
  3. 总计 6592
  4. -rw-rw-rw- 1 root root     292 07-16 13:40 boot.msg
  5. -rw-rw-rw- 1 root root     919 07-16 13:40 general.msg
  6. -rw-rw-rw- 1 root root 4916737 07-16 13:39 initrd.img
  7. -rw-rw-rw- 1 root root    1019 07-17 17:10 ks.cfg
  8. -rw-rw-rw- 1 root root     817 07-16 13:40 options.msg
  9. -rw-rw-rw- 1 root root     517 07-16 13:40 param.msg
  10. -rw-rw-rw- 1 root root   13148 07-16 14:21 pxelinux.0
  11. drwxrwxrwx 2 root root    4096 07-17 17:09 pxelinux.cfg
  12. -rw-rw-rw- 1 root root     490 07-16 13:40 rescue.msg
  13. -rw-rw-rw- 1 root root 1765428 07-16 13:39 vmlinuz
  14. ——————————————————————————————————————
  15. [root@PXE tftpboot]# ll pxelinux.cfg/
  16. 总计 16
  17. -rw-r--r-- 1 root root 613 07-16 15:59 192.168.253.149
  18. -rw-r--r-- 1 root root 553 07-16 16:28 C0A8FD95
  19. -rw-r--r-- 1 root root 553 07-16 16:29 default
  20. -rw-rw-rw- 1 root root 794 07-16 13:52 default.bak
复制代码

/tftpboot/pxelinux.cfg/default配置文件的内容(C0A8FD95这个文件的内容跟default是一样的,cp了一下)
  1. [root@PXE pxelinux.cfg]# cat default
  2. default linux
  3. prompt 1
  4. timeout 600
  5. display boot.img
  6. F1 boot.msg
  7. F2 options.msg
  8. F3 general.msg
  9. F4 param.msg
  10. F5 rescue.msg
  11. F7 snake.msg
  12. label linux
  13.   kernel vmlinuz
  14.         append initrd=initrd.img ramdisk_size=8192
  15. label text
  16.         kernel vmlinuz
  17.         append initrd=initrd.img text ramdisk_size=8192
  18. label expert
  19.         kernel vmlinuz
  20.         append expert initrd=initrd.img ramdisk_size=8192
  21. label ks
  22.         kernel vmlinuz
  23.         append ks=nfs://192.168.253.252/tftpboot/ks.cfg initrd=initrd.img ramdisk_size=8192
  24. label lowres
  25.         kernel vmlinuz
  26.         append initrd=initrd.img lowres ramdisk_size=8192
复制代码

/tftpboot/ks.cfg的配置内容
  1. # Kickstart file automatically generated by anaconda.

  2. #cdrom
  3. lang zh_CN.UTF-8
  4. keyboard us
  5. network --device eth0 --bootproto dhcp
  6. #network --device eth1 --onboot no --bootproto dhcp
  7. rootpw centos
  8. firewall --disabled
  9. authconfig --enableshadow --enablemd5
  10. selinux --disabled
  11. timezone Asia/Shanghai
  12. bootloader
  13. install
  14. url --url [url]http://192.168.253.252/var/nfs[/url]
  15. # The following is the partition information you requested
  16. # Note that any partitions you deleted are not expressed
  17. # here so unless you clear all partitions first, this is
  18. # not guaranteed to work
  19. clearpart --all --drives=hda
  20. part /boot --fstype ext3 --size=100 --ondisk=sda
  21. part pv.12 --size=0 --grow --ondisk=sda
  22. volgroup VolGroup00 --pesize=32768 pv.12
  23. logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=512 --grow --maxsize=1024
  24. logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow

  25. %packages
  26. @admin-tools
  27. @ftp-server
  28. @web-server
  29. @server-cfg
  30. @legacy-software-support
  31. @system-tools
  32. grub
  33. e2fsprogs
  34. kernel
  35. lvm2
  36. %post
复制代码

/etc/exports(NFS)配置内容
  1. /var/nfs *(rw)
  2. /tftpboot *(rw)
复制代码

论坛徽章:
0
2 [报告]
发表于 2007-07-17 11:11 |只看该作者
把tftp的根搬到/var/lib/tftpboot看看。

论坛徽章:
0
3 [报告]
发表于 2007-07-17 11:35 |只看该作者
/var/log/messages里的相关日志
  1. [root@PXE tftp]# cat /var/log/messages
  2. Jul 17 19:32:49 PXE dhcpd: DHCPDISCOVER from 00:e0:81:33:b5:57 via eth0
  3. Jul 17 19:32:50 PXE dhcpd: DHCPOFFER on 192.168.253.149 to 00:e0:81:33:b5:57 via eth0
  4. Jul 17 19:32:51 PXE dhcpd: DHCPREQUEST for 192.168.253.149 (192.168.253.252) from 00:e0:81:33:b5:57 via eth0
  5. Jul 17 19:32:51 PXE dhcpd: DHCPACK on 192.168.253.149 to 00:e0:81:33:b5:57 via eth0
  6. Jul 17 19:32:51 PXE xinetd[9147]: START: tftp pid=9151 from=192.168.253.149
  7. Jul 17 19:32:51 PXE in.tftpd[9152]: tftp: client does not accept options
复制代码

客户机不接受选项???

tcpdump抓包的相关纪录……长!
  1. [root@PXE xinetd.d]# tcpdump host 192.168.253.149
  2. tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
  3. listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
  4. 18:39:44.042907 IP 192.168.253.149.57107 > 0.0.0.0.tftp:  49 RRQ "/tftpboot/linux.com" octet tsize 0 blksize 1440
  5. 18:40:03.408024 arp who-has 192.168.253.149 tell 192.168.253.252
  6. 18:40:04.407715 arp who-has 192.168.253.149 tell 192.168.253.252
  7. 18:40:05.407406 arp who-has 192.168.253.149 tell 192.168.253.252
  8. 18:40:05.416260 arp who-has 192.168.253.252 tell 192.168.253.149
  9. 18:40:05.416301 IP 192.168.253.252 > 192.168.253.149: ICMP echo request, id 12480, seq 0, length 28
  10. 18:40:05.416312 arp reply 192.168.253.252 is-at 00:e0:81:20:00:16 (oui Unknown)
  11. 18:40:05.416447 IP 192.168.253.149.ah-esp-encap > 192.168.253.252.tftp:  37 RRQ "/tftpboot/pxelinux.0" octet tsize 0
  12. 18:40:05.423421 IP 192.168.253.252.32779 > 192.168.253.149.ah-esp-encap: UDP, length 14
  13. 18:40:05.423550 IP 192.168.253.149.ah-esp-encap > 192.168.253.252.32779: UDP, length 17
  14. 18:40:05.424752 IP 192.168.253.149.acp-port > 192.168.253.252.tftp:  42 RRQ "/tftpboot/pxelinux.0" octet blksize 1456
  15. 18:40:05.426296 IP 192.168.253.252.32779 > 192.168.253.149.acp-port: UDP, length 15
  16. 18:40:05.427502 IP 192.168.253.149.acp-port > 192.168.253.252.32779: UDP, length 4
  17. 18:40:05.428207 IP 192.168.253.252.32779 > 192.168.253.149.acp-port: UDP, length 1460
  18. 18:40:05.429739 IP 192.168.253.149.acp-port > 192.168.253.252.32779: UDP, length 4
  19. 18:40:05.430022 IP 192.168.253.252.32779 > 192.168.253.149.acp-port: UDP, length 1460
  20. 18:40:05.431556 IP 192.168.253.149.acp-port > 192.168.253.252.32779: UDP, length 4
  21. 18:40:05.431719 IP 192.168.253.252.32779 > 192.168.253.149.acp-port: UDP, length 1460
  22. 18:40:05.433240 IP 192.168.253.149.acp-port > 192.168.253.252.32779: UDP, length 4
  23. 18:40:05.433406 IP 192.168.253.252.32779 > 192.168.253.149.acp-port: UDP, length 1460
  24. 18:40:05.434939 IP 192.168.253.149.acp-port > 192.168.253.252.32779: UDP, length 4
  25. 18:40:05.435096 IP 192.168.253.252.32779 > 192.168.253.149.acp-port: UDP, length 1460
  26. 18:40:05.436629 IP 192.168.253.149.acp-port > 192.168.253.252.32779: UDP, length 4
  27. 18:40:05.436792 IP 192.168.253.252.32779 > 192.168.253.149.acp-port: UDP, length 1460
  28. 18:40:05.438324 IP 192.168.253.149.acp-port > 192.168.253.252.32779: UDP, length 4
  29. 18:40:05.438484 IP 192.168.253.252.32779 > 192.168.253.149.acp-port: UDP, length 1460
  30. 18:40:05.440004 IP 192.168.253.149.acp-port > 192.168.253.252.32779: UDP, length 4
  31. 18:40:05.440161 IP 192.168.253.252.32779 > 192.168.253.149.acp-port: UDP, length 1460
  32. 18:40:05.441693 IP 192.168.253.149.acp-port > 192.168.253.252.32779: UDP, length 4
  33. 18:40:05.441849 IP 192.168.253.252.32779 > 192.168.253.149.acp-port: UDP, length 1460
  34. 18:40:05.443381 IP 192.168.253.149.acp-port > 192.168.253.252.32779: UDP, length 4
  35. 18:40:05.443536 IP 192.168.253.252.32779 > 192.168.253.149.acp-port: UDP, length 48
  36. 18:40:05.443637 IP 192.168.253.149.acp-port > 192.168.253.252.32779: UDP, length 4
  37. 18:40:05.485904 IP 192.168.253.149.57089 > 0.0.0.0.tftp:  73 RRQ "/tftpboot/pxelinux.cfg/01-00-e0-81-33-b5-57" octet ts
  38. 18:40:06.133928 IP 192.168.253.149.57089 > 0.0.0.0.tftp:  73 RRQ "/tftpboot/pxelinux.cfg/01-00-e0-81-33-b5-57" octet ts
  39. 18:40:07.444060 IP 192.168.253.149.57089 > 0.0.0.0.tftp:  73 RRQ "/tftpboot/pxelinux.cfg/01-00-e0-81-33-b5-57" octet ts
  40. 18:40:10.088404 IP 192.168.253.149.57089 > 0.0.0.0.tftp:  73 RRQ "/tftpboot/pxelinux.cfg/01-00-e0-81-33-b5-57" octet ts
  41. 18:40:10.414873 arp who-has 192.168.253.149 tell 192.168.253.252
  42. 18:40:10.416050 arp reply 192.168.253.149 is-at 00:e0:81:33:b5:57 (oui Unknown)
  43. 18:40:15.354160 IP 192.168.253.149.57089 > 0.0.0.0.tftp:  73 RRQ "/tftpboot/pxelinux.cfg/01-00-e0-81-33-b5-57" octet ts
  44. 18:40:25.894579 IP 192.168.253.149.57089 > 0.0.0.0.tftp:  73 RRQ "/tftpboot/pxelinux.cfg/01-00-e0-81-33-b5-57" octet ts
  45. 18:40:46.977323 IP 192.168.253.149.57090 > 0.0.0.0.tftp:  61 RRQ "/tftpboot/pxelinux.cfg/C0A8FD95" octet tsize 0 blksiz
  46. 18:40:47.647836 IP 192.168.253.149.57090 > 0.0.0.0.tftp:  61 RRQ "/tftpboot/pxelinux.cfg/C0A8FD95" octet tsize 0 blksiz
  47. 18:40:48.964791 IP 192.168.253.149.57090 > 0.0.0.0.tftp:  61 RRQ "/tftpboot/pxelinux.cfg/C0A8FD95" octet tsize 0 blksiz
  48. 18:40:51.599743 IP 192.168.253.149.57090 > 0.0.0.0.tftp:  61 RRQ "/tftpboot/pxelinux.cfg/C0A8FD95" octet tsize 0 blksiz
  49. 18:40:56.867041 IP 192.168.253.149.57090 > 0.0.0.0.tftp:  61 RRQ "/tftpboot/pxelinux.cfg/C0A8FD95" octet tsize 0 blksiz
  50. 18:41:07.416588 IP 192.168.253.149.57090 > 0.0.0.0.tftp:  61 RRQ "/tftpboot/pxelinux.cfg/C0A8FD95" octet tsize 0 blksiz
  51. 18:41:28.499974 IP 192.168.253.149.57091 > 0.0.0.0.tftp:  60 RRQ "/tftpboot/pxelinux.cfg/C0A8FD9" octet tsize 0 blksize
  52. 18:41:29.158482 IP 192.168.253.149.57091 > 0.0.0.0.tftp:  60 RRQ "/tftpboot/pxelinux.cfg/C0A8FD9" octet tsize 0 blksize
  53. 18:41:30.475450 IP 192.168.253.149.57091 > 0.0.0.0.tftp:  60 RRQ "/tftpboot/pxelinux.cfg/C0A8FD9" octet tsize 0 blksize
  54. 18:41:33.109401 IP 192.168.253.149.57091 > 0.0.0.0.tftp:  60 RRQ "/tftpboot/pxelinux.cfg/C0A8FD9" octet tsize 0 blksize
  55. 18:41:38.378877 IP 192.168.253.149.57091 > 0.0.0.0.tftp:  60 RRQ "/tftpboot/pxelinux.cfg/C0A8FD9" octet tsize 0 blksize
  56. 18:41:48.927551 IP 192.168.253.149.57091 > 0.0.0.0.tftp:  60 RRQ "/tftpboot/pxelinux.cfg/C0A8FD9" octet tsize 0 blksize
  57. 18:42:10.011206 IP 192.168.253.149.57092 > 0.0.0.0.tftp:  59 RRQ "/tftpboot/pxelinux.cfg/C0A8FD" octet tsize 0 blksize
  58. 18:42:10.670985 IP 192.168.253.149.57092 > 0.0.0.0.tftp:  59 RRQ "/tftpboot/pxelinux.cfg/C0A8FD" octet tsize 0 blksize
  59. 18:42:11.987978 IP 192.168.253.149.57092 > 0.0.0.0.tftp:  59 RRQ "/tftpboot/pxelinux.cfg/C0A8FD" octet tsize 0 blksize
  60. 18:42:14.621978 IP 192.168.253.149.57092 > 0.0.0.0.tftp:  59 RRQ "/tftpboot/pxelinux.cfg/C0A8FD" octet tsize 0 blksize
  61. 18:42:19.889013 IP 192.168.253.149.57092 > 0.0.0.0.tftp:  59 RRQ "/tftpboot/pxelinux.cfg/C0A8FD" octet tsize 0 blksize
  62. 18:42:30.438072 IP 192.168.253.149.57092 > 0.0.0.0.tftp:  59 RRQ "/tftpboot/pxelinux.cfg/C0A8FD" octet tsize 0 blksize
  63. 18:42:51.523563 IP 192.168.253.149.57093 > 0.0.0.0.tftp:  58 RRQ "/tftpboot/pxelinux.cfg/C0A8F" octet tsize 0 blksize 1
  64. 18:42:52.181241 IP 192.168.253.149.57093 > 0.0.0.0.tftp:  58 RRQ "/tftpboot/pxelinux.cfg/C0A8F" octet tsize 0 blksize 1
  65. 18:42:53.498470 IP 192.168.253.149.57093 > 0.0.0.0.tftp:  58 RRQ "/tftpboot/pxelinux.cfg/C0A8F" octet tsize 0 blksize 1
  66. 18:42:56.132633 IP 192.168.253.149.57093 > 0.0.0.0.tftp:  58 RRQ "/tftpboot/pxelinux.cfg/C0A8F" octet tsize 0 blksize 1
  67. 18:43:01.401738 IP 192.168.253.149.57093 > 0.0.0.0.tftp:  58 RRQ "/tftpboot/pxelinux.cfg/C0A8F" octet tsize 0 blksize 1
  68. 18:43:11.949400 IP 192.168.253.149.57093 > 0.0.0.0.tftp:  58 RRQ "/tftpboot/pxelinux.cfg/C0A8F" octet tsize 0 blksize 1
  69. 18:43:33.034095 IP 192.168.253.149.57094 > 0.0.0.0.tftp:  57 RRQ "/tftpboot/pxelinux.cfg/C0A8" octet tsize 0 blksize 14
  70. 18:43:33.691523 IP 192.168.253.149.57094 > 0.0.0.0.tftp:  57 RRQ "/tftpboot/pxelinux.cfg/C0A8" octet tsize 0 blksize 14
  71. 18:43:35.008985 IP 192.168.253.149.57094 > 0.0.0.0.tftp:  57 RRQ "/tftpboot/pxelinux.cfg/C0A8" octet tsize 0 blksize 14
  72. 18:43:37.642981 IP 192.168.253.149.57094 > 0.0.0.0.tftp:  57 RRQ "/tftpboot/pxelinux.cfg/C0A8" octet tsize 0 blksize 14
  73. 18:43:42.924394 IP 192.168.253.149.57094 > 0.0.0.0.tftp:  57 RRQ "/tftpboot/pxelinux.cfg/C0A8" octet tsize 0 blksize 14
  74. 18:43:53.460259 IP 192.168.253.149.57094 > 0.0.0.0.tftp:  57 RRQ "/tftpboot/pxelinux.cfg/C0A8" octet tsize 0 blksize 14
  75. 18:44:14.544096 IP 192.168.253.149.57095 > 0.0.0.0.tftp:  56 RRQ "/tftpboot/pxelinux.cfg/C0A" octet tsize 0 blksize 144
  76. 18:44:15.202577 IP 192.168.253.149.57095 > 0.0.0.0.tftp:  56 RRQ "/tftpboot/pxelinux.cfg/C0A" octet tsize 0 blksize 144
  77. 18:44:16.520811 IP 192.168.253.149.57095 > 0.0.0.0.tftp:  56 RRQ "/tftpboot/pxelinux.cfg/C0A" octet tsize 0 blksize 144
  78. 18:44:19.154314 IP 192.168.253.149.57095 > 0.0.0.0.tftp:  56 RRQ "/tftpboot/pxelinux.cfg/C0A" octet tsize 0 blksize 144
  79. 18:44:24.435704 IP 192.168.253.149.57095 > 0.0.0.0.tftp:  56 RRQ "/tftpboot/pxelinux.cfg/C0A" octet tsize 0 blksize 144
  80. 18:44:34.971440 IP 192.168.253.149.57095 > 0.0.0.0.tftp:  56 RRQ "/tftpboot/pxelinux.cfg/C0A" octet tsize 0 blksize 144
  81. 18:44:56.059517 IP 192.168.253.149.57096 > 0.0.0.0.tftp:  55 RRQ "/tftpboot/pxelinux.cfg/C0" octet tsize 0 blksize 1440
  82. 18:44:56.716971 IP 192.168.253.149.57096 > 0.0.0.0.tftp:  55 RRQ "/tftpboot/pxelinux.cfg/C0" octet tsize 0 blksize 1440
  83. 18:44:58.035052 IP 192.168.253.149.57096 > 0.0.0.0.tftp:  55 RRQ "/tftpboot/pxelinux.cfg/C0" octet tsize 0 blksize 1440
  84. 18:45:00.669527 IP 192.168.253.149.57096 > 0.0.0.0.tftp:  55 RRQ "/tftpboot/pxelinux.cfg/C0" octet tsize 0 blksize 1440
  85. 18:45:05.949691 IP 192.168.253.149.57096 > 0.0.0.0.tftp:  55 RRQ "/tftpboot/pxelinux.cfg/C0" octet tsize 0 blksize 1440
  86. 18:45:16.486258 IP 192.168.253.149.57096 > 0.0.0.0.tftp:  55 RRQ "/tftpboot/pxelinux.cfg/C0" octet tsize 0 blksize 1440
  87. 18:45:37.573237 IP 192.168.253.149.57097 > 0.0.0.0.tftp:  54 RRQ "/tftpboot/pxelinux.cfg/C" octet tsize 0 blksize 1440
  88. 18:45:38.231730 IP 192.168.253.149.57097 > 0.0.0.0.tftp:  54 RRQ "/tftpboot/pxelinux.cfg/C" octet tsize 0 blksize 1440
  89. 18:45:39.549763 IP 192.168.253.149.57097 > 0.0.0.0.tftp:  54 RRQ "/tftpboot/pxelinux.cfg/C" octet tsize 0 blksize 1440
  90. 18:45:42.182656 IP 192.168.253.149.57097 > 0.0.0.0.tftp:  54 RRQ "/tftpboot/pxelinux.cfg/C" octet tsize 0 blksize 1440
  91. 18:45:47.464018 IP 192.168.253.149.57097 > 0.0.0.0.tftp:  54 RRQ "/tftpboot/pxelinux.cfg/C" octet tsize 0 blksize 1440
  92. 18:45:57.999123 IP 192.168.253.149.57097 > 0.0.0.0.tftp:  54 RRQ "/tftpboot/pxelinux.cfg/C" octet tsize 0 blksize 1440
  93. 18:46:19.087225 IP 192.168.253.149.57098 > 0.0.0.0.tftp:  60 RRQ "/tftpboot/pxelinux.cfg/default" octet tsize 0 blksize
  94. 18:46:19.744629 IP 192.168.253.149.57098 > 0.0.0.0.tftp:  60 RRQ "/tftpboot/pxelinux.cfg/default" octet tsize 0 blksize
  95. 18:46:21.061688 IP 192.168.253.149.57098 > 0.0.0.0.tftp:  60 RRQ "/tftpboot/pxelinux.cfg/default" octet tsize 0 blksize
  96. 18:46:23.695717 IP 192.168.253.149.57098 > 0.0.0.0.tftp:  60 RRQ "/tftpboot/pxelinux.cfg/default" octet tsize 0 blksize
  97. 18:46:28.975910 IP 192.168.253.149.57098 > 0.0.0.0.tftp:  60 RRQ "/tftpboot/pxelinux.cfg/default" octet tsize 0 blksize
  98. 18:46:39.512972 IP 192.168.253.149.57098 > 0.0.0.0.tftp:  60 RRQ "/tftpboot/pxelinux.cfg/default" octet tsize 0 blksize
  99. 18:47:00.599020 IP 192.168.253.149.57099 > 0.0.0.0.tftp:  45 RRQ "/tftpboot/linux" octet tsize 0 blksize 1440
  100. 18:47:01.257525 IP 192.168.253.149.57099 > 0.0.0.0.tftp:  45 RRQ "/tftpboot/linux" octet tsize 0 blksize 1440
  101. 18:47:02.574523 IP 192.168.253.149.57099 > 0.0.0.0.tftp:  45 RRQ "/tftpboot/linux" octet tsize 0 blksize 1440
  102. 18:47:05.208445 IP 192.168.253.149.57099 > 0.0.0.0.tftp:  45 RRQ "/tftpboot/linux" octet tsize 0 blksize 1440
  103. 18:47:10.488267 IP 192.168.253.149.57099 > 0.0.0.0.tftp:  45 RRQ "/tftpboot/linux" octet tsize 0 blksize 1440
  104. 18:47:21.023142 IP 192.168.253.149.57099 > 0.0.0.0.tftp:  45 RRQ "/tftpboot/linux" octet tsize 0 blksize 1440
  105. 18:47:42.106908 IP 192.168.253.149.57100 > 0.0.0.0.tftp:  49 RRQ "/tftpboot/linux.cbt" octet tsize 0 blksize 1440
  106. 18:47:42.765384 IP 192.168.253.149.57100 > 0.0.0.0.tftp:  49 RRQ "/tftpboot/linux.cbt" octet tsize 0 blksize 1440
  107. 18:47:44.095434 IP 192.168.253.149.57100 > 0.0.0.0.tftp:  49 RRQ "/tftpboot/linux.cbt" octet tsize 0 blksize 1440
  108. 18:47:46.728344 IP 192.168.253.149.57100 > 0.0.0.0.tftp:  49 RRQ "/tftpboot/linux.cbt" octet tsize 0 blksize 1440
  109. 18:47:51.997399 IP 192.168.253.149.57100 > 0.0.0.0.tftp:  49 RRQ "/tftpboot/linux.cbt" octet tsize 0 blksize 1440
  110. 18:48:02.544385 IP 192.168.253.149.57100 > 0.0.0.0.tftp:  49 RRQ "/tftpboot/linux.cbt" octet tsize 0 blksize 1440
  111. 18:48:23.627786 IP 192.168.253.149.57101 > 0.0.0.0.tftp:  47 RRQ "/tftpboot/linux.0" octet tsize 0 blksize 1440
  112. 18:48:24.286278 IP 192.168.253.149.57101 > 0.0.0.0.tftp:  47 RRQ "/tftpboot/linux.0" octet tsize 0 blksize 1440
  113. 18:48:25.603243 IP 192.168.253.149.57101 > 0.0.0.0.tftp:  47 RRQ "/tftpboot/linux.0" octet tsize 0 blksize 1440
  114. 18:48:28.237171 IP 192.168.253.149.57101 > 0.0.0.0.tftp:  47 RRQ "/tftpboot/linux.0" octet tsize 0 blksize 1440
  115. 18:48:33.506072 IP 192.168.253.149.57101 > 0.0.0.0.tftp:  47 RRQ "/tftpboot/linux.0" octet tsize 0 blksize 1440
  116. 18:48:44.052583 IP 192.168.253.149.57101 > 0.0.0.0.tftp:  47 RRQ "/tftpboot/linux.0" octet tsize 0 blksize 1440
  117. 18:49:05.135920 IP 192.168.253.149.57102 > 0.0.0.0.tftp:  49 RRQ "/tftpboot/linux.com" octet tsize 0 blksize 1440
  118. 18:49:05.795468 IP 192.168.253.149.57102 > 0.0.0.0.tftp:  49 RRQ "/tftpboot/linux.com" octet tsize 0 blksize 1440
  119. 18:49:07.112471 IP 192.168.253.149.57102 > 0.0.0.0.tftp:  49 RRQ "/tftpboot/linux.com" octet tsize 0 blksize 1440
  120. 18:49:09.746375 IP 192.168.253.149.57102 > 0.0.0.0.tftp:  49 RRQ "/tftpboot/linux.com" octet tsize 0 blksize 1440
  121. 18:49:15.026164 IP 192.168.253.149.57102 > 0.0.0.0.tftp:  49 RRQ "/tftpboot/linux.com" octet tsize 0 blksize 1440
  122. 18:49:25.561613 IP 192.168.253.149.57102 > 0.0.0.0.tftp:  49 RRQ "/tftpboot/linux.com" octet tsize 0 blksize 1440
  123. 18:49:46.657072 IP 192.168.253.149.57103 > 0.0.0.0.tftp:  49 RRQ "/tftpboot/linux.c32" octet tsize 0 blksize 1440
  124. 18:49:47.314484 IP 192.168.253.149.57103 > 0.0.0.0.tftp:  49 RRQ "/tftpboot/linux.c32" octet tsize 0 blksize 1440
  125. 18:49:48.632498 IP 192.168.253.149.57103 > 0.0.0.0.tftp:  49 RRQ "/tftpboot/linux.c32" octet tsize 0 blksize 1440
  126. 18:49:51.265318 IP 192.168.253.149.57103 > 0.0.0.0.tftp:  49 RRQ "/tftpboot/linux.c32" octet tsize 0 blksize 1440
  127. 18:49:56.533124 IP 192.168.253.149.57103 > 0.0.0.0.tftp:  49 RRQ "/tftpboot/linux.c32" octet tsize 0 blksize 1440
  128. 18:50:07.080903 IP 192.168.253.149.57103 > 0.0.0.0.tftp:  49 RRQ "/tftpboot/linux.c32" octet tsize 0 blksize 1440

  129. 125 packets captured
  130. 250 packets received by filter
  131. 0 packets dropped by kernel
复制代码


占用版面实在不好意思,只是这问题搞不定闹心得很,请大家帮帮忙,谢谢!!!

论坛徽章:
0
4 [报告]
发表于 2007-07-17 11:41 |只看该作者
原帖由 phpman 于 2007-7-17 11:11 发表
把tftp的根搬到/var/lib/tftpboot看看。

谢谢你的回复。
我把dhcpd.conf里filename选项内容改为"/var/lib/tftpboot/pxelinux.0"、/etc/xinetd.d/tftp中server_args改为 -u nobody /var/lib/tftpboot,然后重启了dhcpd与xinetd两个服务,去客户机重启尝试,结果与前面是一样的:在取pxelinux.cfg/default无果(没有任何找到或没找到的提示)之后出现找不到内核的提示,随后是
  1. boot:
复制代码
的提示符。

论坛徽章:
0
5 [报告]
发表于 2007-07-17 12:07 |只看该作者
排错的时候要分开处理。
1.客户机能拿到正确的ip地址么 ?
2.tftp能正常工作么,如果能,下载个文件试试看.
3.客户机能引导么,如果能,不用kickstart 能安装么
4.试验kickstart 安装。

LZ贴出一大堆信息,能耐心看完的又有几个呢?

论坛徽章:
0
6 [报告]
发表于 2007-07-17 12:24 |只看该作者
我也在为PXE烦恼呢看了你PXE的帖子想想你的那个/usr/lib/syslinux/pexlinux.0文件是哪找到的为什么我的系统上没有的。。。请指教呀。。。谢谢!!!

论坛徽章:
0
7 [报告]
发表于 2007-07-17 12:50 |只看该作者
原帖由 maluyao 于 2007-7-17 12:07 发表
排错的时候要分开处理。
1.客户机能拿到正确的ip地址么 ?
2.tftp能正常工作么,如果能,下载个文件试试看.
3.客户机能引导么,如果能,不用kickstart 能安装么
4.试验kickstart 安装。

LZ贴出一大堆信息 ...

多谢指点!!!
1、客户机能取到正确的IP;
2、……不晓得如何验证TFTP,以前也没用过,能麻烦您推荐一个TFTP客户端程序以供验证么?
3和4就表看了,2过了才能到这两步吧。

谢谢!!!

论坛徽章:
0
8 [报告]
发表于 2007-07-17 12:52 |只看该作者
原帖由 wuguang1023 于 2007-7-17 12:24 发表
我也在为PXE烦恼呢看了你PXE的帖子想想你的那个/usr/lib/syslinux/pexlinux.0文件是哪找到的为什么我的系统上没有的。。。请指教呀。。。谢谢!!!

兄弟,我也是泥菩萨……- -!!
  1. [root@PXE /]# find /usr/ -iname 'pxelinux*'
  2. /usr/share/doc/syslinux-3.11/pxelinux.doc
  3. /usr/lib/syslinux/pxelinux.0
复制代码

发行版是CENTOS 5,希望对你能有用。

论坛徽章:
1
白银圣斗士
日期:2015-11-23 08:33:04
9 [报告]
发表于 2007-07-17 13:21 |只看该作者
BIg CAT

论坛徽章:
1
白银圣斗士
日期:2015-11-23 08:33:04
10 [报告]
发表于 2007-07-17 13:25 |只看该作者
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP