Greetings Folks,

I've 2 network interfaces,
1. wm0
2. eth0
Both are dhcp enabled. The problem is dhclient switches over eth0
interface for dhcp discovery instead of processing dhcp offer message
from server.

Here is the operation procedure.
1. set both the interfaces down
2. up eth0,
2.1 the dhclient will request for it's IP, gets it and
asssigs it to eth0 (lets say this ip is
e1.e2.e3.e4).
So far so good.

3. up wm0.
3.1 sends DHCP DISCOVER message with
source address 0.0.0.0
3.2 servers responds back DHCP OFFER
message with IP w1.w2.w3.w4.
Now the ideal steps would have been if dhclient should send DHCP
REQUEST with w1.w2.w3.w4 and server would respond DHCP ACK message.

BUT, dhclient performs following,
3.3 send another DHCP DISCOVER message
with source address e1.e2.e3.e4 (eth0's
address).
3.4 server again sends DHCP OFFER message
with IP w1.w2.w3.w4.
3.5 But, again dhclient send DHCP DISCOVER
message source address e1.e2.e3.e4 (eth0's
address).

I captured the packet sequences with Wireshark.

Would anybody please help me understand this behavior?

Thanks in anticipation.