Some client can obtain ip but some client is unable to obtain ip address

Your initial setup was too much modified. The default just works as it should, as long as you configure the interfaces per port properly.

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.