Hi @medali___,
Please look into the following community posts, as I believe they will prove very useful for your inquiry:
Solved: Using Two Ethernet in RT1064 - NXP Community
Solved: Dual Ethernet application with LWIP on RT1064 - NXP Community
BR,
Edwin.