question

DifanZhao-5255 avatar image
0 Votes"
DifanZhao-5255 asked DifanZhao-5255 commented

Host route in the OS allowed?

Hi experts, I am new to Azure. I am playing with networking. I have two VNets, one with the VNet gateway and another with a Cisco CSR router to simulate an on-prem network. Everything works fine.

I have a VM in the "on-prem" VNet and I need to create a UDR to allow it to send the traffic to the other VNet via the Cisco CSR router. It works fine too. However, if I remove the UDR, instead I create a host route on the VM in its OS, it doesn't work. Is this expected? So no host-routes are allowed in the Azure environment, correct?

Thanks!
Difan

azure-virtual-network
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered DifanZhao-5255 commented

Hi @DifanZhao-5255 ,

you are right.

Routes defined in the OS of the VM doesn't work. You have to define the Routes in Routing Tables associated with the Azure subnet.

Same counts for almost all network settings of a VM like IP reservation and DNS config. Don't try to set this directly in the guest OS.


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Andreas Baumgarten



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you Andreas for the confirmation.

0 Votes 0 ·