[Dnsmasq-discuss] Any way to force dnsmasq to reply on interface secondary IP ? (Linux)

Jarek Polok Jaroslaw.Polok at cern.ch
Fri Feb 5 10:36:35 GMT 2016


Hello everybody !

I'm trying to set up the pxe server / proxy dhcp,
using dnsmasq 2.66 and setting options:

[...]
#system interface setup
#eth2:
#[...]
#inet X.X.X.158/YY brd X.X.X.159 scope global eth2
#inet X.X.X.150/YY scope global secondary eth2

listen-address=X.X.X.150   # this is a secondary IP
bind-interfaces

[...]

while tracing the packets I can see that port 4011
communication is being sent back by dnsmasq
using primary IP of system interface:

X.X.X.52 -> X.X.X.150 UDP 389
     Source port: altserviceboot
     Destination port: altserviceboot

X.X.X.158 -> X.X.X.52 UDP 365
     Source port: altserviceboot
     Destination port: altserviceboot


.. which of course makes the whole PXE boot process
fail: since the client waits for reply from same IP
it sent proxy dhcp request to ...

I'm not sure if the setup I'm trying to achieve is
possible at all ... but perhaps I'm missing something ? ....

(no: i cannot have these 2 IPs assigned as primary
  to different physical interfaces ... and according
  to man page IP alias interfaces cannot be used with
  --interface option)

Any help/hints on how to solve above problem would
be appreciated !

Thanks !

Best

Jarek

__
-------------------------------------------------------
_ Jaroslaw_Polok ___________________ CERN - IT/CM/LCS _
_ http://cern.ch/~jpolok ________ tel_+41_22_767_1834 _
______________________________________+41_75_411_9487 _





More information about the Dnsmasq-discuss mailing list