How to connect two virtual machine in Virtualbox

To connect two vm in virtual box
1.create a custom NAT Network
2.change both vm network adapter from NAT to NAT Network