Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
iPXE DHCP got wrong gateway
2017-02-24, 09:58
Post: #4
RE: iPXE DHCP got wrong gateway
I got the answer from isc-dhcp-server mail list.

Code:
Rui Mao <maorui2k@163.com> wrote:

> I installed a Ubuntu 16.04 and configured isc-dhcp-server 4.3.3 as DHCP/BOOTp server. But the iPXE didn't got correct gateway from it.
>  
> The DHCP server is 10.210.0.11, and the client is in another VLAN which gateway is 10.211.0.1.
>  
> I captured Ethernet packages by tcpdump, and also used a Windows Server 2012 for comparison. It seems ISC-DHCP-Server sent a wrong gateway.
>  
> Is this a configuration issue or a bug of ISC-DHCP-Server?

It's a configuration issue - and a known "gotcha" !

Move your class statements out of the subnet declarations - regardless of where you define them, they are global in scope (ditto for host statements). So a client can match a class even if you **think** you've defined it only for a specific subnet. When this happens, the client gets options inherited from the class in the other subnet - and a side effect is getting (in this case) the router option from a different subnet.

_______________________________________________
dhcp-users mailing list
dhcp-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: iPXE DHCP got wrong gateway - maorui2k - 2017-02-24 09:58



User(s) browsing this thread: 1 Guest(s)