我有以下设置:
Client --> eth2(10.4.0.1/16) - router / - eth1(10.3.0.1/16) --> dhcp-server(10.3.0.150) dhcp-relay
如果客户端启动dhcp-request,则会收到dhcp-relay,并且dhcp-relay会将此请求转发给dhcp-server:
IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from << MAC >> (oui Unknown), length 340
dhcp-server接收到这个请求,并向客户端的路由器接口发送一个回复:
IP 10.3.0.1.bootps > 10.3.0.150.bootps: BOOTP/DHCP, Request from b8:27:eb:61:ef:c1 (oui Unknown), length 340 IP 10.3.0.150.bootps > 10.0.4.1.bootps: BOOTP/DHCP, Reply, length 300
但是这个答复从来没有到达请求的客户端。 为了testing所有的防火墙被禁用,所以没有丢包
如果子网掩码为/ 8将使10.3.0.1和10.4.0.1在不同的范围内?
/8 = 255.0.0.0 /16 = 255.255.0.0