Thank you for reaching out on the Microsoft Q&A forum.
The IPs are automatically selected from the IP address range that you use for your virtual hub's private address space. You can find these IP addresses by running the Virtual Hubs - Get REST API and they will be listed as virtualRouterIps
in the response.
As documented here peering with both these addresses is required. Not peering with both addresses can cause routing issues. The same routes must be advertised to both of these addresses. Advertising different routes will cause routing issues.
Hope this helps! Please let me know if you have any additional questions. Thank you!