- 论坛徽章:
- 0
|
大家好:
我现在遇到的问题是:dhcp client 测试机和dhcp server 直连
client 采用默认的广播发送包,我在dhcp server 可以侦听到包
而且可以获取其地址池中的ip,
而使用:dhclient eth1 -s 10.3.3.1 指定server地址后,却没有侦听到包, 为什么呢?
这个是指定server地址之后的检查到的client 发出来的包
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)
Client Ethernet Address: 00:d0:68:03:dc:6d [|bootp]
0x0000: 4510 0148 0000 0000 1011 9c92 0000 0000 E..H............
0x0010: 0a03 0301 0044 0043 0134 e4eb 0101 0600 .....D.C.4......
0x0020: a234 f115 0007 0000 0000 0000 0000 0000 .4..............
0x0030: 0000 0000 0000 0000 00d0 6803 dc6d 0000 ..........h..m..
0x0040: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0050: 0000
下面加上参数后,变成“Network is unreachable”
[root@hawk sbin]# ./dhcpclient eth1 -s 10.3.3.1
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
/sbin/dhclient-script: line 74: source_config: command not found
/sbin/dhclient-script: line 1: uname: command not found
/sbin/dhclient-script: line 1: expr: command not found
/sbin/dhclient-script: line 1: sed: command not found
/sbin/dhclient-script: line 1: sed: command not found
/sbin/dhclient-script: line 107: [: -lt: unary operator expected
/sbin/dhclient-script: line 107: [: -eq: unary operator expected
Listening on LPF/eth1/00:d0:68:03:dc:6d
Sending on LPF/eth1/00:d0:68:03:dc:6d
Sending on Socket/fallback
DHCPREQUEST on eth1 to 10.3.3.1 port 67
send_packet: Network is unreachable
send_packet: please consult README file regarding broadcast address.
DHCPREQUEST on eth1 to 10.3.3.1 port 67
send_packet: Network is unreachable
send_packet: please consult README file regarding broadcast address.
DHCPREQUEST on eth1 to 10.3.3.1 port 67
send_packet: Network is unreachable
send_packet: please consult README file regarding broadcast address.
DHCPDISCOVER on eth1 to 10.3.3.1 port 67 interval 7
DHCPDISCOVER on eth1 to 10.3.3.1 port 67 interval 13
DHCPDISCOVER on eth1 to 10.3.3.1 port 67 interval 20
DHCPDISCOVER on eth1 to 10.3.3.1 port 67 interval 16
DHCPDISCOVER on eth1 to 10.3.3.1 port 67 interval 5
No DHCPOFFERS received.
Trying recorded lease 10.3.3.12
/sbin/dhclient-script: line 74: source_config: command not found
/sbin/dhclient-script: line 1: uname: command not found
/sbin/dhclient-script: line 1: expr: command not found
/sbin/dhclient-script: line 1: sed: command not found
/sbin/dhclient-script: line 1: sed: command not found
谢谢大家,我今天要把这个问题搞定,呵呵 |
|