- 论坛徽章:
- 0
|
本帖最后由 李小PA 于 2013-05-29 11:16 编辑
网络结构:
client<------>(192.168.3.6)relay(双网卡)(10.1.1.6)<------>(10.1.1.222)dhcp_server
dhcp server config:
ddns-update-style none;
ddns-updates off;
deny client-updates;
one-lease-per-client false;
allow bootp;
option T150 code 150 = string;
#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
# see 'man 5 dhcpd.conf'
#
subnet 10.1.1.0 netmask 255.255.255.0 {
interface eth1;
range 10.1.1.100 10.1.1.150;
default-lease-time 360000;
max-lease-time 372000;
option subnet-mask 255.255.255.0;
option time-offset 0;
option routers 10.1.1.222;
next-server 10.1.1.222;
filename "test.cfg";
}
测试过 直接连接SERVER可以分配IP。
在relay上 通过命令dhcrelay -i eth0_rename -i eth1 10.1.1.222 启动中继服务。
relay上抓包如下:
10:48:32.083270 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:26:24:db:eb:78, length 485
10:48:32.083852 IP 10.1.1.6.bootps > 10.1.1.222.bootps: BOOTP/DHCP, Request from 00:26:24:db:eb:78, length 485
server上抓包如下:
10:47:41.632483 IP 10.1.1.6.bootps > 10.1.1.222.bootps: BOOTP/DHCP, Request from 00:26:24:db:eb:78, length 485
10:47:41.636711 IP 10.1.1.6.bootps > 10.1.1.222.bootps: BOOTP/DHCP, Request from 00:26:24:db:eb:78, length 485
server上的路由:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth1
server上采用抓包软件抓包如下:
感觉是server收到了request有应答,但是没有发送给relay 希望各位大大给予解答
|
|