免费注册 查看新帖 |

Chinaunix

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

关于dhcp 客户端指定server地址获取ip的困惑 急!!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-10 11:36 |只看该作者 |倒序浏览
大家好:\r\n         我现在遇到的问题是:dhcp client 测试机和dhcp server 直连\r\n                                \r\n                             client 采用默认的广播发送包,我在dhcp server 可以侦听到包\r\n                             而且可以获取其地址池中的ip,\r\n         而使用:dhclient eth1 -s  10.3.3.1  指定server地址后,却没有侦听到包,  为什么呢?\r\n  \r\n         这个是指定server地址之后的检查到的client 发出来的包       \r\n          18:26:22.005350 00:d0:68:03:dc:6d > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 342: (tos 0x10, ttl  16, id 0, offset 0, flags [none], proto: UDP (17), length: 32 0.0.0.0.68 > 10.3.3.1.67: BOOTP/DHCP, Request from 00:d0:68:03:dc:6d, length: 300, xid:0xa234f115, secs:7, flags: [none] (0x0000)\r\n          Client Ethernet Address: 00:d0:68:03:dc:6d [|bootp]\r\n        0x0000:  4510 0148 0000 0000 1011 9c92 0000 0000  E..H............\r\n        0x0010:  0a03 0301 0044 0043 0134 e4eb 0101 0600  .....D.C.4......\r\n        0x0020:  a234 f115 0007 0000 0000 0000 0000 0000  .4..............\r\n        0x0030:  0000 0000 0000 0000 00d0 6803 dc6d 0000  ..........h..m..\r\n        0x0040:  0000 0000 0000 0000 0000 0000 0000 0000  ................\r\n        0x0050:  0000  \r\n\r\n下面加上参数后,变成“Network is unreachable”\r\n[root@hawk sbin]# ./dhcpclient eth1 -s 10.3.3.1\r\nInternet Systems Consortium DHCP Client V3.0.4\r\nCopyright 2004-2006 Internet Systems Consortium.\r\nAll rights reserved.\r\nFor info, please visit http://www.isc.org/sw/dhcp/\r\n\r\n/sbin/dhclient-script: line 74: source_config: command not found\r\n/sbin/dhclient-script: line 1: uname: command not found\r\n/sbin/dhclient-script: line 1: expr: command not found\r\n/sbin/dhclient-script: line 1: sed: command not found\r\n/sbin/dhclient-script: line 1: sed: command not found\r\n/sbin/dhclient-script: line 107: [: -lt: unary operator expected\r\n/sbin/dhclient-script: line 107: [: -eq: unary operator expected\r\nListening on LPF/eth1/00:d0:68:03:dc:6d\r\nSending on   LPF/eth1/00:d0:68:03:dc:6d\r\nSending on   Socket/fallback\r\nDHCPREQUEST on eth1 to 10.3.3.1 port 67\r\nsend_packet: Network is unreachable\r\nsend_packet: please consult README file regarding broadcast address.\r\nDHCPREQUEST on eth1 to 10.3.3.1 port 67\r\nsend_packet: Network is unreachable\r\nsend_packet: please consult README file regarding broadcast address.\r\nDHCPREQUEST on eth1 to 10.3.3.1 port 67\r\nsend_packet: Network is unreachable\r\nsend_packet: please consult README file regarding broadcast address.\r\nDHCPDISCOVER on eth1 to 10.3.3.1 port 67 interval 7\r\nDHCPDISCOVER on eth1 to 10.3.3.1 port 67 interval 13\r\nDHCPDISCOVER on eth1 to 10.3.3.1 port 67 interval 20\r\nDHCPDISCOVER on eth1 to 10.3.3.1 port 67 interval 16\r\nDHCPDISCOVER on eth1 to 10.3.3.1 port 67 interval 5\r\nNo DHCPOFFERS received.\r\nTrying recorded lease 10.3.3.12\r\n/sbin/dhclient-script: line 74: source_config: command not found\r\n/sbin/dhclient-script: line 1: uname: command not found\r\n/sbin/dhclient-script: line 1: expr: command not found\r\n/sbin/dhclient-script: line 1: sed: command not found\r\n/sbin/dhclient-script: line 1: sed: command not found\r\n\r\n\r\n谢谢大家,我今天要把这个问题搞定,呵呵

论坛徽章:
0
2 [报告]
发表于 2006-08-10 12:12 |只看该作者
下面的是在server上的侦听\r\n\r\nC:\\Program Files\\Ethereal>tethereal.exe -i 1 port 67\r\nCapturing on Intel(R) PRO/1000 CT Network Connection\r\n  0.000000 192.168.71.1 -> 255.255.255.255 DHCP DHCP Offer    - Transaction ID 0\r\nx941c3056\r\n  0.060462 192.168.71.1 -> 255.255.255.255 DHCP DHCP ACK      - Transaction ID 0\r\nx941c3056\r\n 10.108795 192.168.71.1 -> 255.255.255.255 DHCP DHCP Offer    - Transaction ID 0\r\nx2e2d7508\r\n 10.168593 192.168.71.1 -> 255.255.255.255 DHCP DHCP ACK      - Transaction ID 0\r\nx2e2d7508\r\n 20.218192 192.168.71.1 -> 255.255.255.255 DHCP DHCP Offer    - Transaction ID 0\r\nxc8348771\r\n 20.278842 192.168.71.1 -> 255.255.255.255 DHCP DHCP ACK      - Transaction ID 0\r\nxc8348771\r\n 30.327316 192.168.71.1 -> 255.255.255.255 DHCP DHCP Offer    - Transaction ID 0\r\nx6f149956\r\n 30.387745 192.168.71.1 -> 255.255.255.255 DHCP DHCP ACK      - Transaction ID 0\r\nx6f149956\r\n 40.436472 192.168.71.1 -> 255.255.255.255 DHCP DHCP Offer    - Transaction ID 0\r\nxc60e5b4d\r\n 40.500061 192.168.71.1 -> 255.255.255.255 DHCP DHCP ACK      - Transaction ID 0\r\nxc60e5b4d\r\n 43.674753      0.0.0.0 -> 10.3.3.1     DHCP DHCP Discover - Transaction ID 0x33\r\n723f2f\r\n 47.674694      0.0.0.0 -> 10.3.3.1     DHCP DHCP Discover - Transaction ID 0x33\r\n723f2f\r\n 50.545955 192.168.71.1 -> 255.255.255.255 DHCP DHCP Offer    - Transaction ID 0\r\nx408d508\r\n 50.606856 192.168.71.1 -> 255.255.255.255 DHCP DHCP ACK      - Transaction ID 0
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP