@Jehad Jawad Thank you for reaching out to Microsoft Q&A.
I understand that you want to add a second network interface to your VM and you want it to have a default gateway. Here are steps on adding default gateway to additional network interfaces as per the VM's Operating Systems:
Hope this helps. If you have any further questions or concerns regarding this, please do let us know and we will be glad to assist you further. Thank you!
Remember:
Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
Want a reminder to come back and check responses? Here is how to subscribe to a notification.