Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I see you are following Configure a Site-to-Site VPN connection over ExpressRoute private peering.
Wrt your verbatim,
1 . I am not sure how you say Azure advertises "10.247.218.128/26 over IPSec" and "10.247.218.0/24 over ExR"
- This is not correct
- Azure will always advertise the entire Azure VNET's range(and peered VNETs) in both the case.
- See : Traffic advertised from Azure
- This means, you have to make sure that the OnPrem routes the traffic to Azure in the desired way. i.e., either via VPN Device or ExR
2 . You also mentioned On Prem Network advertises "172.16.1.240/32 over IPSec" and "172.16.1.0/24 over ExR"
- In this case, traffic from Azure to OnPREM destined to 172.16.1.240/32 should go via IPSec tunnel only.
- I believe this is because BGP is not employed here
- I see the recommendation here is to use BGP, refer : Route Traffic from Azure to on-premises networks
- And the only option mentioned here is to Advertise more specific prefixes on the VPN BGP session when there is a overlap between the address prefixes of the ExR and VPN.
I would suggest you start using BGP if you would like to route traffic via IPSec
Kindly let us know if this helps or you need further assistance on this issue.
Thanks,
Kapil
Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.